Failed to find the conan package ZLIB

Hi,
I’m following the instructions for building here: Missing features - Audacity Support. Ultimately I want to build ASIO ASIO Audio Interface - Audacity Manual.

Severity Code Description Project File Line Suppression State
Error CMake Error at cmake-proxies/cmake-modules/AudacityDependencies.cmake:265 (message):
Failed to find the conan package ZLIB C:\Users\johnp\Compiling_JB\Audacity\audacity\cmake-proxies/cmake-modules/AudacityDependencies.cmake 265

What is causing this?

Also I get this warning, is it important?

Severity Code Description Project File Line Suppression State
Warning CMake Warning (dev) at C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:426 (message):
The package name passed to find_package_handle_standard_args (jack) does
not match the name of the calling package (Jack). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern. C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake 426

There have been a lot of very recent changes to the way of building Audacity.
I think the latest instructions are those that are in the source code: https://github.com/audacity/audacity/blob/master/BUILDING.md
Those instructions should be correct for Audacity 3.0.3 alpha.

If you want to build a previous version, look for the instructions in your source code.

Perfect, that looks so much easier.

When I follow the instruction for Windows I get the error in CMake. Has anyone had this before? I have Python > 3 & conan installed through pip.

CMake Error at cmake-proxies/cmake-modules/conan.cmake:631 (message):
Conan install failed=‘1’
Call Stack (most recent call first):
cmake-proxies/cmake-modules/AudacityDependencies.cmake:233 (conan_cmake_install)
cmake-proxies/cmake-modules/AudacityDependencies.cmake:251 (_conan_install)
CMakeLists.txt:481 (resolve_conan_dependencies)

Thanks that is very helpful to know.

I tried to do step 3 for windows here https://github.com/audacity/audacity/blob/master/BUILDING.md#building-on-windows but i get an error in CMAKE:

Error in configuration process, project files may be invalid

The error note in the bottom console is:

CMake Error at cmake-proxies/cmake-modules/conan.cmake:631 (message):
Conan install failed=‘1’
Call Stack (most recent call first):
cmake-proxies/cmake-modules/AudacityDependencies.cmake:233 (conan_cmake_install)
cmake-proxies/cmake-modules/AudacityDependencies.cmake:251 (_conan_install)
CMakeLists.txt:481 (resolve_conan_dependencies)

Can you shed some light on this?

I’ve not yet tried the new build method on Windows (I mostly use Linux), so at best I can only suggest general advice.
If you get part way through a build and it fails, don’t try to fix it - scrap it completely and start again.

There is a discord thread for those currently building Audacity 3.0.3 alpha on Windows:

See here: https://discord.gg/8P9RHQRa

Looks like the discord link is invalid. I’m facing the same error while trying to build the code. Any help will be appreciated.

Yes, they expire after a while. Try this one: Discord

The discord link isn’t working

Use the link from the Audacity website: Redirecting to: https://support.audacityteam.org/