Hi,
I'm struggling a lot to cross-compile QT-5.6. Did anyone succeed to do it ?
qmake.conf
include(../common/linux_device_pre.conf)
ROOTFS=/mnt/hd
EGLFS_PLATFORM_HOOKS_SOURCES = $$PWD/qeglfshooks_imx6.cpp
QMAKE_LIBS_EGL += -lEGL
QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lGAL
QMAKE_LIBS_OPENVG += -lOpenVG -lEGL -lGAL
IMX6_CFLAGS = -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1
QMAKE_CFLAGS += $$IMX6_CFLAGS
QMAKE_CXXFLAGS += $$IMX6_CFLAGS
QMAKE_LFLAGS += -Wl,-rpath-link,$$ROOTFS/usr/lib
IMX6_CFLAGS_RELEASE = -O2 $$IMX6_CFLAGS
QMAKE_CFLAGS_RELEASE += $$IMX6_CFLAGS_RELEASE
QMAKE_CXXFLAGS_RELEASE += $$IMX6_CFLAGS_RELEASE
QMAKE_CFLAGS_DEBUG += $$IMX6_CFLAGS
QMAKE_CXXFLAGS_DEBUG += $$IMX6_CFLAGS
# Preferred eglfs backend
EGLFS_DEVICE_INTEGRATION = eglfs_viv
QMAKE_INCDIR += $$ROOTFS/usr/include
QMAKE_LIBDIR += $$ROOTFS/usr/lib
QMAKE_INCDIR_OPENGL_ES2+= $$ROOTFS/usr/include/GLES2
QMAKE_LIBDIR_OPENGL_ES2+= $$ROOTFS/usr/lib
QMAKE_LIBS += -L/mnt/hd/usr/lib -lgthread-2.0 -lgio-2.0 -lglib-2.0 -lgmodule-2.0 -lgobject-2.0 -lgstbase-0.10 -lgstcontroller-0.10 -lgstreamer-0.10 -lz -lffi -lxml2 -llzma -lm -lmms
include(../common/linux_arm_device_post.conf)
load(qt_config)
My configure settings
export PKG_CONFIG_SYSROOT_DIR=/mnt/hd
export PKG_CONFIG_LIBDIR=/mnt/hd/usr/lib/pkgconfig/
./configure -v -opensource -confirm-license -qt-zlib -no-use-gold-linker -no-reduce-relocations -no-pch -no-xcb -no-opengl -opengl es2 -glib -gstreamer -pkg-config -no-directfb \
-no-cups -no-dbus -no-icu -no-android-style-assets -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds \
-make libs -device imx6 \
-compile-examples \
-device-option CROSS_COMPILE=/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf- \
-sysroot /mnt/hd -no-gcc-sysroot \
-prefix /tmp/qtinstallqt5 \
-skip xmlpatterns -skip winextras -skip webview -skip websockets -skip webengine -skip webchannel -skip wayland -skip serialport -skip serialbus -skip sensors -skip quickcontrols2 -skip multimedia -skip macextras -skip androidextras
And errors
[...]
Running configuration tests (phase 1)...
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf-g++ -c -fvisibility=hidden fvisibility.c
Symbol visibility control enabled.
DEFAULT_INCDIRS="/usr/lib64/qt/include
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/include/c++/4.9.2
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/include/c++/4.9.2/arm-linux-gnueabihf
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/include/c++/4.9.2/backward
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/lib/gcc/arm-linux-gnueabihf/4.9.2/include
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/lib/gcc/arm-linux-gnueabihf/4.9.2/include-fixed
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/include
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/libc/usr/include
"
DEFAULT_LIBDIRS="/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/lib
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/libc/lib/arm-linux-gnueabihf
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/libc/lib
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/libc/usr/lib/arm-linux-gnueabihf
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/libc/usr/lib
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/lib/gcc/arm-linux-gnueabihf/4.9.2
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/lib/gcc/arm-linux-gnueabihf
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/lib/gcc
"
Done running configuration tests.
<srcbase> = /tmp/qt5/qtbase
<outbase> = /tmp/qt5/qtbase
Creating qmake...
gmake: Nothing to be done for `first'.
Running configuration tests (phase 2)...
Found pkg-config from $PATH: /usr/bin/pkg-config
Determining architecture... ()
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp -g -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../mkspecs/devices/linux-imx6-g++ -o arch.o arch.cpp
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf-g++ -Wl,-rpath-link,/mnt/hd/usr/lib -mfloat-abi=softfp -o arch arch.o -L/mnt/hd/usr/lib -lgthread-2.0 -lgio-2.0 -lglib-2.0 -lgmodule-2.0 -lgobject-2.0 -lgstbase-0.10 -lgstcontroller-0.10 -lgstreamer-0.10 -lz -lffi -lxml2 -llzma -lm -lmms
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.2/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /lib/libc.so.6 when searching for /lib/libc.so.6
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.2/../../../../arm-linux-gnueabihf/bin/ld: cannot find /lib/libc.so.6
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.2/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/libc_nonshared.a when searching for /usr/lib/libc_nonshared.a
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.2/../../../../arm-linux-gnueabihf/bin/ld: cannot find /usr/lib/libc_nonshared.a
/tmp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.2/../../../../arm-linux-gnueabihf/bin/ld: cannot find /lib/ld-linux.so.3
collect2: error: ld returned 1 exit status
gmake: *** [arch] Error 1
Unable to determine architecture!
[...]
And I got a lot of like this.
Help appreciated :smileyhappy:
Cheers
Hi,
I've built it using Buildroot sucessfully. I suggest you do the same, Buildroot will take care of all the dependencies.
It is also possible with Yocto.
Regards,
Gary
Hmm...the problem is I already have my system running with a custom 4.4 kernel. I can't simply through away all my environment for an another systems.
All I need is compiling and installing QT5 on imx6. I read a huge numbers of tutorial and forums, I tried a large numbers of cross-compilation tools and methods to build QT5. But it always end with a big fail. So...3 months later...still nothing. So, I have a simple question :
Do it exists a proper up-to-date documentation for compiling natively or cross-compiling QT5 on imx6 ?
Regards,
Pierre
Hi Pierre,
It's a shame indeed, it never took more than a couple hours with Buildroot to build everything from scratch successfully (kernel/system/Qt5 etc).
How is cross-compiling using buildroot throwing away your environment? It uses its own environment.
Anyway, regardin the documentation, I'm sure you've already been through those since they are the first hits in Google:
As far as I know there isn't much difference between Qt5.5 and Qt5.6 regarding the way it is built.
Then you can have a look at how build system are handling it:
buildroot/qt5base.mk at master · buildroot/buildroot · GitHub
Regards,
Gary
Hi Gary,
Thank you for your answers. Unfortunately, I also read these docs and it didn't help. Actually, I would like to know why it's not working my QT5 settings in the first post. I simplified qmake.conf and config.imx6 and I'm still these errors (sorry that's a lot of lines) :
# ./config.imx6
This is the Qt Open Source Edition.
You are licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.
You are also licensed to use this software under the terms of
the GNU Lesser General Public License (LGPL) versions 3.
You have already accepted the terms of the Open Source license.
Running configuration tests (phase 1)...
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -fvisibility=hidden fvisibility.c
Symbol visibility control enabled.
arm-linux-gnueabi-g++: error: unrecognized command line option '-fuse-ld=gold'
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ --sysroot=/mnt/hd -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c
bsymbolic_functions.c:2:2: error: #error "Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129)."
Symbolic function binding disabled.
DEFAULT_INCDIRS="/usr/lib64/qt/include
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/arm-linux-gnueabi/include/c++/4.7.1
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/arm-linux-gnueabi/include/c++/4.7.1/arm-linux-gnueabi
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/arm-linux-gnueabi/include/c++/4.7.1/backward
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/lib/gcc/arm-linux-gnueabi/4.7.1/include
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/lib/gcc/arm-linux-gnueabi/4.7.1/include-fixed
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/arm-linux-gnueabi/include
/mnt/hd/usr/include
"
DEFAULT_LIBDIRS="/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/lib/gcc/arm-linux-gnueabi/4.7.1
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/lib/gcc/arm-linux-gnueabi
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/lib/gcc
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/arm-linux-gnueabi/lib
/mnt/hd/lib
/mnt/hd/usr/lib
"
Done running configuration tests.
Creating qmake...
gmake: Nothing to be done for 'first'.
Running configuration tests (phase 2)...
Found pkg-config from $PATH: /usr/bin/pkg-config
Note: PKG_CONFIG_LIBDIR automatically set to /mnt/hd/usr/lib/pkgconfig:/mnt/hd/usr/share/pkgconfig:/mnt/hd/usr/lib/arm-linux-gnueabi/pkgconfig
Note: PKG_CONFIG_SYSROOT_DIR automatically set to /mnt/hd
Determining architecture... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -g -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../mkspecs/devices/linux-imx6-g++ -o arch.o arch.cpp
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -Wl,-rpath-link,/mnt/hd/usr/lib -mfloat-abi=softfp -o arch arch.o -L/mnt/hd/usr/lib --sysroot=/mnt/hd
Found architecture in binary
CFG_ARCH="arm"
CFG_CPUFEATURES=" neon"
Determining architecture... ()
g++ -c -pipe -g -Wall -W -fPIC -I. -I../../mkspecs/linux-g++ -o arch.o arch.cpp
g++ -o arch arch.o
Found architecture in binary
CFG_HOST_ARCH="x86_64"
CFG_HOST_CPUFEATURES=" mmx sse sse2"
System architecture: 'arm'
Host architecture: 'x86_64'
default C++ standard edition auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o c++default.ii -E c++default.cpp
default C++ standard edition enabled.
64-bit std::atomic auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -std=gnu++0x -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o atomic64.o atomic64.cpp
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -Wl,-rpath-link,/mnt/hd/usr/lib -mfloat-abi=softfp -Wl,-O1 -o atomic64 atomic64.o -L/mnt/hd/usr/lib --sysroot=/mnt/hd
64-bit std::atomic enabled.
sse2 auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -msse2 -g -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o sse2.o sse2.cpp
arm-linux-gnueabi-g++: error: unrecognized command line option '-msse2'
Makefile:192: recipe for target 'sse2.o' failed
gmake: *** [sse2.o] Error 1
sse2 disabled.
ipc_sysv auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o ipc.o ipc.cpp
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -Wl,-rpath-link,/mnt/hd/usr/lib -mfloat-abi=softfp -Wl,-O1 -o ipc_sysv ipc.o -L/mnt/hd/usr/lib --sysroot=/mnt/hd
ipc_sysv enabled.
zlib auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o zlib.o zlib.cpp
zlib.cpp: In function 'int main(int, char**)':
zlib.cpp:38:15: warning: variable 'stream' set but not used [-Wunused-but-set-variable]
zlib.cpp:40:17: warning: variable 'ver' set but not used [-Wunused-but-set-variable]
zlib.cpp:43:9: warning: variable 'res' set but not used [-Wunused-but-set-variable]
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -Wl,-rpath-link,/mnt/hd/usr/lib -mfloat-abi=softfp -Wl,-O1 -o zlib zlib.o -L/mnt/hd/usr/lib --sysroot=/mnt/hd -lz
zlib enabled.
mtdev auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o mtdev.o mtdev.cpp
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -Wl,-rpath-link,/mnt/hd/usr/lib -mfloat-abi=softfp -Wl,-O1 -o mtdev mtdev.o -L/mnt/hd/usr/lib --sysroot=/mnt/hd -lmtdev
mtdev enabled.
libjpeg auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o libjpeg.o libjpeg.cpp
libjpeg.cpp:37:21: fatal error: jpeglib.h: No such file or directory
compilation terminated.
Makefile:231: recipe for target 'libjpeg.o' failed
gmake: *** [libjpeg.o] Error 1
libjpeg disabled.
libpng auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o libpng.o libpng.cpp
libpng.cpp: In function 'int main(int, char**)':
libpng.cpp:42:17: warning: variable 'png_ptr' set but not used [-Wunused-but-set-variable]
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -Wl,-rpath-link,/mnt/hd/usr/lib -mfloat-abi=softfp -Wl,-O1 -o libpng libpng.o -L/mnt/hd/usr/lib --sysroot=/mnt/hd -lpng
libpng enabled.
libdl auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o libdl.o libdl.cpp
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -Wl,-rpath-link,/mnt/hd/usr/lib -mfloat-abi=softfp -Wl,-O1 -o libdl libdl.o -L/mnt/hd/usr/lib --sysroot=/mnt/hd -ldl
libdl enabled.
DB2 auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o db2.o db2.cpp
db2.cpp:34:20: fatal error: sqlcli.h: No such file or directory
compilation terminated.
Makefile:192: recipe for target 'db2.o' failed
gmake: *** [db2.o] Error 1
DB2 disabled.
InterBase auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o ibase.o ibase.cpp
ibase.cpp:34:19: fatal error: ibase.h: No such file or directory
compilation terminated.
Makefile:192: recipe for target 'ibase.o' failed
gmake: *** [ibase.o] Error 1
InterBase disabled.
MySQL (thread-safe) auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/usr/include/mysql -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o mysql.o ../mysql/mysql.cpp
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -Wl,-rpath-link,/mnt/hd/usr/lib -mfloat-abi=softfp -Wl,-O1 -o mysql_r mysql.o -L/mnt/hd/usr/lib --sysroot=/mnt/hd -L/usr/lib64 -lpthread -lz -lm -lrt -lssl -lcrypto -ldl -lmysqlclient_r
MySQL (thread-safe) enabled.
OCI auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o oci.o oci.cpp
oci.cpp:34:17: fatal error: oci.h: No such file or directory
compilation terminated.
Makefile:192: recipe for target 'oci.o' failed
gmake: *** [oci.o] Error 1
OCI disabled.
ODBC auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o odbc.o odbc.cpp
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -Wl,-rpath-link,/mnt/hd/usr/lib -mfloat-abi=softfp -Wl,-O1 -o odbc odbc.o -L/mnt/hd/usr/lib --sysroot=/mnt/hd -lodbc
ODBC enabled.
PostgreSQL auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o psql.o psql.cpp
psql.cpp:34:22: fatal error: libpq-fe.h: No such file or directory
compilation terminated.
Makefile:192: recipe for target 'psql.o' failed
gmake: *** [psql.o] Error 1
PostgreSQL disabled.
SQLite2 auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o sqlite2.o sqlite2.cpp
sqlite2.cpp:34:20: fatal error: sqlite.h: No such file or directory
compilation terminated.
Makefile:192: recipe for target 'sqlite2.o' failed
gmake: *** [sqlite2.o] Error 1
SQLite2 disabled.
TDS auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o tds.o tds.cpp
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -Wl,-rpath-link,/mnt/hd/usr/lib -mfloat-abi=softfp -Wl,-O1 -o tds tds.o -L/mnt/hd/usr/lib --sysroot=/mnt/hd -lsybdb
TDS enabled.
NIS auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o nis.o nis.cpp
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -Wl,-rpath-link,/mnt/hd/usr/lib -mfloat-abi=softfp -Wl,-O1 -o nis nis.o -L/mnt/hd/usr/lib --sysroot=/mnt/hd -lnsl
NIS enabled.
Cups auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o cups.o cups.cpp
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -Wl,-rpath-link,/mnt/hd/usr/lib -mfloat-abi=softfp -Wl,-O1 -o cups cups.o -L/mnt/hd/usr/lib --sysroot=/mnt/hd -lcups
Cups enabled.
POSIX iconv auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o iconv.o iconv.cpp
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -Wl,-rpath-link,/mnt/hd/usr/lib -mfloat-abi=softfp -Wl,-O1 -o iconv iconv.o -L/mnt/hd/usr/lib --sysroot=/mnt/hd
POSIX iconv enabled.
D-Bus auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include/dbus-1.0 -I/mnt/hd/usr/lib64/dbus-1.0/include -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o dbus.o dbus.cpp
In file included from dbus.cpp:35:0:
/mnt/hd/usr/include/dbus-1.0/dbus/dbus.h:29:33: fatal error: dbus/dbus-arch-deps.h: No such file or directory
compilation terminated.
Makefile:208: recipe for target 'dbus.o' failed
gmake: *** [dbus.o] Error 1
D-Bus disabled.
libproxy auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o libproxy.o libproxy.cpp
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -Wl,-rpath-link,/mnt/hd/usr/lib -mfloat-abi=softfp -Wl,-O1 -o libproxy libproxy.o -L/mnt/hd/usr/lib --sysroot=/mnt/hd -lproxy
libproxy enabled.
Glib auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include/glib-2.0 -I/mnt/hd/usr/lib64/glib-2.0/include -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o glib.o glib.cpp
In file included from /mnt/hd/usr/include/glib-2.0/glib/galloca.h:32:0,
from /mnt/hd/usr/include/glib-2.0/glib.h:30,
from glib.cpp:36:
/mnt/hd/usr/include/glib-2.0/glib/gtypes.h:32:24: fatal error: glibconfig.h: No such file or directory
compilation terminated.
Makefile:327: recipe for target 'glib.o' failed
gmake: *** [glib.o] Error 1
Glib disabled.
PulseAudio auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -D_REENTRANT -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include/glib-2.0 -I/mnt/hd/usr/lib64/glib-2.0/include -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o pulseaudio.o pulseaudio.cpp
In file included from /mnt/hd/usr/include/glib-2.0/glib/galloca.h:32:0,
from /mnt/hd/usr/include/glib-2.0/glib.h:30,
from /mnt/hd/usr/include/pulse/glib-mainloop.h:24,
from pulseaudio.cpp:35:
/mnt/hd/usr/include/glib-2.0/glib/gtypes.h:32:24: fatal error: glibconfig.h: No such file or directory
compilation terminated.
Makefile:374: recipe for target 'pulseaudio.o' failed
gmake: *** [pulseaudio.o] Error 1
PulseAudio disabled.
OpenGL ES 2.0 auto-detection... ()
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp --sysroot=/mnt/hd -O2 -Wall -W -fPIC -I. -I/mnt/hd/usr/include -I../../../mkspecs/devices/linux-imx6-g++ -o opengles2.o opengles2.cpp
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-g++ -Wl,-rpath-link,/mnt/hd/usr/lib -mfloat-abi=softfp -Wl,-O1 -o opengles2 opengles2.o -L/mnt/hd/usr/lib --sysroot=/mnt/hd -lGLESv2 -lEGL -lGAL
/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/../lib/gcc/arm-linux-gnueabi/4.7.1/../../../../arm-linux-gnueabi/bin/ld: cannot find -lGAL
collect2: error: ld returned 1 exit status
Makefile:90: recipe for target 'opengles2' failed
gmake: *** [opengles2] Error 1
OpenGL ES 2.0 disabled.
The OpenGL ES 2.0 functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in
/tmp/qt-everywhere-opensource-src-5.6.1/qtbase/mkspecs/devices/linux-imx6-g++.
Thanks
hi! pierre, have you successed?
Hi Chen,
Definitely not :smileysad:
I'm dealing this with yocto, by replace meta-qt5 layer with new dir git clone from GitHub - meta-qt5/meta-qt5: QT5 layer for openembedded ,but when i run the image,qt demo prompt segmentation fault.
Hmmm...is there a doc anywhere about installing meta-qt5 ?
Also, is someone ever built Qt5 natively on imx6 ?
Nobody, need to compile QT5 ? Cross-compile ? or Native compilation ?
Bump...
bump
which BSP are you using?
Hi,
Well, I'm not using a specific BSP as I compiled my kernel and packages.
I'm using a 4.4.0 kernel (armv7l Freescale i.MX6 Quad/DualLite ).
Let me know if you need more details.