Quantcast
Channel: Qt DevNet forums: QtonPi
Viewing all articles
Browse latest Browse all 92

Cross Compile Issue

$
0
0
All, I am trying to cross compile Qt 5 for the Rpi and have followed the “Beginners Guide to Cross Compile Qt5 on a RaspberryPi” posted here, with the execption of also having installed the packages in “Native Build of Qt 5 on a Raspberry Pi” that were listed as “needed for compiling.” I can get it to configure fine, but when I try to make qtbase I get the following output: qxcbconnection.cpp: In constructor ‘QXcbConnection::QXcbConnection(QXcbNativeInterface*, bool, const char*)’: qxcbconnection.cpp:280:45: error: invalid conversion from ‘EGLNativeDisplayType {aka void*}’ to ‘Display* {aka _XDisplay*}’ [-fpermissive] In file included from qxcbconnection.cpp:72:0: /mnt/rasp-pi-rootfs/usr/include/X11/Xlib-xcb.h:13:19: error:   initializing argument 1 of ‘xcb_connection_t* XGetXCBConnection(Display*)’ [-fpermissive] qxcbconnection.cpp:281:51: error: invalid conversion from ‘EGLNativeDisplayType {aka void*}’ to ‘Display* {aka _XDisplay*}’ [-fpermissive] In file included from qxcbconnection.cpp:72:0: /mnt/rasp-pi-rootfs/usr/include/X11/Xlib-xcb.h:16:6: error:   initializing argument 1 of ‘void XSetEventQueueOwner(Display*, XEventQueueOwner)’ [-fpermissive] /home/charles/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/mnt/rasp-pi-rootfs -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_XKB -DQ_FONTCONFIGDATABASE -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PLATFORMSUPPORT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../mkspecs/devices/linux-rasp-pi-g++ -I. -I../../../../include -I../../../../include/QtPlatformSupport -I../../../../include/QtPlatformSupport/5.2.2 -I../../../../include/QtPlatformSupport/5.2.2/QtPlatformSupport -I../../../../include/QtGui/5.2.2 -I../../../../include/QtGui/5.2.2/QtGui -I../../../../include/QtCore/5.2.2 -I../../../../include/QtCore/5.2.2/QtCore -I../../../../include/QtGui -I../../../../include/QtCore -I.moc -I/mnt/rasp-pi-rootfs/opt/vc/include -I/mnt/rasp-pi-rootfs/opt/vc/include/interface/vcos/pthreads -I/mnt/rasp-pi-rootfs/opt/vc/include/interface/vmcs_host/linux -o .obj/qlinuxfbscreen.o qlinuxfbscreen.cpp make[5]: *** [.obj/qxcbconnection.o] Error 1 make[5]: Leaving directory `/home/charles/opt/qt5/qtbase/src/plugins/platforms/xcb' make[4]: *** [sub-xcb-plugin-pro-make_first-ordered] Error 2 make[4]: Leaving directory `/home/charles/opt/qt5/qtbase/src/plugins/platforms/xcb' make[3]: *** [sub-xcb-make_first] Error 2 make[3]: *** Waiting for unfinished jobs.... This had worked fine in December, but due to some hardware problems I am forced to redo it. Any assistance is appricated. Charles

Viewing all articles
Browse latest Browse all 92

Trending Articles