Build QT 5.2.0 for embedded Linux platform
-
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:
-
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!
-
Should I forget about the downloaded qt-everywhere-opensource-src-5.2.0.tar.gz and use the git instead?
-
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 tostd::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 functionmain': 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 tostd::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'
@- 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 ?
-
-
Hi, last day I got the same problem with webkit.
To avoid building problem I simply renamed qtwebkit directory in Qt source tree from "qtwebkit" to "qtwebkit__" and the re-configured.
-
[quote author="Luca" date="1387441651"]Hi, last day I got the same problem with webkit.
To avoid building problem I simply renamed qtwebkit directory in Qt source tree from "qtwebkit" to "qtwebkit__" and the re-configured.[/quote]
Your issue must have been originated from qtwebkit.
But I my problem is in qtdeclarative, and I need qtdeclarative.Isn't it qtdeclarative that has qml and quick2?
-
[quote author="thealse" date="1387451432"]
Isn't it qtdeclarative that has qml and quick2?[/quote]Sorry but I don't know that.
I suggest you to build Qt step by step, not all in one.
I usually configure Qt then:
@
cd qtbase
make
make install
cd ../qtscript
../qtbase/bin/qmake
make
make install
ecc....
@this way you can build only what you really need...