QT 5.15.2 cross compiling for raspi2
-
Hell I'll try to compile QT lib for rasppery pi 2b on windows 10 machine.
I using all copy requred library from my pi device as.
Generaly try to follow this tutorial https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/.
When I follow step 6 I usemic@DESKTOP-CFA49SR:/mnt/d/qt5pi$ ../qt-everywhere-src-5.15.2/configure -release -opengl es2 -device linux-rpi2-g++ -device-option CROSS_COMPILE=/mnt/e/VisualStudio/Common7/IDE/VC/Linux/bin/gdb/8.1/arm-linux-gnueabihf-gdb.exe -sysroot /mnt/d/sysroot -opensource -confirm-license -skip qtwayland -skip qtlocation -skip qtscript -make libs -prefix /mnt/d/qt5pi -extprefix /mnt/d/qt5pi/extPrefix -hostprefix /mnt/d/qt5pi/hostPrefix -no-use-gold-linker -v -no-gbmcommand from installation folder, but it wont generet make file. In other words i cant use make file inside my qt sourc folder. Errror: make: *** No targets specified and no makefile found. Stop.
What I made wrong. -
Hell I'll try to compile QT lib for rasppery pi 2b on windows 10 machine.
I using all copy requred library from my pi device as.
Generaly try to follow this tutorial https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/.
When I follow step 6 I usemic@DESKTOP-CFA49SR:/mnt/d/qt5pi$ ../qt-everywhere-src-5.15.2/configure -release -opengl es2 -device linux-rpi2-g++ -device-option CROSS_COMPILE=/mnt/e/VisualStudio/Common7/IDE/VC/Linux/bin/gdb/8.1/arm-linux-gnueabihf-gdb.exe -sysroot /mnt/d/sysroot -opensource -confirm-license -skip qtwayland -skip qtlocation -skip qtscript -make libs -prefix /mnt/d/qt5pi -extprefix /mnt/d/qt5pi/extPrefix -hostprefix /mnt/d/qt5pi/hostPrefix -no-use-gold-linker -v -no-gbmcommand from installation folder, but it wont generet make file. In other words i cant use make file inside my qt sourc folder. Errror: make: *** No targets specified and no makefile found. Stop.
What I made wrong.Hi and welcome to devnet,
@Michal91 said in QT 5.15.2 cross compiling for raspi2:
CROSS_COMPILE=/mnt/e/VisualStudio/Common7/IDE/VC/Linux/bin/gdb/8.1/arm-linux-gnueabihf-gdb.exe
This, at least, does not make sense, you should remove the
gdb.exepart.I currently cannot comment for the rest as I never cross-compiled from Windows.
-
Hi and welcome to devnet,
@Michal91 said in QT 5.15.2 cross compiling for raspi2:
CROSS_COMPILE=/mnt/e/VisualStudio/Common7/IDE/VC/Linux/bin/gdb/8.1/arm-linux-gnueabihf-gdb.exe
This, at least, does not make sense, you should remove the
gdb.exepart.I currently cannot comment for the rest as I never cross-compiled from Windows.
-
It would likely be simpler to create a dedicated virtual machine (or maybe use the Linux subsystem for Windows) for your cross-compilation environnement.
-
It would likely be simpler to create a dedicated virtual machine (or maybe use the Linux subsystem for Windows) for your cross-compilation environnement.
@SGaist said in QT 5.15.2 cross compiling for raspi2:
or maybe use the Linux subsystem for Windows
it looks like OP is already using WSL
mic@DESKTOP-CFA49SR:/mnt/d/qt5pi$