Hi,
I am trying to build Qt5 for imx53.
Reading this forum post building-qt-for-imx5x and this qtdev post building-qt5-from-git I didn't succeed in building Qt5 for imx53.
I managed it to install LTIB so far. This forum post is about building Qt 4.7.4 on imx5x. In my opinion it should work with Qt5 as well.
The next step for me is to build Qt5 based on the toolchain and libraries provided by LTIB.
The problem is, that the linker can't find some libraries. I was able to find some of the headers manually. These are the headers that the linker couldn't find:
https://community.nxp.com/discussions/472-missinglibs.JPG" target="_selfhttps://community.nxp.com/discussions/473-missinglibs.JPG" target="_selfhttps://community.nxp.com/discussions/476-missinglibs.JPG" target="_self
Additionaly the arm-none-linux-gnueabi-g++ compiler does not recognize the following arguments:
-mmx
-m3dnow
-msse
-msse2
-msse3
-mssse3
-msse4.1
-msse4.2
-mavx
-lxcb
That's a part of the output of the building process (look the attached output of the configure command, to view all of the error messages):
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -mmmx -g -Wall -W -I../../../mkspecs/linux-g++-mx5x -I. -I/home/lucid/imx/11.09/ltib/rootfs/usr/include -I/home/lucid/imx/11.09/ltib/rootfs/usr/include/glib-2.0 -I/tftpboot/ltib/usr/lib/glib-2.0/include -I/tftpboot/ltib/usr/include/gstreamer-0.10 -I/tftpboot/ltib/usr/include/libxml2 -I/home/lucid/imx/11.09/ltib/rootfs/usr/include/freetype2 -I/home/lucid/imx/11.09/ltib/rootfs/usr/include/mysql -I/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/lib/gcc/arm-fsl-linux-gnueabi/4.4.4/include -o mmx.o mmx.cpp
cc1plus: error: unrecognized command line option "-mmmx"
make: *** [mmx.o] Error 1
mmx disabled.
Any ideas how to include these missing libraries?
Did somebody succeed in building Qt5 for any imx?
I tried to do it like this:
QMAKE_LFLAGS_RPATH = -Wl,-rpath,
QMAKE_RPATHDIR += "/tftpboot/ltib/usr/lib"
QMAKE_RPATHDIR += "/tftpboot/ltib/usr/local/lib"
QMAKE_RPATHDIR += "/tftpboot/ltib/lib"
but this approach didn't work.
Thanks
Dietrich
Instructions to build Qt5 from GIT are for native build, and cross-compiling should be done slightly differently. Hopefully you modified ./configure command accordingly and properly set up the mkspec.
MMX, SSE, etc. are x86-specific extensions that naturally won't work with ARM toolchain, so no problem with that. Not sure where XCB can be obtained from, if not in LTIB. Maybe can be cross-compiled separately as well if X is needed....