Hi!
I received these messages when configuring my project with CMake:
CMake Warning at ./vcpkg/registries/git-trees/.../portfile.cmake:34 (message):
You will need to install Xorg dependencies to use feature x11:
sudo apt install libx11-dev libxft-dev libxext-dev
Call Stack (most recent call first):
scripts/ports.cmake:206 (include)
CMake Warning at ./vcpkg/registries/git-trees/.../portfile.cmake:37 (message):
You will need to install Wayland dependencies to use feature wayland:
sudo apt install libwayland-dev libxkbcommon-dev libegl1-mesa-dev
Call Stack (most recent call first):
scripts/ports.cmake:206 (include)
CMake Warning at ./vcpkg/registries/git-trees/.../portfile.cmake::40 (message):
You will need to install ibus dependencies to use feature ibus:
sudo apt install libibus-1.0-dev
Call Stack (most recent call first):
scripts/ports.cmake:206 (include)
Completed submission of sdl3[core,ibus,wayland,x11]:x64-linux@3.4.2#1 to 1 binary cache(s) in 1.5 s (1/1)
All requested installations completed successfully in: 1.5 min
And when building my project (I just copied the code from the official documentation) I receive these errors during the linking phase :
: && /usr/bin/c++ -g -pthread -Wl,--dependency-file=CMakeFiles/run.dir/link.d CMakeFiles/run.dir/src/main.cpp.o -o Debug/run vcpkg_installed/x64-linux/debug/lib/libSDL3.a -lm && :
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL3.a(SDL_ime.c.o): in function `InitIME':
./vcpkg/buildtrees/sdl3/.../src/core/linux/SDL_ime.c:75:(.text+0x25): undefined reference to `SDL_IBus_Init'
/usr/bin/ld: ./vcpkg/buildtrees/sdl3/.../src/core/linux/SDL_ime.c:76:(.text+0x33): undefined reference to `SDL_IBus_Quit'
/usr/bin/ld: ./vcpkg/buildtrees/sdl3/.../src/core/linux/SDL_ime.c:77:(.text+0x41): undefined reference to `SDL_IBus_SetFocus'
/usr/bin/ld: ./vcpkg/buildtrees/sdl3/.../src//core/linux/SDL_ime.c:78:(.text+0x4f): undefined reference to `SDL_IBus_Reset'
/usr/bin/ld: ./vcpkg/buildtrees/sdl3/.../src/core/linux/SDL_ime.c:79:(.text+0x5d): undefined reference to `SDL_IBus_ProcessKeyEvent'
/usr/bin/ld: ./vcpkg/buildtrees/sdl3/.../src/core/linux/SDL_ime.c:80:(.text+0x6b): undefined reference to `SDL_IBus_UpdateTextInputArea'
/usr/bin/ld: ./vcpkg/buildtrees/sdl3/.../src/core/linux/SDL_ime.c:81:(.text+0x79): undefined reference to `SDL_IBus_PumpEvents'
I suspect that to correct these errors I would just have to install the mentioned dependencies and restart everything but I still have doubts; especially about this “ibus”. I see that in the vcpkg port it is defined as part of the “default-features”. Does that mean “mandatory” ?
Thank you ![]()