-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sdl2[core]:x64-linux build failure #13187
Comments
Hi @BrianPeek
|
I also checked sdl2.pc, there is no |
I just blew away my vcpkg directory and re-cloned from github, bootstrapped, and tried again fresh. Still getting the same error. :( That said, my sdl2.pc file is showing glib (and ibus, my 2nd error):
|
Upon further research, it appears the recent addition of this to
Commenting out this addition allows sdl2 to build/install correctly. @Sibras, it appears you made this update, any idea why this might break for me? Thanks for any insight! |
SDLs cmake script is automatically detecting additional non vcpkg libraries that you have optionally installed in your wsl instance and is linking against them. Based on your pkgconfig file these appear to be 'dbus ibus libsndio'. Since these libs are not installed by default others are not able to reproduce it and vcpkg_fixup_pkgconfig has not been made aware of them. Looking at the cmake script for sdl it doesnt appear there is an option to disable the automatic detection and inclusion of dbus/ibus. Short term just uninstalling these will stop sdl from detecting them. Otherwise they will need to be added to the known system lib list in scripts/cmake/vcpkg_common_definitions.cmake. The sndio issue should be fixable though (although I havnt tested it) by updating the sdl portfile to
Try those and see of they work |
Got it. Uninstalling libs for dbus, ibus, and libsndio fixed everything. That said, I'm not entirely sure how they got there. I truly appreciate the help and explanation of the issue, I learned something new. Thank you! |
Host Environment
To Reproduce
Steps to reproduce the behavior:
./vcpkg install sdl2
Failure logs
Additional context
This started happening after updating vcpkg from git. If I manually install "glib" via vcpkg, I then get an error on not finding ibus-1.0. This isn't available in vcpkg. I have installed via apt-get, but the error persists.
The text was updated successfully, but these errors were encountered: