Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. SUSE X11 compilation issue

SUSE X11 compilation issue

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gjscnc
    wrote on last edited by
    #1

    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 to qglx_findVisualInfo(_XDisplay*, int, QSurfaceFormat*)'
    .obj/release-shared/qglxintegration.o: In function QGLXPbuffer::QGLXPbuffer(QOffscreenSurface*)': qglxintegration.cpp:(.text+0x3d2): undefined reference to qglx_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 function QGLXContext::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 to qglx_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.

    Thanks,

    George

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gjscnc
      wrote on last edited by
      #2

      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

      George

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved