Open planetmarshall opened 4 months ago
A Qt application linked to the static Qt libraries and the QXcbIntegrationPlugin is missing symbols that can be resolved by linking to xcb-xinput
xcb-xinput
[settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=gnu17 compiler.libcxx=libstdc++11 compiler.version=13 os=Linux
Run
conan install . -of build/linux-debug/conan --build missing -s build_type=Debug cmake --preset linux-debug cmake --build build/linux-debug
Build fails due to undefined references
Add xcb-xinput to target_link_libraries and rebuild
target_link_libraries
It looks like the Macos framework dependencies are also missing when linking with QCocoaIntegrationPlugin
QCocoaIntegrationPlugin
this should be fixed by https://github.com/conan-io/conan-center-index/pull/23572
Description
A Qt application linked to the static Qt libraries and the QXcbIntegrationPlugin is missing symbols that can be resolved by linking to
xcb-xinput
Package and Environment Details
Conan profile
[settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=gnu17 compiler.libcxx=libstdc++11 compiler.version=13 os=Linux
Steps to reproduce
Run
Build fails due to undefined references
Workaround
Add
xcb-xinput
totarget_link_libraries
and rebuildLogs
Click to expand log
``` FAILED: lldb-test : && /usr/bin/c++ -g CMakeFiles/lldb-test.dir/lldb-test_autogen/mocs_compilation.cpp.o CMakeFiles/lldb-test.dir/main.cpp.o CMakeFiles/lldb-test.dir/AnalogClock.cpp.o -o lldb-test -L/home/andrew/.conan2/p/b/qt40741092584d6/p/lib -L/home/andrew/.conan2/p/b/freet9e9b16e89aeff/p/lib -L/home/andrew/.conan2/p/b/bzip2d447b7ee02c8e/p/lib -L/home/andrew/.conan2/p/b/brotl4a389325d0cf2/p/lib -L/home/andrew/.conan2/p/b/libpn4fc11fe457e0c/p/lib -L/home/andrew/.conan2/p/b/zlib825493e308d32/p/lib -L/home/andrew/.conan2/p/b/fontc15d8cbcc3c27c/p/lib -L/home/andrew/.conan2/p/b/util-54d2a83239897/p/lib -L/home/andrew/.conan2/p/b/expatadef3092dca9e/p/lib -L/home/andrew/.conan2/p/b/xkbco4a2539568767e/p/lib -L/home/andrew/.conan2/p/b/wayla7ea8884bd867f/p/lib -L/home/andrew/.conan2/p/b/libff7684ec2c5a2ec/p/lib -L/home/andrew/.conan2/p/b/libxm84202cc0f2777/p/lib -L/home/andrew/.conan2/p/b/libica88112e8a2a98/p/lib -L/home/andrew/.conan2/p/b/libjpe01c72049fbdd/p/lib -L/home/andrew/.conan2/p/b/md4cca58abbed5144/p/lib -L/home/andrew/.conan2/p/b/pcre211d2c395001ba/p/lib -L/home/andrew/.conan2/p/b/doubl7b29dd27d770d/p/lib -L/home/andrew/.conan2/p/b/icu27c1ef3b3b9d3/p/lib -L/home/andrew/.conan2/p/b/zstddb0e0213362b0/p/lib -L/home/andrew/.conan2/p/b/qt40741092584d6/p/bin/archdatadir/plugins/platforms -Wl,-rpath,/home/andrew/.conan2/p/b/qt40741092584d6/p/lib:/home/andrew/.conan2/p/b/freet9e9b16e89aeff/p/lib:/home/andrew/.conan2/p/b/bzip2d447b7ee02c8e/p/lib:/home/andrew/.conan2/p/b/brotl4a389325d0cf2/p/lib:/home/andrew/.conan2/p/b/libpn4fc11fe457e0c/p/lib:/home/andrew/.conan2/p/b/zlib825493e308d32/p/lib:/home/andrew/.conan2/p/b/fontc15d8cbcc3c27c/p/lib:/home/andrew/.conan2/p/b/util-54d2a83239897/p/lib:/home/andrew/.conan2/p/b/expatadef3092dca9e/p/lib:/home/andrew/.conan2/p/b/xkbco4a2539568767e/p/lib:/home/andrew/.conan2/p/b/wayla7ea8884bd867f/p/lib:/home/andrew/.conan2/p/b/libff7684ec2c5a2ec/p/lib:/home/andrew/.conan2/p/b/libxm84202cc0f2777/p/lib:/home/andrew/.conan2/p/b/libica88112e8a2a98/p/lib:/home/andrew/.conan2/p/b/libjpe01c72049fbdd/p/lib:/home/andrew/.conan2/p/b/md4cca58abbed5144/p/lib:/home/andrew/.conan2/p/b/pcre211d2c395001ba/p/lib:/home/andrew/.conan2/p/b/doubl7b29dd27d770d/p/lib:/home/andrew/.conan2/p/b/icu27c1ef3b3b9d3/p/lib:/home/andrew/.conan2/p/b/zstddb0e0213362b0/p/lib:/home/andrew/.conan2/p/b/qt40741092584d6/p/bin/archdatadir/plugins/platforms /home/andrew/.conan2/p/b/qt40741092584d6/p/lib/libQt5Widgets.a /home/andrew/.conan2/p/b/qt40741092584d6/p/bin/archdatadir/plugins/platforms/libqxcb.a /home/andrew/.conan2/p/b/qt40741092584d6/p/lib/libQt5XcbQpa.a /home/andrew/.conan2/p/b/qt40741092584d6/p/lib/libQt5ServiceSupport.a /home/andrew/.conan2/p/b/qt40741092584d6/p/lib/libQt5ThemeSupport.a /home/andrew/.conan2/p/b/qt40741092584d6/p/lib/libQt5FontDatabaseSupport.a /home/andrew/.conan2/p/b/qt40741092584d6/p/lib/libQt5EdidSupport.a /home/andrew/.conan2/p/b/qt40741092584d6/p/lib/libQt5XkbCommonSupport.a /home/andrew/.conan2/p/b/qt40741092584d6/p/lib/libQt5Gui.a /home/andrew/.conan2/p/b/fontc15d8cbcc3c27c/p/lib/libfontconfig.a /home/andrew/.conan2/p/b/freet9e9b16e89aeff/p/lib/libfreetyped.a /home/andrew/.conan2/p/b/libpn4fc11fe457e0c/p/lib/libpng.a /home/andrew/.conan2/p/b/brotl4a389325d0cf2/p/lib/libbrotlienc.a /home/andrew/.conan2/p/b/brotl4a389325d0cf2/p/lib/libbrotlidec.a /home/andrew/.conan2/p/b/brotl4a389325d0cf2/p/lib/libbrotlicommon.a /home/andrew/.conan2/p/b/util-54d2a83239897/p/lib/libuuid.a /home/andrew/.conan2/p/b/expatadef3092dca9e/p/lib/libexpat.a /home/andrew/.conan2/p/b/wayla7ea8884bd867f/p/lib/libwayland-client.a -lrt /home/andrew/.conan2/p/b/libff7684ec2c5a2ec/p/lib/libffi.a /home/andrew/.conan2/p/b/xkbco4a2539568767e/p/lib/libxkbregistry.a /home/andrew/.conan2/p/b/libxm84202cc0f2777/p/lib/libxml2.a /home/andrew/.conan2/p/b/libica88112e8a2a98/p/lib/libiconv.a /home/andrew/.conan2/p/b/libica88112e8a2a98/p/lib/libcharset.a -lSM -luuid -lxcb-res -lxcb-ewmh -lxcb-composite -lxcb-present -lxcb-glx -lxcb-dri2 -lxcb-cursor -lxcb-dri3 -lxcb-util -lxcb-xinerama -lxcb-xfixes -lxcb-sync -lxcb-shape -lxcb-render-util -lxcb-render -lxcb-randr -lxcb-keysyms -lxcb-image -lxcb-shm -lxcb-icccm -lXxf86vm -lXv -lXtst -lXss -lXRes -lXrender -lXrandr -lXpm -lXmuu -lXmu -lxkbfile -lXinerama -lXi -lXext -lXdmcp -lXdamage -lXfixes -lXcursor -lXcomposite -lXaw7 -lXt -lXau -lICE -lfontenc -lX11-xcb -lX11 -lGL /home/andrew/.conan2/p/b/libjpe01c72049fbdd/p/lib/libjpeg.a /home/andrew/.conan2/p/b/md4cca58abbed5144/p/lib/libmd4c-html.a /home/andrew/.conan2/p/b/md4cca58abbed5144/p/lib/libmd4c.a /home/andrew/.conan2/p/b/qt40741092584d6/p/lib/libQt5Core.a /home/andrew/.conan2/p/b/pcre211d2c395001ba/p/lib/libpcre2-32.a /home/andrew/.conan2/p/b/pcre211d2c395001ba/p/lib/libpcre2-16.a /home/andrew/.conan2/p/b/pcre211d2c395001ba/p/lib/libpcre2-posix.a /home/andrew/.conan2/p/b/pcre211d2c395001ba/p/lib/libpcre2-8.a /home/andrew/.conan2/p/b/bzip2d447b7ee02c8e/p/lib/libbz2.a /home/andrew/.conan2/p/b/zlib825493e308d32/p/lib/libz.a /home/andrew/.conan2/p/b/doubl7b29dd27d770d/p/lib/libdouble-conversion.a /home/andrew/.conan2/p/b/icu27c1ef3b3b9d3/p/lib/libicutest.a /home/andrew/.conan2/p/b/icu27c1ef3b3b9d3/p/lib/libicutu.a /home/andrew/.conan2/p/b/icu27c1ef3b3b9d3/p/lib/libicuio.a /home/andrew/.conan2/p/b/icu27c1ef3b3b9d3/p/lib/libicui18n.a /home/andrew/.conan2/p/b/icu27c1ef3b3b9d3/p/lib/libicuuc.a -lm -ldl /home/andrew/.conan2/p/b/icu27c1ef3b3b9d3/p/lib/libicudata.a -lstdc++ /home/andrew/.conan2/p/b/zstddb0e0213362b0/p/lib/libzstd.a -lpthread /home/andrew/.conan2/p/b/xkbco4a2539568767e/p/lib/libxkbcommon-x11.a /home/andrew/.conan2/p/b/xkbco4a2539568767e/p/lib/libxkbcommon.a -lxcb -lxcb-xkb && : /usr/bin/ld: /home/andrew/.conan2/p/b/qt40741092584d6/p/lib/libQt5XcbQpa.a(qxcbconnection_basic.o): in function `QXcbBasicConnection::initializeXInput2()': /home/andrew/.conan2/p/qt9a869b3b0904c/s/qt5/qtbase/src/plugins/platforms/xcb/qxcbconnection_basic.cpp:366:(.text._ZN19QXcbBasicConnection17initializeXInput2Ev+0x22): undefined reference to `xcb_input_id' ```