Talk:RaspberryPi2EGLFS: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Added the solution to the two problems)
(remove wrong information)
Line 70: Line 70:


If I have to install Qt Serial Port, then I am not sure how to successfully install it in this cross-compile environment. Can anyone help with this? Thank you!
If I have to install Qt Serial Port, then I am not sure how to successfully install it in this cross-compile environment. Can anyone help with this? Thank you!
== This is the solution of Qserial port ==
You do not need to cross-compile the Qserial port because in fact the Qserial port library it's a libserial so, just download the source code of the libserial from [http://libserial.sourceforge.net/x19.html here] and build it on your Raspberry pi after that copy the system image of the pi from the SD card and replace system image on your host computer with the copy to perform the cross-compiling

Revision as of 13:42, 7 April 2016

I got this error in make step


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

hamed@hamed-PC ~/raspi/qtbase $

I edited this topic to add the solution to this error (fatal error: bcm_host.h: No such file or directory)

to solve this problem just add these lines

INCLUDEPATH += $[QT_SYSROOT]/opt/vc/include

INCLUDEPATH += $[QT_SYSROOT]/opt/vc/include/interface/vcos

INCLUDEPATH += $[QT_SYSROOT]/opt/vc/include/interface/vcos/pthreads

INCLUDEPATH += $[QT_SYSROOT]/opt/vc/include/interface/vmcs_host/linux

to these two files: "qtbase/mkspecs/devices/linux-rasp-pi-g++/qmake.conf"

and:

"qtbase/mkspecs/devices/linux-rasp-pi2-g++/qmake.conf"

after save the files repeat these two steps "configure" and "make"

the refrence is this thread



Different error in the make step http://stackoverflow.com/questions/34685488/qt-5-6-cross-compile-for-raspberry-pi-with-eglfs

QT Serial Port install in cross-compile environment

I am attempting to adapt the instructions linked here: Qt Serial Port to this cross-compile environment. The Qt Serial Port page suggests that Qt Serial Port is included in Qt5, however I cannot seem to find it. Has it been removed? I am running QT 5.4.2. on my host system.

If I have to install Qt Serial Port, then I am not sure how to successfully install it in this cross-compile environment. Can anyone help with this? Thank you!