Unsolved cross compile QT5.12.0
-
what dependent libraries should I prepare
-
-
@Mihan It depends on which Qt modules you want to build. So, there is no generic answer.
You should simply call configure and see what it finds and what not. And if some modules are disabled and you need them you can check what is missing adding -v parameter to configure and checking the output. -
@jsulm ./configure -prefix /usr/local/Qt-5.12.0-arm/ -release -opensource -make libs -xplatform linux-arm-gnueabi-g++ -optimized-qmake -pch -qt-libjpeg -qt-zlib -no-opengl -skip qt3d -skip qtcanvas3d -skip qtpurchasing -no-sse2 -no-openssl -no-cups -no-glib -no-iconv -nomake examples -nomake tools -skip qtvirtualkeyboard
Here is the configure of me,I want to use sqlite,should i add some about sqlite?
And here is a problem when making after configure.
![alt text]( image url)<IMG src="file:///C:\Users\SEELE\AppData\Roaming\feiq\RichOle\2167031044.bmp"> -
@Mihan SQlite is built in I think, nothing special needed.
What compiler do you use (version)?
You should do out of source builds to keep your source tree clean. -
@jsulm Did you mean the cross conpiler version? It's arm-none-linux-gnueabi 4.8.3
And how to interpret that doing out of source builds.Dose it mean I should make sure the prefix ,not the default? -
@Mihan I think this compiler is too old for your Qt version. You need a newer version supporting C++11.
Out of source build simply means that you build outside of the source code directory:mkdir build cd build PATH_TO_QT_SOURCE_CODE/configure... make make install
-
@jsulm The problem of the picture was fixed ,I modified the definition of qbswap ,no the Q_DECL_CONSTEXPR,in <qendian.h> ,now I making it.
-
@jsulm uh,now it has a problem,is building qml without python,but ubuntu18.04 comes with python3,which version should I install
-
@Mihan I don't know which Python version is needed, but you can install Python 2 and 3 in parallel.