Qt cross compile for Raspbian Jessie
-
jsondb and jsbackend ? Where did you had them ?
Can you locate qwidget.h in
/mnt/rasp-pi-rootfs/usr/local/qt5pi/include
? -
Looks like it, what option did you give to configure ?
-
@SGaist ./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5pi -hostprefix /usr/local/qt5pi
same as mentioned in http://wiki.qt.io/Raspberrypi_beginners_guide -
That looks correct, do you have the configure summary ?
-
Configure summary
Building on: linux-g++ (x86_64, CPU features: mmx sse sse2)
Building for: devices/linux-rasp-pi-g++ (arm, CPU features: none detected)
Platform notes:- Also available for Linux: linux-clang linux-kcc linux-icc linux-cxx
Build options:
Configuration .......... accessibility audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile dbus egl eglfs eglfs_brcm enable_new_dtags evdev eventfd freetype full-config getaddrinfo getifaddrs harfbuzz iconv inotify ipv6ifname large-config largefile linuxfb medium-config minimal-config mremap nis opengl opengles2 pcre png posix_fallocate precompile_header qpa qpa reduce_exports release rpath shared small-config system-png system-zlib threadsafe-cloexec
Build parts ............ libs
Mode ................... release
Using sanitizer(s)...... none
Using C++ standard ..... c++11
Using gold linker....... no
Using new DTAGS ........ yes
Using PCH .............. yes
Target compiler supports:
Neon ................. noQt modules and options:
Qt D-Bus ............... yes (loading dbus-1 at runtime)
Qt Concurrent .......... yes
Qt GUI ................. yes
Qt Widgets ............. yes
Large File ............. yes
QML debugging .......... yes
Use system proxies ..... noSupport enabled for:
Accessibility .......... yes
ALSA ................... no
CUPS ................... no
Evdev .................. yes
FontConfig ............. no
FreeType ............... yes (bundled copy)
Glib ................... no
GStreamer .............. no
GTK theme .............. no
HarfBuzz ............... yes (bundled copy)
Iconv .................. yes
ICU .................... no
Image formats:
GIF .................. yes (plugin, using bundled copy)
JPEG ................. yes (plugin, using bundled copy)
PNG .................. yes (in QtGui, using system library)
libinput................ no
Logging backends:
journald ............... no
syslog ............... no
mtdev .................. no
Networking:
getaddrinfo .......... yes
getifaddrs ........... yes
IPv6 ifname .......... yes
libproxy.............. no
OpenSSL .............. no
NIS .................... yes
OpenGL / OpenVG:
EGL .................. yes
OpenGL ............... yes (OpenGL ES 2.0+)
OpenVG ............... no
PCRE ................... yes (bundled copy)
pkg-config ............. yes
PulseAudio ............. no
QPA backends:
DirectFB ............. no
EGLFS ................ yes
EGLFS i.MX6....... . no
EGLFS KMS .......... no
EGLFS Mali ......... no
EGLFS Raspberry Pi . yes
EGLFS X11 .......... no
LinuxFB .............. yes
Mir client............ no
XCB .................. no
Session management ..... yes
SQL drivers:
DB2 .................. no
InterBase ............ no
MySQL ................ no
OCI .................. no
ODBC ................. no
PostgreSQL ........... no
SQLite 2 ............. no
SQLite ............... yes (plugin, using bundled copy)
TDS .................. no
tslib .................. no
udev ................... no
xkbcommon-x11........... no
xkbcommon-evdev......... no
zlib ................... yes (system library)NOTE: Qt is using double for qreal on this system. This is binary incompatible against Qt 5.1.
Configure with '-qreal float' to create a build that is binary compatible with 5.1. -
Looks good…
Might be a glitch when you ran
make install
-
Well, basically and if I understood you correctly, you are able to cross-compile without any problem, correct ? When calling
make install
did you have the root file system of the Pi mounted correctly ? -
@SGaist I checked install log properly it should make QtWidget, QtPlateformHeaders, QtPlateformSupport, QtTest, QtOpenGL, QtPrintSupport, QtConcurrent, QtCore, QtDBus, QtGui, QtNetwork , QtPositioning, QtScript, QtSensors, QtSql , QtXml , QtXmlPatterns folders. But after finishing installation i m getting only QtConcurrent, QtCore, QtDBus, QtGui, QtNetwork , QtPositioning, QtScript, QtSensors, QtSql , QtXml , QtXmlPatterns folders in my install and similar in lib directory. So it cant install QtWidget, QtPlateformHeaders, QtPlateformSupport, QtTest, QtOpenGL, QtPrintSupport modules. I did nt find anything unusual in log.
-
Did you build only qtbase or all of Qt ?
-
well according to https://wiki.qt.io/RaspberryPi_Beginners_Guide i have to build and install qtbase and than other modules. So I could not finish this step and I am blocked.
-
That's correct. Do you have libQtWidget.so somewhere in your build folder ?
-
That one's really puzzling…
What happens if you call
make -C src/widgets
in your builder ? -
Hi @SGaist ,
I dont know what exactly was the problem. But I re cloned repo and than tried all steps and it works as expected. Could be a problem of broken download. But it neither gave me any unexpected error message not it failed. :P
But now i m happy tht i wll have kernel 4.1 with qt in my pi.. thanks for your time and support man. -
Well, that was a good idea !
You're welcome !
Since you have it working now, please mark the thread as solved using the "Topic Tool" button so other forum users may know a solution has been found :)