@jsouza and @roadsterUK
Thanks for your posts. So I also tried, but the configuring stopped with errors. Maybe my cmake is too new (v. 4.0.1)?
"C:/Users/JohnDoe/.conan2/p/b/portad540cc900bfdb/b/src/portadio"
CMake Error at CMakeLists.txt:7 (CMAKE_MINIMUM_REQUIRED):
and
portaudio/19.7.0@audacity/stable: ERROR:
Package 'e91d1a54526ac0d9d3fac1dca9ef40c4496fc296' build failed
- Do you have an idea what I could do?
A question about your instructions: is this the right way to set the environment in power shell before starting the cmake-command? (Path where my Steinberg-Files are located).
$env:ASIOSDK_DIR = "C:\Program Files\Steinberg\ASIO_SDK\asiosdk_2.3.3_2019-06-14"
PG64
I also tried to add options to your cmake command. Like
-D “CMAKE_POLICY_VERSION_MINIMUM=3.5”
or
-D"CMAKE_POLICY_VERSION_MINIMUM=3.5"
or
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
(Not sure about the syntax). The output recommended this, see below…
Here is a longer part of the messages I received :
...
portaudio/19.7.0@audacity/stable: Unzipping 5.6MB, this can take a while
portaudio/19.7.0@audacity/stable: CMakeToolchain generated: conan_toolchain.cmake
portaudio/19.7.0@audacity/stable: CMakeToolchain generated: C:\Users\JohnDoe\.conan2\p\b\portad540cc900bfdb\b\build\generators\CMakePresets.json
portaudio/19.7.0@audacity/stable: CMakeToolchain generated: C:\Users\JohnDoe\.conan2\p\b\portad540cc900bfdb\b\src\portadio\CMakeUserPresets.json
portaudio/19.7.0@audacity/stable: Generating aggregated env files
portaudio/19.7.0@audacity/stable: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
portaudio/19.7.0@audacity/stable: Calling build()
portaudio/19.7.0@audacity/stable: Running CMake.configure()
portaudio/19.7.0@audacity/stable: RUN: cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/JohnDoe/.conan2/p/b/portad540cc900bfdb/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:/Users/JohnDoe/.conan2/p/b/portad540cc900bfdb/b/src/portadio"
CMake Error at CMakeLists.txt:7 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-- Configuring incomplete, errors occurred!
portaudio/19.7.0@audacity/stable: ERROR:
Package 'e91d1a54526ac0d9d3fac1dca9ef40c4496fc296' build failed
portaudio/19.7.0@audacity/stable: WARN: Build folder C:\Users\JohnDoe\.conan2\p\b\portad540cc900bfdb\b\build
ERROR: portaudio/19.7.0@audacity/stable: Error in build() method, line 120
cmake.configure()
ConanException: Error 1 while executing
Generating options profile...
Traceback (most recent call last):
File "C:\Program Files\Audacity-ASIO_SDK\audacity-Audacity-3.4.2\conan\conan_runner.py", line 109, in <module>
subprocess.check_call(conan_options)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "C:\Users\JohnDoe\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 419, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['conan.exe', 'install', 'C:\\Program Files\\Audacity-ASIO_SDK\\audacity-Audacity-3.4.2\\conan', '--build=missing', '--output-folder', 'C:/Program Files/Audacity-ASIO_SDK/Audacity-3.4.2-mybuild-cmake', '--remote', 'audacity-binaries-conan2', '--profile:build', 'C:\\Program Files\\Audacity-ASIO_SDK\\Audacity-3.4.2-mybuild-cmake\\conan\\profiles\\build.profile', '--profile:host', 'C:\\Program Files\\Audacity-ASIO_SDK\\Audacity-3.4.2-mybuild-cmake\\conan\\profiles\\host-debug.profile']' returned non-zero exit status 1.
CMake Error at cmake-proxies/cmake-modules/AudacityDependencies.cmake:209 (message):
Conan failed to install dependencies (1)
C:/Users/JohnDoe/AppData/Local/Programs/Python/Python313/python.exe
Call Stack (most recent call first):
CMakeLists.txt:579 (include)
-- Configuring incomplete, errors occurred!
I executed this in my power shell:
cmake -DCMAKE_CONFIGURATION_TYPES=Release -Daudacity_has_asio_support=On -DAUDACITY_BUILD_LEVEL=2 -Daudacity_use_ffmpeg=off -S “C:\Program Files\Audacity-ASIO_SDK\audacity-Audacity-3.4.2” -B “C:\Program Files\Audacity-ASIO_SDK\Audacity-3.4.2-mybuild-cmake”