Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt5.1 build error on Odroid when using -opengl es2
Forum Updated to NodeBB v4.3 + New Features

Qt5.1 build error on Odroid when using -opengl es2

Scheduled Pinned Locked Moved Mobile and Embedded
1 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.
  • H Offline
    H Offline
    helthans
    wrote on last edited by
    #1

    Hi,

    I get errors while building Qt5.1 on Odroid running Xbuntu when I use the option -opengl es2

    I configure like this
    @
    ./configure -developer-build -opensource -nomake examples -nomake tests -no-pch -qt-xcb -DMESA_EGL_NO_X11_HEADERS -opengl es2
    @

    The error I get looks like this:
    @
    .obj/debug-shared/qxcbintegration.o: In function QEGLXcbPlatformContext': /home/odroid/dev/qt5/qtbase/src/plugins/platforms/xcb/qxcbintegration.cpp:175: undefined reference to QEGLPlatformContext::QEGLPlatformContext(QSurfaceFormat const&, QPlatformOpenGLContext*, void*, unsigned int)'
    .obj/debug-shared/qxcbintegration.o: In function QXcbIntegration::createPlatformOffscreenSurface(QOffscreenSurface*) const': /home/odroid/dev/qt5/qtbase/src/plugins/platforms/xcb/qxcbintegration.cpp:243: undefined reference to QEGLPbuffer::QEGLPbuffer(void*, QSurfaceFormat const&, QOffscreenSurface*)'
    .obj/debug-shared/qxcbintegration.o: In function QEGLXcbPlatformContext::~QEGLXcbPlatformContext()': /home/odroid/dev/qt5/qtbase/src/plugins/platforms/xcb/qxcbintegration.cpp:169: undefined reference to QEGLPlatformContext::~QEGLPlatformContext()'
    .obj/debug-shared/qxcbintegration.o: In function ~QEGLXcbPlatformContext': /home/odroid/dev/qt5/qtbase/src/plugins/platforms/xcb/qxcbintegration.cpp:169: undefined reference to QEGLPlatformContext::~QEGLPlatformContext()'
    .obj/debug-shared/qxcbintegration.o: In function QEGLXcbPlatformContext::swapBuffers(QPlatformSurface*)': /home/odroid/dev/qt5/qtbase/src/plugins/platforms/xcb/qxcbintegration.cpp:183: undefined reference to QEGLPlatformContext::swapBuffers(QPlatformSurface*)'
    .obj/debug-shared/qxcbintegration.o: In function QEGLXcbPlatformContext::makeCurrent(QPlatformSurface*)': /home/odroid/dev/qt5/qtbase/src/plugins/platforms/xcb/qxcbintegration.cpp:190: undefined reference to QEGLPlatformContext::makeCurrent(QPlatformSurface*)'
    .obj/debug-shared/qxcbintegration.o: In function QEGLXcbPlatformContext::doneCurrent()': /home/odroid/dev/qt5/qtbase/src/plugins/platforms/xcb/qxcbintegration.cpp:198: undefined reference to QEGLPlatformContext::doneCurrent()'
    .obj/debug-shared/qxcbintegration.o:(.data.rel.ro._ZTI22QEGLXcbPlatformContext[_ZTI22QEGLXcbPlatformContext]+0x8): undefined reference to typeinfo for QEGLPlatformContext' .obj/debug-shared/qxcbintegration.o:(.data.rel.ro._ZTV22QEGLXcbPlatformContext[_ZTV22QEGLXcbPlatformContext]+0x10): undefined reference to QEGLPlatformContext::format() const'
    .obj/debug-shared/qxcbintegration.o:(.data.rel.ro._ZTV22QEGLXcbPlatformContext[_ZTV22QEGLXcbPlatformContext]+0x2c): undefined reference to QEGLPlatformContext::getProcAddress(QByteArray const&)' .obj/debug-shared/qxcbwindow.o: In function QXcbWindow::eglSurface() const':
    /home/odroid/dev/qt5/qtbase/src/plugins/platforms/xcb/qxcbwindow.cpp:1414: undefined reference to q_configFromGLFormat(void*, QSurfaceFormat const&, bool, int)' .obj/debug-shared/qxcbwindow.o: In function QXcbWindow::create()':
    /home/odroid/dev/qt5/qtbase/src/plugins/platforms/xcb/qxcbwindow.cpp:293: undefined reference to q_configFromGLFormat(void*, QSurfaceFormat const&, bool, int)' /home/odroid/dev/qt5/qtbase/src/plugins/platforms/xcb/qxcbwindow.cpp:294: undefined reference to q_glFormatFromConfig(void*, void*, QSurfaceFormat const&)'
    /home/odroid/dev/qt5/qtbase/src/plugins/platforms/xcb/qxcbwindow.cpp:296: undefined reference to QXlibEglIntegration::getCompatibleVisualId(_XDisplay*, void*, void*)' .obj/debug-shared/qxcbnativeinterface.o: In function QXcbNativeInterface::eglContextForContext(QOpenGLContext*)':
    /home/odroid/dev/qt5/qtbase/src/plugins/platforms/xcb/qxcbnativeinterface.cpp:297: undefined reference to QEGLPlatformContext::eglContext() const' collect2: error: ld returned 1 exit status make[6]: *** [../../../../plugins/platforms/libqxcb.so] Error 1 make[6]: Leaving directory /home/odroid/dev/qt5/qtbase/src/plugins/platforms/xcb'
    make[5]: *** [sub-xcb-plugin-pro-make_first-ordered] Error 2
    make[5]: Leaving directory /home/odroid/dev/qt5/qtbase/src/plugins/platforms/xcb' make[4]: *** [sub-xcb-make_first] Error 2 make[4]: Leaving directory /home/odroid/dev/qt5/qtbase/src/plugins/platforms'
    make[3]: *** [sub-platforms-make_first] Error 2
    make[3]: Leaving directory /home/odroid/dev/qt5/qtbase/src/plugins' make[2]: *** [sub-plugins-make_first] Error 2 make[2]: Leaving directory /home/odroid/dev/qt5/qtbase/src'
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory `/home/odroid/dev/qt5/qtbase'
    make: *** [module-qtbase-make_first] Error 2
    @
    So undefined reference to QEGLPlatformContext::QEGLPlatformContext(). Am I missing some dependencies or is there something else in my setup which could be missing or wrongly setup?
    Any help is appreciated.

    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