Skip to content

Instantly share code, notes, and snippets.

@varesa
Created December 1, 2012 11:33
Show Gist options
  • Save varesa/4181634 to your computer and use it in GitHub Desktop.
Save varesa/4181634 to your computer and use it in GitHub Desktop.
EGL + udev errors
cd eglfs/ && ( test -f Makefile || /home/esa/qtonpi/qt5/qtbase/bin/qmake /home/esa/qtonpi/qt5/qtbase/src/plugins/platforms/eglfs/eglfs.pro -o Makefile ) && make -f Makefile
make[4]: Entering directory `/home/esa/qtonpi/qt5/qtbase/src/plugins/platforms/eglfs'
rm -f libqeglfs.so
/home/esa/qtonpi/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -Wl,-rpath-link,/mnt/rpi//opt/vc/lib -Wl,-rpath-link,/mnt/rpi//usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/mnt/rpi//lib/arm-linux-gnueabihf --sysroot=/mnt/rpi/ -Wl,--no-undefined -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/usr/local/qt5pi/lib -shared -o libqeglfs.so .obj/release-shared/main.o .obj/release-shared/qeglfsintegration.o .obj/release-shared/qeglfswindow.o .obj/release-shared/qeglfsbackingstore.o .obj/release-shared/qeglfsscreen.o .obj/release-shared/qeglfshooks_stub.o .obj/release-shared/qeglfscursor.o .obj/release-shared/qeglfscontext.o .obj/release-shared/qeglfshooks_pi.o .obj/release-shared/qrc_cursor.o -L/mnt/rpi//opt/vc/lib -lbcm_host -L/home/esa/qtonpi/qt5/qtbase/lib -lQt5PlatformSupport -lfontconfig -lfreetype -lQt5Gui -lQt5Core -lGLESv2 -lpthread -L/mnt/rpi//usr/lib/arm-linux-gnueabihf
.obj/release-shared/qeglfsintegration.o: In function `QEglFSIntegration::~QEglFSIntegration()':
qeglfsintegration.cpp:(.text+0x188): undefined reference to `eglTerminate'
.obj/release-shared/qeglfsintegration.o: In function `QEglFSIntegration::QEglFSIntegration()':
qeglfsintegration.cpp:(.text+0x574): undefined reference to `eglBindAPI'
qeglfsintegration.cpp:(.text+0x598): undefined reference to `eglGetDisplay'
qeglfsintegration.cpp:(.text+0x5b0): undefined reference to `eglInitialize'
qeglfsintegration.cpp:(.text+0x604): undefined reference to `eglSwapInterval'
.obj/release-shared/qeglfswindow.o: In function `QEglFSWindow::create()':
qeglfswindow.cpp:(.text+0x1b4): undefined reference to `eglCreateWindowSurface'
qeglfswindow.cpp:(.text+0x22c): undefined reference to `eglGetError'
qeglfswindow.cpp:(.text+0x238): undefined reference to `eglTerminate'
.obj/release-shared/qeglfswindow.o: In function `QEglFSWindow::destroy()':
qeglfswindow.cpp:(.text+0x354): undefined reference to `eglDestroySurface'
.obj/release-shared/qeglfshooks_pi.o: In function `QEglFSPiCursor::~QEglFSPiCursor()':
qeglfshooks_pi.cpp:(.text._ZN14QEglFSPiCursorD2Ev[_ZN14QEglFSPiCursorD5Ev]+0x24): undefined reference to `eglDestroySurface'
qeglfshooks_pi.cpp:(.text._ZN14QEglFSPiCursorD2Ev[_ZN14QEglFSPiCursorD5Ev]+0x3c): undefined reference to `eglDestroyContext'
.obj/release-shared/qeglfshooks_pi.o: In function `QEglFSPiCursor::changeCursor(QCursor*, QWindow*)':
qeglfshooks_pi.cpp:(.text._ZN14QEglFSPiCursor12changeCursorEP7QCursorP7QWindow[_ZN14QEglFSPiCursor12changeCursorEP7QCursorP7QWindow]+0x38): undefined reference to `eglDestroySurface'
qeglfshooks_pi.cpp:(.text._ZN14QEglFSPiCursor12changeCursorEP7QCursorP7QWindow[_ZN14QEglFSPiCursor12changeCursorEP7QCursorP7QWindow]+0xac): undefined reference to `eglCreateWindowSurface'
qeglfshooks_pi.cpp:(.text._ZN14QEglFSPiCursor12changeCursorEP7QCursorP7QWindow[_ZN14QEglFSPiCursor12changeCursorEP7QCursorP7QWindow]+0xc8): undefined reference to `eglMakeCurrent'
qeglfshooks_pi.cpp:(.text._ZN14QEglFSPiCursor12changeCursorEP7QCursorP7QWindow[_ZN14QEglFSPiCursor12changeCursorEP7QCursorP7QWindow]+0x120): undefined reference to `eglSwapBuffers'
qeglfshooks_pi.cpp:(.text._ZN14QEglFSPiCursor12changeCursorEP7QCursorP7QWindow[_ZN14QEglFSPiCursor12changeCursorEP7QCursorP7QWindow]+0x138): undefined reference to `eglMakeCurrent'
.obj/release-shared/qeglfshooks_pi.o: In function `QEglFSPiCursor::~QEglFSPiCursor()':
qeglfshooks_pi.cpp:(.text._ZN14QEglFSPiCursorD0Ev[_ZN14QEglFSPiCursorD0Ev]+0x24): undefined reference to `eglDestroySurface'
qeglfshooks_pi.cpp:(.text._ZN14QEglFSPiCursorD0Ev[_ZN14QEglFSPiCursorD0Ev]+0x3c): undefined reference to `eglDestroyContext'
.obj/release-shared/qeglfshooks_pi.o: In function `QEglFSPiHooks::createCursor(QEglFSScreen*) const':
qeglfshooks_pi.cpp:(.text._ZNK13QEglFSPiHooks12createCursorEP12QEglFSScreen[_ZNK13QEglFSPiHooks12createCursorEP12QEglFSScreen]+0x104): undefined reference to `eglCreateWindowSurface'
qeglfshooks_pi.cpp:(.text._ZNK13QEglFSPiHooks12createCursorEP12QEglFSScreen[_ZNK13QEglFSPiHooks12createCursorEP12QEglFSScreen]+0x114): undefined reference to `eglBindAPI'
qeglfshooks_pi.cpp:(.text._ZNK13QEglFSPiHooks12createCursorEP12QEglFSScreen[_ZNK13QEglFSPiHooks12createCursorEP12QEglFSScreen]+0x180): undefined reference to `eglCreateContext'
qeglfshooks_pi.cpp:(.text._ZNK13QEglFSPiHooks12createCursorEP12QEglFSScreen[_ZNK13QEglFSPiHooks12createCursorEP12QEglFSScreen]+0x1d0): undefined reference to `eglMakeCurrent'
qeglfshooks_pi.cpp:(.text._ZNK13QEglFSPiHooks12createCursorEP12QEglFSScreen[_ZNK13QEglFSPiHooks12createCursorEP12QEglFSScreen]+0x228): undefined reference to `eglSwapBuffers'
qeglfshooks_pi.cpp:(.text._ZNK13QEglFSPiHooks12createCursorEP12QEglFSScreen[_ZNK13QEglFSPiHooks12createCursorEP12QEglFSScreen]+0x240): undefined reference to `eglMakeCurrent'
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qeglconvenience.o): In function `q_glFormatFromConfig(void*, void*, QSurfaceFormat const&)':
qeglconvenience.cpp:(.text+0x50): undefined reference to `eglGetConfigAttrib'
qeglconvenience.cpp:(.text+0x64): undefined reference to `eglGetConfigAttrib'
qeglconvenience.cpp:(.text+0x78): undefined reference to `eglGetConfigAttrib'
qeglconvenience.cpp:(.text+0x8c): undefined reference to `eglGetConfigAttrib'
qeglconvenience.cpp:(.text+0xa0): undefined reference to `eglGetConfigAttrib'
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qeglconvenience.o):qeglconvenience.cpp:(.text+0xb4): more undefined references to `eglGetConfigAttrib' follow
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qeglconvenience.o): In function `q_glFormatFromConfig(void*, void*, QSurfaceFormat const&)':
qeglconvenience.cpp:(.text+0x16c): undefined reference to `eglGetError'
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qeglconvenience.o): In function `q_hasEglExtension(void*, char const*)':
qeglconvenience.cpp:(.text+0x1d4): undefined reference to `eglQueryString'
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qeglconvenience.o): In function `q_printEglConfig(void*, void*)':
qeglconvenience.cpp:(.text+0x440): undefined reference to `eglGetConfigAttrib'
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qeglconvenience.o): In function `q_configFromGLFormat(void*, QSurfaceFormat const&, bool, int)':
qeglconvenience.cpp:(.text+0xca0): undefined reference to `eglChooseConfig'
qeglconvenience.cpp:(.text+0xd90): undefined reference to `eglChooseConfig'
qeglconvenience.cpp:(.text+0xdcc): undefined reference to `eglGetConfigAttrib'
qeglconvenience.cpp:(.text+0xde4): undefined reference to `eglGetConfigAttrib'
qeglconvenience.cpp:(.text+0xdf8): undefined reference to `eglGetConfigAttrib'
qeglconvenience.cpp:(.text+0xe0c): undefined reference to `eglGetConfigAttrib'
qeglconvenience.cpp:(.text+0xee4): undefined reference to `eglChooseConfig'
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qeglplatformcontext.o): In function `QEGLPlatformContext::~QEGLPlatformContext()':
qeglplatformcontext.cpp:(.text+0x40): undefined reference to `eglDestroyContext'
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qeglplatformcontext.o): In function `QEGLPlatformContext::swapBuffers(QPlatformSurface*)':
qeglplatformcontext.cpp:(.text+0xbc): undefined reference to `eglBindAPI'
qeglplatformcontext.cpp:(.text+0xdc): undefined reference to `eglSwapBuffers'
qeglplatformcontext.cpp:(.text+0x118): undefined reference to `eglGetError'
qeglplatformcontext.cpp:(.text+0x140): undefined reference to `eglBindAPI'
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qeglplatformcontext.o): In function `QEGLPlatformContext::doneCurrent()':
qeglplatformcontext.cpp:(.text+0x198): undefined reference to `eglBindAPI'
qeglplatformcontext.cpp:(.text+0x1ac): undefined reference to `eglMakeCurrent'
qeglplatformcontext.cpp:(.text+0x1ec): undefined reference to `eglGetError'
qeglplatformcontext.cpp:(.text+0x214): undefined reference to `eglBindAPI'
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qeglplatformcontext.o): In function `QEGLPlatformContext::makeCurrent(QPlatformSurface*)':
qeglplatformcontext.cpp:(.text+0x270): undefined reference to `eglBindAPI'
qeglplatformcontext.cpp:(.text+0x298): undefined reference to `eglMakeCurrent'
qeglplatformcontext.cpp:(.text+0x2e0): undefined reference to `eglGetError'
qeglplatformcontext.cpp:(.text+0x30c): undefined reference to `eglBindAPI'
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qeglplatformcontext.o): In function `QEGLPlatformContext::getProcAddress(QByteArray const&)':
qeglplatformcontext.cpp:(.text+0x360): undefined reference to `eglBindAPI'
qeglplatformcontext.cpp:(.text+0x374): undefined reference to `eglGetProcAddress'
qeglplatformcontext.cpp:(.text+0x37c): undefined reference to `eglBindAPI'
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qeglplatformcontext.o): In function `QEGLPlatformContext::QEGLPlatformContext(QSurfaceFormat const&, QPlatformOpenGLContext*, void*, unsigned int)':
qeglplatformcontext.cpp:(.text+0x4a8): undefined reference to `eglBindAPI'
qeglplatformcontext.cpp:(.text+0x4c4): undefined reference to `eglCreateContext'
qeglplatformcontext.cpp:(.text+0x550): undefined reference to `eglCreateContext'
qeglplatformcontext.cpp:(.text+0x560): undefined reference to `eglBindAPI'
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qdevicediscovery_udev.o): In function `QDeviceDiscovery::QDeviceDiscovery(QFlags<QDeviceDiscovery::QDeviceType>, udev*, QObject*)':
qdevicediscovery_udev.cpp:(.text+0xfc): undefined reference to `udev_monitor_new_from_netlink'
qdevicediscovery_udev.cpp:(.text+0x118): undefined reference to `udev_monitor_filter_add_match_subsystem_devtype'
qdevicediscovery_udev.cpp:(.text+0x12c): undefined reference to `udev_monitor_filter_add_match_subsystem_devtype'
qdevicediscovery_udev.cpp:(.text+0x134): undefined reference to `udev_monitor_enable_receiving'
qdevicediscovery_udev.cpp:(.text+0x13c): undefined reference to `udev_monitor_get_fd'
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qdevicediscovery_udev.o): In function `QDeviceDiscovery::create(QFlags<QDeviceDiscovery::QDeviceType>, QObject*)':
qdevicediscovery_udev.cpp:(.text+0x1c8): undefined reference to `udev_new'
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qdevicediscovery_udev.o): In function `QDeviceDiscovery::~QDeviceDiscovery()':
qdevicediscovery_udev.cpp:(.text+0x280): undefined reference to `udev_monitor_unref'
qdevicediscovery_udev.cpp:(.text+0x290): undefined reference to `udev_unref'
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qdevicediscovery_udev.o): In function `QDeviceDiscovery::scanConnectedDevices()':
qdevicediscovery_udev.cpp:(.text+0x2f8): undefined reference to `udev_enumerate_new'
qdevicediscovery_udev.cpp:(.text+0x308): undefined reference to `udev_enumerate_add_match_subsystem'
qdevicediscovery_udev.cpp:(.text+0x318): undefined reference to `udev_enumerate_add_match_subsystem'
qdevicediscovery_udev.cpp:(.text+0x34c): undefined reference to `udev_enumerate_scan_devices'
qdevicediscovery_udev.cpp:(.text+0x368): undefined reference to `udev_enumerate_get_list_entry'
qdevicediscovery_udev.cpp:(.text+0x3b8): undefined reference to `udev_list_entry_get_next'
qdevicediscovery_udev.cpp:(.text+0x3c8): undefined reference to `udev_list_entry_get_name'
qdevicediscovery_udev.cpp:(.text+0x3d4): undefined reference to `udev_device_new_from_syspath'
qdevicediscovery_udev.cpp:(.text+0x3dc): undefined reference to `udev_device_get_devnode'
qdevicediscovery_udev.cpp:(.text+0x418): undefined reference to `udev_device_unref'
qdevicediscovery_udev.cpp:(.text+0x43c): undefined reference to `udev_list_entry_get_next'
qdevicediscovery_udev.cpp:(.text+0x44c): undefined reference to `udev_enumerate_unref'
qdevicediscovery_udev.cpp:(.text+0x4dc): undefined reference to `udev_enumerate_add_match_property'
qdevicediscovery_udev.cpp:(.text+0x4f8): undefined reference to `udev_enumerate_add_match_property'
qdevicediscovery_udev.cpp:(.text+0x518): undefined reference to `udev_enumerate_add_match_property'
qdevicediscovery_udev.cpp:(.text+0x538): undefined reference to `udev_enumerate_add_match_property'
qdevicediscovery_udev.cpp:(.text+0x558): undefined reference to `udev_enumerate_add_match_property'
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qdevicediscovery_udev.o): In function `QDeviceDiscovery::checkDeviceType(udev_device*)':
qdevicediscovery_udev.cpp:(.text+0x608): undefined reference to `udev_device_get_property_value'
qdevicediscovery_udev.cpp:(.text+0x62c): undefined reference to `udev_device_get_sysattr_value'
qdevicediscovery_udev.cpp:(.text+0x778): undefined reference to `udev_device_get_property_value'
qdevicediscovery_udev.cpp:(.text+0x7a8): undefined reference to `udev_device_get_property_value'
qdevicediscovery_udev.cpp:(.text+0x7e0): undefined reference to `udev_device_get_property_value'
qdevicediscovery_udev.cpp:(.text+0x80c): undefined reference to `udev_device_get_property_value'
qdevicediscovery_udev.cpp:(.text+0x860): undefined reference to `udev_device_get_subsystem'
/home/esa/qtonpi/qt5/qtbase/lib/libQt5PlatformSupport.a(qdevicediscovery_udev.o): In function `QDeviceDiscovery::handleUDevNotification()':
qdevicediscovery_udev.cpp:(.text+0x8f4): undefined reference to `udev_monitor_receive_device'
qdevicediscovery_udev.cpp:(.text+0x900): undefined reference to `udev_device_get_action'
qdevicediscovery_udev.cpp:(.text+0x910): undefined reference to `udev_device_get_devnode'
qdevicediscovery_udev.cpp:(.text+0x9c0): undefined reference to `udev_device_get_parent_with_subsystem_devtype'
qdevicediscovery_udev.cpp:(.text+0xa20): undefined reference to `udev_device_unref'
collect2: error: ld returned 1 exit status
make[4]: *** [../../../../plugins/platforms/libqeglfs.so] Error 1
make[4]: Leaving directory `/home/esa/qtonpi/qt5/qtbase/src/plugins/platforms/eglfs'
make[3]: *** [sub-eglfs-make_first] Error 2
make[3]: Leaving directory `/home/esa/qtonpi/qt5/qtbase/src/plugins/platforms'
make[2]: *** [sub-platforms-make_first] Error 2
make[2]: Leaving directory `/home/esa/qtonpi/qt5/qtbase/src/plugins'
make[1]: *** [sub-plugins-make_first] Error 2
make[1]: Leaving directory `/home/esa/qtonpi/qt5/qtbase/src'
make: *** [sub-src-make_first] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment