Cross-Compile Stage Qt Creator for Orange Pi One
-
Hi,
For a long time, I've been trying to cross-compile qt5 for Orange Pi One V1.1,
I'm currently running a line that I don't know what it does and I'm getting an errorCommand Executed
../qt-everywhere-src-5.15.2/configure -opengl es2 -device linux-arm-generic-g++ -device-option CROSS_COMPILE=/opt/qt5opi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /opt/qt5opi/sysroot -prefix /usr/local/qt5opi -opensource -confirm-license -skip qtscript -skip qtwayland -skip qtdatavis3d -nomake examples -make libs -pkg-config -no-use-gold-linker -vError Received
ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.Which solutions can you suggest me about this issue?
Thank you
-
See the verbose output and qmake logs to see what exactly is failing to compile.
-
I solved the problem I mentioned above by typing the following command line.
../qt-everywhere-src-5.15.2/configure -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=/opt/qt5opi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /opt/qt5opi/sysroot -prefix /usr/local/qt5opi -opensource -confirm-license -skip qtscript -skip qtwayland -skip qtdatavis3d -nomake examples -make libs -pkg-config -no-use-gold-linker -v
,and then I successfully completed the cross-compile process.
With the hope that all humanity who encounters or will encounter this problem will find a solution here.