Hi all,
http://www.qtcentre.org/threads/45065-configure-embedded-QT4.7.4
http://stackoverflow.com/questions/7662404/installing-qt4-7-4-for-embedded-linux-multiple-errors
I was wondering if someone could help with my config of QT4.7.4 for iMx233?
I'm an absolute beginner with Linux and developing for embedded Linux. I'm trying to install QT for embedded Linux onto my Fedora 15 laptop to target an i.Mx233.PKG_CONFIG_PATH=/opt/freescale/pkgs ./configure --prefix=/opt/freescale/pkgs -v -embedded arm -xplatform qws/linux-arm-imx -phonon -force-pkg-config
# # qmake configuration for building with arm-none-linux-gnueabi-g++ # include(../../common/g++.conf) include(../../common/linux.conf) include(../../common/qws.conf) # modifications to g++.conf QMAKE_CC = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc-4.1.2 QMAKE_CXX = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ QMAKE_LINK = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ QMAKE_LINK_SHLIB = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ # modifications to linux.conf QMAKE_AR = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ar QMAKE_OBJCOPY = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-objcopy QMAKE_STRIP = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-strip load(qt_config)
[david@localhost qt-everywhere-opensource-src-4.7.4]$ PKG_CONFIG_PATH=/opt/freescale/pkgs ./configure --prefix=/opt/freescale/pkgs -v -embedded arm -xplatform qws/linux-arm-imx -phonon -force-pkg-config Which edition of Qt do you want to use ? Type 'c' if you want to use the Commercial Edition. Type 'o' if you want to use the Open Source Edition. o Determining system architecture... (Linux:2.6.40.4-5.fc15.i686:i686) 32-bit Intel 80x86 (i386) 'arm' is supported 'i386' is supported System architecture: 'arm' Host architecture: 'i386' You have asked to use pkg-config and are cross-compiling. Please make sure you have a correctly set-up pkg-config environment! Warning: PKG_CONFIG_SYSROOT/PKG_CONFIG_SYSROOT_DIR has not been set. This means your toolchain's .pc files must contain the paths to the toolchain's libraries & headers. If configure tests are failing, please check these files. Precompiled-headers support enabled. Symbol visibility control enabled. This is the Qt for Embedded Linux 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 General Public License (GPL) versions 3. Type '3' to view the GNU General Public License version 3. Type 'L' to view the Lesser GNU General Public License version 2.1. Type 'yes' to accept this license offer. Type 'no' to decline this license offer. Do you accept the terms of either license? yes Creating qmake. Please wait... gmake: Nothing to be done for `first'. floatmath auto-detection... () /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o floatmath.o floatmath.cpp floatmath.cpp:44: warning: unused parameter 'argc' floatmath.cpp:44: warning: unused parameter 'argv' /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -Wl,-O1 -o floatmath floatmath.o floatmath enabled. mmx auto-detection... () /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -mmmx -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o mmx.o mmx.cpp cc1plus: error: unrecognized command line option "-mmmx" gmake: *** [mmx.o] Error 1 mmx disabled. 3dnow auto-detection... () /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -m3dnow -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o 3dnow.o 3dnow.cpp cc1plus: error: unrecognized command line option "-m3dnow" gmake: *** [3dnow.o] Error 1 3dnow disabled. sse auto-detection... () /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -msse -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o sse.o sse.cpp cc1plus: error: unrecognized command line option "-msse" gmake: *** [sse.o] Error 1 sse disabled. sse2 auto-detection... () /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -msse2 -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o sse2.o sse2.cpp cc1plus: error: unrecognized command line option "-msse2" gmake: *** [sse2.o] Error 1 sse2 disabled. sse3 auto-detection... () /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -msse3 -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o sse3.o sse3.cpp cc1plus: error: unrecognized command line option "-msse3" gmake: *** [sse3.o] Error 1 sse3 disabled. ssse3 auto-detection... () /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -mssse3 -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o ssse3.o ssse3.cpp cc1plus: error: unrecognized command line option "-mssse3" gmake: *** [ssse3.o] Error 1 ssse3 disabled. sse4_1 auto-detection... () /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -msse4.1 -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o sse4_1.o sse4_1.cpp cc1plus: error: unrecognized command line option "-msse4.1" gmake: *** [sse4_1.o] Error 1 sse4_1 disabled. sse4_2 auto-detection... () /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -msse4.2 -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o sse4_2.o sse4_2.cpp cc1plus: error: unrecognized command line option "-msse4.2" gmake: *** [sse4_2.o] Error 1 sse4_2 disabled. avx auto-detection... () /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -mavx -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o avx.o avx.cpp cc1plus: error: unrecognized command line option "-mavx" gmake: *** [avx.o] Error 1 avx disabled. neon auto-detection... () /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -mfpu=neon -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o neon.o neon.cpp Assembler messages: Error: unknown floating point format `neon'
That's a very unusual message, and I haven't tried this on 64-bit host.
When doing some work on 64-bit host, I had to install following 32-bit support packages. Might be needed for this case as well:
ia32-libs libc6-dev-i386 libc6-i386 lib32gcc1 lib32stdc++6 g++-multilib lib32z1-dev lib32ncurses5-dev
I am also trying to build Qt-Embedded inside ltib. I have applied Vladan's patches for QT4.7.4 (Thank you) but I get the following error.
error: failed dependencies:
libc.so.6()(64bit) is needed by qt-everywhere-opensource-src-4.7.4-0
libgcc_s.so.1()(64bit) is needed by qt-everywhere-opensource-src-4.7.4-0
libm.so.6()(64bit) is needed by qt-everywhere-opensource-src-4.7.4-0
libstdc++.so.6()(64bit) is needed by qt-everywhere-opensource-src-4.7.4-0
linux-vdso.so.1()(64bit) is needed by qt-everywhere-opensource-src-4.7.4-0
any pointers? I think the build set is picking up my host libraries...
I am running 10.4.03-LTS 64 bit. I have run the Linux host script. and have the mk_mx_sd_mmc tool for the sdcard also.
I can only get the ltib to compile the (min) configuration under selectype. Can any one verify that the ltib builds any of the other configs (gnome,develop tools....)
Thanks.
Thank you very much Vladan. You are the only person to reply to my issue across 5 different forums, unfortunately I've read through the links and it didnt help my problem.
Thank you again though.
Vladan Jovanovic said:
Check following two links:
http://imxcommunity.org/group/imxqt
http://www.imxdev.org/wiki/index.php?title=All_Boards_Qt
Lot's of info on how to build Qt and some common issues encountered along the way...
Check following two links:
http://imxcommunity.org/group/imxqt
http://www.imxdev.org/wiki/index.php?title=All_Boards_Qt
Lot's of info on how to build Qt and some common issues encountered along the way...