Need help on Cross compiling Qt 5.2 on UDOO board
-
Hi guys,
Does anyone know what it is the problem?Here is my building environment.
Host:
- Ubontu 13.10 64-bit
- install ia32-libs
- toolchain: https://github.com/embest-tech/fsl-linaro-toolchain.git
- Qt5: git clone git://gitorious.org/qt/qt5.git qt5
- Qt3d: git clone git://gitorious.org/qt/qt3d.git qt3d
- Edit qmake.conf
$ gedit qtbase/mkspecs/devices/linux-imx6-g++/qmake.conf
QMAKE_INCDIR += $$[QT_SYSROOT]/usr/include $$[QT_SYSROOT]/usr/include/arm-linux-gnueabihf
QMAKE_LFLAGS += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf - ./configure -prefix /opt/qt5_udoo -make libs -no-pch -no-opengl -device imx6 -device-option CROSS_COMPILE=~/qt5udoo/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi- -no-largefile -opengl es2 -qt-zlib -qt-libpng -qt-libjpeg -no-nis -no-cups -gui -make examples -sysroot /mnt/udoo_debian -no-gcc-sysroot -opensource -confirm-license -qreal float -v
Target:
UDOO with image udoo_quad_debian_wheezy_armhf_v1.0beta.imgBefore make command:
sudo mount -o loop,offset=8225280 ~/qt5udoo/udoo_quad_debian_wheezy_armhf_v1.0beta.img /mnt/udoo_debian** /mnt/udoo_debian = $[QT_SYSROOT]
EGL uses framebuffer backend:
$ cd /mnt/udoo_debian/usr/lib
$ sudo rm libEGL.so
$ sudo rm libEGL.so.1
$ sudo rm libGAL.so
$ sudo ln -s libEGL-fb.so libEGL.so
$ sudo ln -s libEGL-fb.so libEGL.so.1
$ sudo ln -s libGAL-fb.so libGAL.soConfigure summary
Building on: linux-g++ (x86_64, CPU features: mmx sse sse2)
Building for: devices/linux-imx6-g++ (arm, CPU features: neon)
Platform notes:- Also available for Linux: linux-kcc linux-icc linux-cxx
qmake vars .......... styles += mac fusion windows DEFINES += QT_NO_MTDEV DEFINES += QT_NO_LIBUDEV DEFINES += QT_NO_XCB DEFINES += QT_NO_XKBCOMMON sql-drivers = sql-plugins = sqlite qmake switches .........
Build options:
Configuration .......... accessibility audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile egl eglfs evdev eventfd freetype full-config getaddrinfo getifaddrs iconv inotify ipv6ifname large-config linuxfb medium-config minimal-config mremap neon no-harfbuzz opengl opengles2 openvg pcre png posix_fallocate qpa qpa reduce_exports reduce_relocations release rpath shared small-config zlibBuild parts ............ libs examples
Mode ................... release
Using C++11 ............ yes
Using PCH .............. noTarget compiler supports:
iWMMXt/Neon .......... no/yesQt modules and options:
Qt D-Bus ............... no
Qt Concurrent .......... yes
Qt GUI ................. yes
Qt Widgets ............. yes
JavaScriptCore JIT ..... yes (To be decided by JavaScriptCore)
QML debugging .......... yes
Use system proxies ..... noSupport enabled for:
Accessibility .......... yes
ALSA ................... no
CUPS ................... no
FontConfig ............. no
FreeType ............... yes
Iconv .................. yes
ICU .................... noImage formats:
GIF .................. yes (plugin, using bundled copy)
JPEG ................. yes (plugin, using bundled copy)
PNG .................. yes (in QtGui, using bundled copy)
Glib ................... no
GTK theme .............. no
Large File ............. no
mtdev .................. noNetworking:
getaddrinfo .......... yes
getifaddrs ........... yes
IPv6 ifname .......... yes
OpenSSL .............. no
NIS .................... no
OpenGL ................. yes (OpenGL ES 2.x)
OpenVG ................. yes-auto
PCRE ................... yes (bundled copy)
pkg-config ............. yes
PulseAudio ............. noQPA backends:
DirectFB ............. no
EGLFS ................ yes
KMS .................. no
LinuxFB .............. yes
XCB .................. no
Session management ..... yesSQL drivers:
DB2 .................. no
InterBase ............ no
MySQL ................ no
OCI .................. no
ODBC ................. no
PostgreSQL ........... no
SQLite 2 ............. no
SQLite ............... yes (plugin, using bundled copy)
TDS .................. no
udev ................... no
xkbcommon .............. no
zlib ................... yes (bundled copy)
after "make" command, stop here
qsgvivantevideomaterial.cpp: In destructor 'virtual QSGVivanteVideoMaterial::~QSGVivanteVideoMaterial()':
qsgvivantevideomaterial.cpp:70: error: expected initializer before ':' token
qsgvivantevideomaterial.cpp:76: error: expected primary-expression before '}' token
qsgvivantevideomaterial.cpp:76: error: expected ';' before '}' token
qsgvivantevideomaterial.cpp:76: error: expected primary-expression before '}' token
qsgvivantevideomaterial.cpp:76: error: expected ')' before '}' token
qsgvivantevideomaterial.cpp:76: error: expected primary-expression before '}' token
qsgvivantevideomaterial.cpp:76: error: expected ';' before '}' token -
Hi Eddy,
Yes. Thanks for reminding.[quote author="Eddy" date="1396858064"]Hi davidhuang,
first of all welcome to the DevNet forums.
Please start new threads to ask your questions if the subject is not completely related. Thanks,[/quote]