I’m using the tarball audacity-minsrc-3.0.2.tar.xz, CMake binary download cmake-3.20.2-linux-x86_64.tar.gz, on Debian 10.9.
CMake fails to find Jack giving this warning message:
CMake Warning at cmake-proxies/portaudio-v19/CMakeLists.txt:91 (find_package):
By not providing “Findjack.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “jack”, but
CMake did not find one.
Could not find a package configuration file provided by “jack” with any of
the following names:
jackConfig.cmake
jack-config.cmake
Add the installation prefix of “jack” to CMAKE_PREFIX_PATH or set
“jack_DIR” to a directory containing one of the above files. If “jack”
provides a separate development package or SDK, be sure it has been
installed.
I managed to find the file lib-src/portaudio-v19/cmake_support/FindJack.cmake and renamed it to Findjack.cmake (uppercase J to lowercase j). CMake seemed happy with this and gave no warning. Audacity built with no problems and I was able to use Jack.
I don’t know if this is a bug with CMake or a configuration issue with Audacity, however. I hope this is a valid bug report!
That was also one of the things I tried, i.e. changing find_package( Jack ) to find_package( jack ). That did not work for me.
I agree it may cause a problem. Could it be a bug with case-handling in recent versions of cmake? I could not find an older version of cmake to test with.
Sorry for misreading the github log - I did not notice that I was changing the wrong CMakeLists.txt. The tip about using the local wxWidgets is great as well. I installed the Audacity patched wxWidgets to /usr/local because it would not step on anything on my system, but if it does become an issue I know what to do now.