building qt for raspberry pi
-
Hi
I am trying to build qt for raspberry pi after this post:
https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_PiNow. When I do:
cmake ../qt5/ -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=$HOME/qt-hostthe cmake hangs at:
Configuring submodule 'qttranslations'
CMake Warning at qttranslations/translations/CMakeLists.txt:37 (message):
Directory
'/home/tomaz/qt5/qttranslations/translations/../../qtlocation/src' for
qtlocation does not exist. Skipping...
Call Stack (most recent call first):
qttranslations/translations/CMakeLists.txt:105 (add_ts_targets)CMake Warning at qttranslations/translations/CMakeLists.txt:44 (message):
No source files located for qtlocation, skipping target creation
Call Stack (most recent call first):
qttranslations/translations/CMakeLists.txt:105 (add_ts_targets)Now I surrpased this after I deleted CMakeLists.txt. If I understand correctly the qttranslations module is not build.
But I do not know if this issue comes from cmake or cmake instruction or as I read iis some folder missing.
Thomas
-
@jsulm Hi
I surpassed errors because I am bulding for Raspberry Pi3b. I followed now another post.
Now I got it building. I ran:./configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -skip qtwayland -skip qtlocation -skip qtscript -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v -no-gcc-sysroot
And then make. I stopped at:
/home/tomaz/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: warning: section `.rodata' type changed to PROGBITS
make[3]: Leaving directory '/home/tomaz/raspi/qt-everywhere-src-5.12.5/qtdeclarative/tools/qml'
make[2]: Leaving directory '/home/tomaz/raspi/qt-everywhere-src-5.12.5/qtdeclarative/tools'
make[1]: Leaving directory '/home/tomaz/raspi/qt-everywhere-src-5.12.5/qtdeclarative'Thomas