Details
-
Bug
-
Resolution: Incomplete
-
P3: Somewhat important
-
None
-
5.12.0, 5.12.1
-
None
-
Cross-Compilation for Raspberry Pi 3B+
Description
When trying to Cross-Compile Qt 5.12.0/1 from git, the following happens:
EDIT: Base directory (something like /home/carlos/rpi/) has been replaced with BASE_DIR in order to clarify the output of the make command.
cd qtbase/ && ( test -e Makefile || BASE_DIR/qt5/qtbase/bin/qmake -o Makefile BASE_DIR/qt5/qtbase/qtbase.pro ) && make -f Makefile make[1]: Entering directory 'BASE_DIR/qt5/qtbase' cd src/ && ( test -e Makefile || BASE_DIR/qt5/qtbase/bin/qmake -o Makefile BASE_DIR/qt5/qtbase/src/src.pro ) && make -f Makefile make[2]: Entering directory 'BASE_DIR/qt5/qtbase/src' cd corelib/ && ( test -e Makefile.qtzlib || BASE_DIR/qt5/qtbase/bin/qmake -o Makefile.qtzlib BASE_DIR/qt5/qtbase/src/corelib/qtzlib.pro ) && make -f Makefile.qtzlib Project MESSAGE: BASE_DIR/qt5/bin/syncqt -module QtZlib -version 5.12.1 -outdir BASE_DIR/qt5 -builddir BASE_DIR/qt5/qtbase BASE_DIR/qt5/qtbase sh: 1: BASE_DIR/qt5/bin/syncqt: not found Project ERROR: Failed to run: BASE_DIR/qt5/bin/syncqt -module QtZlib -version 5.12.1 -outdir BASE_DIR/qt5 -builddir BASE_DIR/qt5/qtbase BASE_DIR/qt5/qtbase Makefile:74: recipe for target 'sub-zlib-make_first' failed make[2]: *** [sub-zlib-make_first] Error 3 make[2]: Leaving directory 'BASE_DIR/qt5/qtbase/src' Makefile:50: recipe for target 'sub-src-make_first' failed make[1]: *** [sub-src-make_first] Error 2 make[1]: Leaving directory 'BASE_DIR/qt5/qtbase' Makefile:84: recipe for target 'module-qtbase-make_first' failed make: *** [module-qtbase-make_first] Error 2
This happens right after i run the "make" command.
All goes ok with the configure step. My configure string is the following:
EDIT: Base directory (something like /home/carlos/rpi/) has been replaced with BASE_DIR in order to clarify the configure string.
./configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=BASE_DIR/tools/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot BASE_DIR/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix BASE_DIR/qt5pi -hostprefix BASE_DIR/qt5 -no-gbm -no-webengine-v8-snapshot -no-use-gold-linker -skip qtscript -skip qtwayland -v
Basically, it seems that make is looking for "qt5/bin/syncqt", but even the "bin" directory inside "qt5" does NOT exist.
But the following does exist: "qt5/qtbase/bin", and "qt5/qtbase/bin/syncqt.pl" also exists.
Thanks in advance.