Closed unbadfish closed 1 year ago
I believe issues with vcpkg ports should be reported against vcpkg, not here.
That said: it looks like vcpkg uses the PortAudio CMake config mostly untouched. The PortAudio CMake targets use the spelling PortAudio
, not portaudio
. I'm not quite sure if this stuff is case-sensitive or not, but you may want to try the other spelling.
I'm not quite sure if this stuff is case-sensitive or not
The spelling PortAudio
doesn't help :cry: . @dechamps
The vcpkg version is 19.7.0#4, which is critically behind the current version.
the argument "toolchainFile": "C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake"
should be added to settings. See https://learn.microsoft.com/en-us/cpp/build/cmake-presets-json-reference for more info.
And here is the cmake code
cmake_minimum_required (VERSION 3.8)
project ("CMakePA3")
find_package(portaudio)
if(portaudio_FOUND)
message(STATUS "PortAudio Major version: " ${portaudio_VERSION})
else()
message(FATAL_ERROR "PortAudio NOT found!")
endif()
add_executable (CMakePA3 "main.c")
target_link_libraries(CMakePA3 PRIVATE portaudio)
My Apologize First, SORRY to Everyone
No dramas. All good mate. But I don't understand the rest of what you wrote. Are these instructions for fixing the problem or additional instructions for reproducing the issue?
@unbadfish I've set this to low priority until we get a response from you because we don't understand what's going on.
No dramas. All good mate. But I don't understand the rest of what you wrote. Are these instructions for fixing the problem or additional instructions for reproducing the issue?
It is the code to fix it.
Also, the argument "toolchainFile": "C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake" should be added to settings, via. CMakePresets.json
or other older settings file.
Sorry about the delay.
Describe the bug The vcpkg of portaudio can NOT be found by Visual Studio
To Reproduce
vcpkg integrate install
vcpkg install portaudio
find_package(portaudio CONFIG REQUIRED)
provided by vcpkgExpected behavior The VS should find the package correctly.
Actual behavior Package 'portaudio' not found.
When manually type p-o into
find_package
, the screenshot below shows what will happen:Desktop (please complete the following information):
Additional context The vcpkg say
this(cmake usage) is heuristically generated, and may not be correct
(See below: log - install portaudio) so is there any solution?log: install portaudio
cmake output