Qt6 topics merged with General

SUSE X11 compilation issue

  • I would greatly appreciate help in compiling Qt for my SUSE installation. I'm using open SUSE, latest version (12.3).

    I've checked via YaST that the xcb libraries are installed per the installation instructions and list of required xcb libraries. But when I compile the library with and without using the -qt-xcb flag I get errors when either launching Creator or when building. Same occurs when installing binary.

    The last build attempt was using the -qt-xcb flag (use Qt xcb libraries). Errors as best I can pull from build messages are as follows (can't find a build log!!!):

    .obj/release-shared/qxcbwindow.o: In function QXcbWindow::create()': qxcbwindow.cpp:(.text+0x2b09): undefined reference toqglx_findVisualInfo(_XDisplay*, int, QSurfaceFormat*)'
    .obj/release-shared/qglxintegration.o: In function QGLXPbuffer::QGLXPbuffer(QOffscreenSurface*)': qglxintegration.cpp:(.text+0x3d2): undefined reference toqglx_findConfig(_XDisplay*, int, QSurfaceFormat const&, int)'
    qglxintegration.cpp:(.text+0x4a8): undefined reference to qglx_surfaceFormatFromGLXFBConfig(QSurfaceFormat*, _XDisplay*, __GLXFBConfigRec*, __GLXcontextRec*)' .obj/release-shared/qglxintegration.o: In functionQGLXContext::QGLXContext(QXcbScreen*, QSurfaceFormat const&, QPlatformOpenGLContext*)':
    qglxintegration.cpp:(.text+0x78a): undefined reference to qglx_findConfig(_XDisplay*, int, QSurfaceFormat const&, int)' qglxintegration.cpp:(.text+0x8fd): undefined reference toqglx_surfaceFormatFromGLXFBConfig(QSurfaceFormat*, _XDisplay*, __GLXFBConfigRec*, __GLXcontextRec*)'
    qglxintegration.cpp:(.text+0xc79): undefined reference to qglx_findVisualInfo(_XDisplay*, int, QSurfaceFormat*)' collect2: error: ld returned 1 exit status make[6]: *** [../../../../plugins/platforms/libqxcb.so] Error 1 make[6]: Leaving directory/home/qt/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms/xcb'
    make[5]: *** [sub-xcb-plugin-pro-make_first-ordered] Error 2
    make[5]: Leaving directory /home/qt/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms/xcb' make[4]: *** [sub-xcb-make_first] Error 2 make[4]: Leaving directory/home/qt/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms'
    make[3]: *** [sub-platforms-make_first] Error 2
    make[3]: *** Waiting for unfinished jobs....
    rm -f libqsqlite.so
    g++ -m64 -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/usr/local/Qt-5.1.1/lib -shared -o libqsqlite.so .obj/release-shared/smain.o .obj/release-shared/qsql_sqlite.o .obj/release-shared/sqlite3.o .obj/release-shared/moc_qsql_sqlite_p.o -L/home/qt/qt-everywhere-opensource-src-5.1.1/qtbase/lib -lQt5Sql -lQt5Core -lpthread
    mv -f libqsqlite.so ../../../../plugins/sqldrivers/
    make[5]: Leaving directory /home/qt/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/sqldrivers/sqlite' make[4]: Leaving directory/home/qt/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/sqldrivers'
    make[3]: Leaving directory /home/qt/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins' make[2]: *** [sub-plugins-make_first] Error 2 make[2]: Leaving directory/home/qt/qt-everywhere-opensource-src-5.1.1/qtbase/src'
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory `/home/qt/qt-everywhere-opensource-src-5.1.1/qtbase'
    make: *** [module-qtbase-make_first] Error 2

    I think I'm missing the obvious and I would be most grateful for help in making sure the libraries are setup correctly.

    I'm going to post another question on a RTTI error I get when running my Qt application. I assume that has nothing to do with my question I'm posting here, but just in case I'm mentioning it.

    Thanks in advance for the help. I would guess as I said that I'm missing the obvious.



  • On wiki page Building Qt5 From Git, the list of X11 packages plus command to download and install is provided. Seems like that information would be good to have in documentation under general topic of compiling for Linux, but be that what it may, it's very nice to have so that Qt staff.

    For reference, for SUSE 12.2 installing libraries is via:

    sudo zypper in xorg-x11-libxcb-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-renderutil-devel xcb-util-wm-devel xorg-x11-devel libxkbcommon-devel


Log in to reply