[sdl2] Fix pkgconfig: missing system libs#13551
[sdl2] Fix pkgconfig: missing system libs#13551gdxn96 wants to merge 2 commits intomicrosoft:masterfrom
Conversation
glib-2.0 gobject-2.0 gio-2.0 ibus-1.0
|
@ras0219 @JackBoosY unfortunately that branch did not fix the glib issue sdl2.pc file |
| vcpkg_fixup_pkgconfig( | ||
| IGNORE_FLAGS "-Wl,-rpath,${CURRENT_PACKAGES_DIR}/lib/pkgconfig/../../lib" "-Wl,-rpath,${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/../../lib" "-Wl,--enable-new-dtags" "-Wl,--no-undefined" "-Wl,-undefined,error" "-Wl,-compatibility_version,${DYLIB_COMPATIBILITY_VERSION}" "-Wl,-current_version,${DYLIB_CURRENT_VERSION}" "-Wl,-weak_framework,Metal" "-Wl,-weak_framework,QuartzCore" | ||
| SYSTEM_LIBRARIES dbus-1 | ||
| SYSTEM_LIBRARIES dbus-1 glib-2.0 gobject-2.0 gio-2.0 ibus-1.0 |
There was a problem hiding this comment.
Don't know why sdl2 need them.
There was a problem hiding this comment.
All I know, is SDL2 failed to install locally without this change. Once I added this change it worked fine.
I don't understand Cmake very well so if this change is not appropriate just lmk.
Maybe it's an OS thing? I'm using Ubuntu 20.04, maybe they were previously installed by default and no longer are? (grasping straws)
|
@gdxn96 Could you provide your broken sdl2.pc? |
|
The one I have above? @JackBoosY |
|
@JackBoosY |
|
I think that this is indicative that we can't expect to list out the full set of system dependencies; it would require us to somehow divine the precise naming and linkage structure of every system out there. For now, this is blocked on #13126 |
|
If you install |
Was there a documentation on how this could be achieved? It seems more safer than deleting ibus from the host environment. |
|
Just wanted to add to the discussion as I mistakenly opened an identical PR in #14019 The root issue is that the SDL2 CMakeLists.txt detects that an ibus-1.0 development package is available and uses pkg-config to add fetch linker flags for ibus. The resulting dependencies can be seen by manually running pkg-config on a machine with this package installed ( The search for Ibus is scoped to only apply to Linux systems. Personally, I'd recommend adding a patch which simply removes the ibus detection lines from SDL2's CMakeLists, and the entire issue at talk here could be closed. |
|
@jube or @JackBoosY: Seeing there appears to be no further progress here, and I'm keen to get this solved, is it OK for me to open a new PR based on my suggested fix? |
|
@jgilje Sure, please! |
If you know what you're doing, please go for it, lord knows I don't 😁 |
Above traceback encountered for all of the following libraries
glib-2.0 gobject-2.0 gio-2.0 ibus-1.0Fixes [sdl2[core]:x64-linux] build failure #13236