Qt5.1 build error on Odroid when using -opengl es2
-
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 functionQEGLXcbPlatformContext': /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 functionQXcbIntegration::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 functionQEGLXcbPlatformContext::~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 functionQEGLXcbPlatformContext::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 functionQEGLXcbPlatformContext::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 functionQEGLXcbPlatformContext::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 totypeinfo 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 toQEGLPlatformContext::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 toq_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 toq_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 toQXlibEglIntegration::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 toQEGLPlatformContext::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.