qeglfsvivintegration.cpp: undefined reference to `fbCreateWindow'
-
I am trying to build qt from sources qt5.10.1 on imx6 development board. I have ubuntu 14.04 on the board and have updated the compiler to gcc 5.6.3
I run the following configure cmd:
./configure -release -opensource -confirm-license -opengl es2 -nomake examples -nomake tests -no-use-gold-linker -recheck -make libs -v
then: #make -j4
I see the following error:rm -f libqeglfs-viv-integration.so
g++ -Wl,--no-undefined -Wl,--no-undefined -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,$ORIGIN/../../lib -Wl,-rpath-link,/root/qt5/qtbase/lib -shared -o libqeglfs-viv-integration.so .obj/qeglfsvivmain.o .obj/qeglfsvivintegration.o -L/root/qt5/qtbase/lib -lQt5EglFSDeviceIntegration -lQt5EventDispatcherSupport -lgthread-2.0 -lglib-2.0 -lQt5ServiceSupport -lQt5ThemeSupport -lQt5DBus -lQt5FontDatabaseSupport -lfontconfig -lfreetype -lQt5FbSupport -lQt5EglSupport -lXext -lX11 -lm -lEGL -lQt5InputSupport -lQt5PlatformCompositorSupport -lQt5Gui -lQt5DeviceDiscoverySupport -ludev -lQt5Core -lGLESv2 -lpthread -ldl -lEGL
make[5]: Entering directory/root/qt5/qtbase/src/plugins/platforms/linuxfb' make[5]: Nothing to be done for
first'.
make[5]: Leaving directory/root/qt5/qtbase/src/plugins/platforms/linuxfb' cd vnc/ && ( test -e Makefile || /root/qt5/qtbase/bin/qmake -o Makefile /root/qt5/qtbase/src/plugins/platforms/vnc/vnc.pro ) && make -f Makefile make[5]: Entering directory
/root/qt5/qtbase/src/plugins/platforms/vnc'
/root/qt5/qtbase/bin/qmake -o Makefile vnc.pro
.obj/qeglfsvivintegration.o: In functionQEglFSVivIntegration::createNativeWindow(QPlatformWindow*, QSize const&, QSurfaceFormat const&)': qeglfsvivintegration.cpp:(.text+0x26): undefined reference to
fbCreateWindow'
.obj/qeglfsvivintegration.o: In functionQEglFSVivIntegration::platformInit()': qeglfsvivintegration.cpp:(.text+0x6c): undefined reference to
fbGetDisplayByIndex'
qeglfsvivintegration.cpp:(.text+0x76): undefined reference tofbGetDisplayGeometry' .obj/qeglfsvivintegration.o: In function
QEglFSVivIntegration::destroyNativeWindow(_FBWindow*)':
qeglfsvivintegration.cpp:(.text+0x32): undefined reference tofbDestroyWindow' .obj/qeglfsvivintegration.o:(.data.rel.ro+0x28): undefined reference to
QEglFSDeviceIntegration::createDisplay(_FBDisplay*)'
collect2: error: ld returned 1 exit status
make[7]: *** [../../../../../../plugins/egldeviceintegrations/libqeglfs-viv-integration.so] Error 1
make[7]: Leaving directory `/root/qt5/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv'
make[6]: *** [sub-eglfs_viv-make_first] Error 2
Any help will be greatly appreciated. -
I am trying to build qt from sources qt5.10.1 on imx6 development board. I have ubuntu 14.04 on the board and have updated the compiler to gcc 5.6.3
I run the following configure cmd:
./configure -release -opensource -confirm-license -opengl es2 -nomake examples -nomake tests -no-use-gold-linker -recheck -make libs -v
then: #make -j4
I see the following error:rm -f libqeglfs-viv-integration.so
g++ -Wl,--no-undefined -Wl,--no-undefined -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,$ORIGIN/../../lib -Wl,-rpath-link,/root/qt5/qtbase/lib -shared -o libqeglfs-viv-integration.so .obj/qeglfsvivmain.o .obj/qeglfsvivintegration.o -L/root/qt5/qtbase/lib -lQt5EglFSDeviceIntegration -lQt5EventDispatcherSupport -lgthread-2.0 -lglib-2.0 -lQt5ServiceSupport -lQt5ThemeSupport -lQt5DBus -lQt5FontDatabaseSupport -lfontconfig -lfreetype -lQt5FbSupport -lQt5EglSupport -lXext -lX11 -lm -lEGL -lQt5InputSupport -lQt5PlatformCompositorSupport -lQt5Gui -lQt5DeviceDiscoverySupport -ludev -lQt5Core -lGLESv2 -lpthread -ldl -lEGL
make[5]: Entering directory/root/qt5/qtbase/src/plugins/platforms/linuxfb' make[5]: Nothing to be done for
first'.
make[5]: Leaving directory/root/qt5/qtbase/src/plugins/platforms/linuxfb' cd vnc/ && ( test -e Makefile || /root/qt5/qtbase/bin/qmake -o Makefile /root/qt5/qtbase/src/plugins/platforms/vnc/vnc.pro ) && make -f Makefile make[5]: Entering directory
/root/qt5/qtbase/src/plugins/platforms/vnc'
/root/qt5/qtbase/bin/qmake -o Makefile vnc.pro
.obj/qeglfsvivintegration.o: In functionQEglFSVivIntegration::createNativeWindow(QPlatformWindow*, QSize const&, QSurfaceFormat const&)': qeglfsvivintegration.cpp:(.text+0x26): undefined reference to
fbCreateWindow'
.obj/qeglfsvivintegration.o: In functionQEglFSVivIntegration::platformInit()': qeglfsvivintegration.cpp:(.text+0x6c): undefined reference to
fbGetDisplayByIndex'
qeglfsvivintegration.cpp:(.text+0x76): undefined reference tofbGetDisplayGeometry' .obj/qeglfsvivintegration.o: In function
QEglFSVivIntegration::destroyNativeWindow(_FBWindow*)':
qeglfsvivintegration.cpp:(.text+0x32): undefined reference tofbDestroyWindow' .obj/qeglfsvivintegration.o:(.data.rel.ro+0x28): undefined reference to
QEglFSDeviceIntegration::createDisplay(_FBDisplay*)'
collect2: error: ld returned 1 exit status
make[7]: *** [../../../../../../plugins/egldeviceintegrations/libqeglfs-viv-integration.so] Error 1
make[7]: Leaving directory `/root/qt5/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv'
make[6]: *** [sub-eglfs_viv-make_first] Error 2
Any help will be greatly appreciated.@Lorenc Sounds like you have the wrong version of EGL. You need libEGL-fb.so and not the x11 one.