Solved Cross compile failed on xcb/xinerama.h
-
Hello, following this tutorial https://wiki.qt.io/RaspberryPi2EGLFS I got the following error:
make[5]: Entering directory '/home/ze/raspi/qtbase/src/plugins/platforms/xcb' /home/ze/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/home/ze/raspi/sysroot -O2 -std=c++0x -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_XKB -DQT_BUILD_XCB_QPA_LIB_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_BUILD_XCB_PLUGIN -DXCB_USE_XLIB -DXCB_USE_XINPUT2 -DXCB_USE_RENDER -DDFLT_XKB_CONFIG_ROOT=\"/usr/share/X11/xkb\" -DDEFAULT_XKB_RULES=\"evdev\" -DDEFAULT_XKB_MODEL=\"pc105\" -DDEFAULT_XKB_LAYOUT=\"us\" -DQ_FONTCONFIGDATABASE -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLATFORMSUPPORT_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Igl_integrations -I../../../3rdparty/xkbcommon -I../../../3rdparty/xkbcommon/xkbcommon -I../../../3rdparty/xkbcommon/src -I../../../3rdparty/xkbcommon/src/xkbcomp -I../../../../include -I../../../../include/QtPlatformSupport -I../../../../include/QtPlatformSupport/5.6.0 -I../../../../include/QtPlatformSupport/5.6.0/QtPlatformSupport -I../../../../include/QtGui/5.6.0 -I../../../../include/QtGui/5.6.0/QtGui -I../../../../include/QtGui -I../../../../include/QtCore/5.6.0 -I../../../../include/QtCore/5.6.0/QtCore -I../../../../include/QtDBus -I../../../../include/QtCore -I.moc -I../../../../mkspecs/devices/linux-rasp-pi2-g++ -o .obj/qxcbclipboard.o qxcbclipboard.cpp In file included from qxcbclipboard.cpp:37:0: qxcbscreen.h:43:26: fatal error: xcb/xinerama.h: No such file or directory #include <xcb/xinerama.h> ^ compilation terminated. Makefile.xcb_qpa_lib:2663: recipe for target '.obj/qxcbclipboard.o' failed make[5]: *** [.obj/qxcbclipboard.o] Error 1 make[5]: Leaving directory '/home/ze/raspi/qtbase/src/plugins/platforms/xcb' Makefile:42: recipe for target 'sub-xcb_qpa_lib-pro-make_first-ordered' failed make[4]: *** [sub-xcb_qpa_lib-pro-make_first-ordered] Error 2 make[4]: Leaving directory '/home/ze/raspi/qtbase/src/plugins/platforms/xcb' Makefile:97: recipe for target 'sub-xcb-make_first' failed make[3]: *** [sub-xcb-make_first] Error 2 make[3]: Leaving directory '/home/ze/raspi/qtbase/src/plugins/platforms' Makefile:100: recipe for target 'sub-platforms-make_first' failed make[2]: *** [sub-platforms-make_first] Error 2 make[2]: Leaving directory '/home/ze/raspi/qtbase/src/plugins' Makefile:720: recipe for target 'sub-plugins-make_first' failed make[1]: *** [sub-plugins-make_first] Error 2 make[1]: Leaving directory '/home/ze/raspi/qtbase/src' Makefile:45: recipe for target 'sub-src-make_first' failed make: *** [sub-src-make_first] Error 2
I installed sudo apt-get install libxcb-xinerama0 libxcb-xinerama0-dev on Pi and sync files again with no success :s
-
I have this problem too ;(
What should I do ?In file included from qxcbclipboard.cpp:37:0:
qxcbscreen.h:43:26: fatal error: xcb/xinerama.h: No such file or directory
#include <xcb/xinerama.h>
^
compilation terminated.
make[5]: *** [.obj/qxcbclipboard.o] Error 1
make[5]: Leaving directory/home/hamed/raspi/qtbase/src/plugins/platforms/xcb' make[4]: *** [sub-xcb_qpa_lib-pro-make_first-ordered] Error 2 make[4]: Leaving directory
/home/hamed/raspi/qtbase/src/plugins/platforms/xcb'
make[3]: *** [sub-xcb-make_first] Error 2
make[3]: Leaving directory/home/hamed/raspi/qtbase/src/plugins/platforms' make[2]: *** [sub-platforms-make_first] Error 2 make[2]: Leaving directory
/home/hamed/raspi/qtbase/src/plugins'
make[1]: *** [sub-plugins-make_first] Error 2
make[1]: Leaving directory `/home/hamed/raspi/qtbase/src'
make: *** [sub-src-make_first] Error 2 -
Yes, you need to install xcb-xinerama
sudo apt-get install libxcb-xinerama0 libxcb-xinerama0-dev
sync the files, run the
./sysroot-relativelinks.py sysroot
and ./configure again.
-
Again failed on another error
qeglfsbrcmintegration.cpp:35:22: fatal error: bcm_host.h: No such file or directory #include <bcm_host.h> ^ compilation terminated. make[6]: *** [.obj/qeglfsbrcmintegration.o] Error 1 make[6]: Leaving directory `/home/hamed/raspi/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_brcm' make[5]: *** [sub-eglfs_brcm-make_first] Error 2 make[5]: Leaving directory `/home/hamed/raspi/qtbase/src/plugins/platforms/eglfs/deviceintegration' make[4]: *** [sub-deviceintegration-make_first-ordered] Error 2 make[4]: Leaving directory `/home/hamed/raspi/qtbase/src/plugins/platforms/eglfs' make[3]: *** [sub-eglfs-make_first] Error 2 make[3]: Leaving directory `/home/hamed/raspi/qtbase/src/plugins/platforms' make[2]: *** [sub-platforms-make_first] Error 2 make[2]: Leaving directory `/home/hamed/raspi/qtbase/src/plugins' make[1]: *** [sub-plugins-make_first] Error 2 make[1]: Leaving directory `/home/hamed/raspi/qtbase/src' make: *** [sub-src-make_first] Error 2
-
installing xcb-xinerama did not help me (I have all the needed files intalled), so I did no-xcb in configure before make.
And I had the same problem as hamed. So now I just launch programs using other platform, like -platform linuxfb.
But that's not the way it should be, right? -
running the whole process from the start on Ubuntu 15.10 x64 is successful.
Before that troubles from this topic had occurred on Ubuntu 14.04 both x64 and x86