[Interest] Qt 5 Cross compile issue

S. Muthaiah S.Muthaiah at KONE.com
Thu Dec 27 15:47:15 CET 2012


Hi,



I installed XCB in sysroot directory.

And also I included sysroot in configure command like this,



./configure -v -prefix /usr/local/Qt-5.0.0 -xplatform linux-g++-mx5x -opensource -nomake examples -nomake demos -nomake tests -no-opengl -qt-xcb -qpa xcb -no-directfb -release -shared -fast -no-largefile -no-accessibility -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 -no-c++11 -no-javascript-jit -qml-debug -no-sse2 -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-avx2 -no-neon -no-mips_dsp -no-mips_dspr2 -qt-zlib -qt-libpng -qt-libjpeg -no-openssl  -no-eglfs -qt-pcre -optimized-qmake -no-nis -no-cups -no-iconv -no-icu -no-strip -no-dbus -no-separate-debug-info -no-kms -no-glib  -I/usr/include/freetype2 -sysroot /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/arm-fsl-linux-gnueabi/sysroot/





When I execute above command ,I got some other erros like,



/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: crt1.o: No such file: No such file or directory



/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-linux-g++ -ffast-math -Wl,-O1 -o floatmath floatmath.o   -L/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/arm-fsl-linux-gnueabi/sysroot/lib --sysroot=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/arm-fsl-linux-gnueabi/sysroot/

/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: crt1.o: No such file: No such file or directory

collect2: ld returned 1 exit status



Please suggest me how to solve the above error.





Regards,

S.Muthaiah



-----Original Message-----
From: Thiago Macieira [mailto:thiago.macieira at intel.com]
Sent: Thursday, December 27, 2012 6:39 PM
To: S. Muthaiah
Subject: Re: Qt 5 Cross compile issue



On quinta-feira, 27 de dezembro de 2012, às 11.42.59, you wrote:

> /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-

> gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux

> -gnueabi/bin/ld: cannot find -lxcb collect2: ld returned 1 exit status

> make: *** [xcb] Error 1

> xcb disabled.

> The test for linking against libxcb failed!

>  You might need to install dependency packages for libxcb.

>  See src/plugins/platforms/xcb/README.



You need to install the XCB libraries in your sysroot.



Please use the interest at qt-project.org mailing list for such issues instead of

emailing me directly.

--

Thiago Macieira - thiago.macieira (AT) intel.com

  Software Architect - Intel Open Source Technology Center



-----Original Message-----
Hi thiago.macieira

I have a problem to build xcb library.
i got following error when i configure Qt 5 with -qt-xcb and -qpa xcb options.

I installed all the xcb libraries which are specified in Read me file and also i included xcb header file and library file location in configure path.

/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-linux-g++ -ffast-math -Wl,-O1 -o xcb xcb.o   -L/usr/local/lib -lxcb
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: skipping incompatible /usr/local/lib/libxcb.so when searching for -lxcb
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: skipping incompatible /usr/local/lib/libxcb.a when searching for -lxcb
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find -lxcb
collect2: ld returned 1 exit status
make: *** [xcb] Error 1
xcb disabled.
The test for linking against libxcb failed!
 You might need to install dependency packages for libxcb.
 See src/plugins/platforms/xcb/README.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20121227/a11d87e3/attachment.html>


More information about the Interest mailing list