cmake still can't find RtMidi despite vcpkg install; vcpkg installed incorrectly?
Environment
- OS: Xubuntu 24.10
- Giada version: 1.2 (attempting)
Describe the bug Trying to install giada from source via git & vcpkg per instructions:
~/Installers/vcpkg$ sh ./bootstrap-vcpkg.sh
~/Installers/vcpkg$ export VCPKG_ROOT=/home/simon/Installers/vcpkg
~/Installers/vcpkg$ export PATH=$VCPKG_ROOT:$PATH
~/Installers/giada$ cmake -B build/ -S . -DCMAKE_TOOLCHAIN_FILE=/home/simon/Installers/vcpkg/scripts/buildsystems/vcpkg.cmake
-- Could NOT find RtMidi (missing: RtMidi_DIR) -- Checking for module 'rtmidi' -- Package 'rtmidi', required by 'virtual:world', not found CMake Error at CMakeLists.txt:536 (message): Can't find RtMidi, aborting.
vcpkg looks like it installs fine; export lines don't return anything so I presume they complete correctly. The vcpkg.cmake file is definitely in the location specified. I've probably done something wrong but I can't see what. Any wisdom greatly appreciated!
Screenshots
Hi @SimonDedman, this is not the first time the error you are reporting comes up. On our side - both local development and Linux CI machine - everything is OK. What version of vcpkg are you using?
Hi Giovanni,
I'm using the vcpkg instructions here; i.e. ./bootstrap-vcpkg.sh . LMK if there's a better way for xubuntu - I ended up quite confused. Thanks!
@SimonDedman the instructions are correct. I suspect there's something wrong in the RtMidi + vcpkg combo. Maybe it's worth reporting the issue in the vcpkg repo...