Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Build QT 5.2.0 for embedded Linux platform

$
0
0
Hi, I must start by saying that I am new to this area so please bear with me if the question or information is unclear. Let me know and I will update the question. I downloaded qt-everywhere-opensource-src-5.2.0.tar.gz unpacked and used the following configure script: (as the documentation is unclear I am using both -skip and -no) ./configure -v -opensource -confirm-license -opengl es2 -make libs -device imx5 \ -nomake examples -nomake tests \ -skip qtsvg -skip qtdeclarative -skip qtwebkit -skip qtconnectivity -skip qtmultimedia -skip qtlocation -skip qtactiveqt -qt-freetype -no-openssl -no-nis -no-pch -no-dbus \ -skip qtmacextras -skip qtsensors -skip qtserialport \ -device-option CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi- \ -sysroot /mnt/freescale/ltib_10.04_gtt/ltib/rootfs -no-gcc-sysroot \ -prefix /opt/qt5 As you can see I am trying to skip as much as possible, basically all I need is quick2, core, GUI. So here are my questions: 1) Many of the skip / no seems to have no effect? Is that really so? For example I have mentioned -skip qtdeclarative, but during make I can see that it is still building qtdeclarative! 2) Should I forget about the downloaded qt-everywhere-opensource-src-5.2.0.tar.gz and use the git instead? 3) Here is the error i get in qtdeclarative: make[3]: Entering directory `/home/user/Downloads/qt-everywhere-opensource-src-5.2.0/qtdeclarative/tools/qmlbundle' /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-g++ -Wl,-rpath-link,/mnt/freescale/ltib_10.04_gtt/ltib/rootfs/usr/lib -Wl,-O1 -Wl,-rpath,/opt/qt5/lib -o ../../bin/qmlbundle .obj/main.o   -L/mnt/freescale/ltib_10.04_gtt/ltib/rootfs/usr/lib -L/home/user/Downloads/qt-everywhere-opensource-src-5.2.0/qtdeclarative/lib -lQt5Qml -L/home/user/Downloads/qt-everywhere-opensource-src-5.2.0/qtbase/lib -lQt5Network -lQt5Core -lpthread .obj/main.o: In function `showHelp()': main.cpp:(.text+0x2e0): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)' main.cpp:(.text+0x310): undefined reference to `std::ctype<char>::_M_widen_init() const'   <... I CUT MANY LINE HERE ... because of the forum maximum number of characters >   main.cpp:(.text+0xa78): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)' main.cpp:(.text+0xaa8): undefined reference to `std::ctype<char>::_M_widen_init() const' .obj/main.o: In function `main': main.cpp:(.text+0x1ebc): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)' main.cpp:(.text+0x1ef4): undefined reference to `std::ctype<char>::_M_widen_init() const' collect2: ld returned 1 exit status make[3]: *** [../../bin/qmlbundle] Error 1 make[3]: Leaving directory `/home/user/Downloads/qt-everywhere-opensource-src-5.2.0/qtdeclarative/tools/qmlbundle' 4) My latest question is that, what is the different if I stand in .../qt-everywhere-opensource-src-5.2.0 and configure/make versus standing in .../qt-everywhere-opensource-src-5.2.0/qtbase and configure/make ?

Viewing all articles
Browse latest Browse all 2113

Trending Articles