Unsolved Deploying QT on Raspberry from Win 7 or Win 10 PC
-
Re: [new to Qt: how to setup to make Qt applications for Rpi](on Windows 10)
Hello, dear QT enthusiasts.
I try to do something similar that the referenced topic. I used the sources to build on one hand the necessary tools for windows (qmake, etc ...) and the libraries for the Raspberrry PI (The latest model 3B+).
Basically, this is exactly the same aproach as described here: https://wiki.qt.io/RaspberryPi2EGLFS
Following the tutorial from a debian Jessie 32-bit VM works perfectly. I tried then to do something similar but on windows as a host, not a linux machine.
For that, I used MSYS2 + minGW64 and followed the main ideas.
First difficulty was to sync the RPI necessary directories. On MSYS2, rsync can be used but there are many errors due probably to the fact that the symlinks are not really working on NTFS filesystems. I've read that other unix shells (e.g. Cygwin) fake this by means of shortcuts.
I circumvented this by transferring the necessary info through filezilla. Once this is ok, configure works. I used the following command line:
./configure -release -opengl es2 -no-use-gold-linker -platform win32-g++ -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=/f/SysGCC/raspberry/bin/arm-linux-gnueabihf- -sysroot /f/SysGCC/raspberry/arm-linux-gnueabihf/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix /f/SysGCC/raspi/qt5pi -hostprefix /f/SysGCC/raspi/qt5 -v
The result is OK,
Then 'make' goes to the end as well ...
But, 'make install' fails :(
For some unclear reason, the shell reports syntax errors like this:
$ make install
cd src/ && ( test -e Makefile || F:/SysGCC/raspi/qt511b/qtbase/bin/qmake.exe -o Makefile F:/SysGCC/raspi/qt511b/qtbase/src/src.pro ) && F:/SysGCC/raspberry/bin/make -f Makefile install
make[1]: Entering directoryF:/SysGCC/raspi/qt511b/qtbase/src' F:/SysGCC/raspi/qt511b/qtbase/bin/qmake.exe -o Makefile src.pro make[1]: Leaving directory
F:/SysGCC/raspi/qt511b/qtbase/src'
make[1]: Entering directoryF:/SysGCC/raspi/qt511b/qtbase/src' cd corelib/ && ( test -e Makefile.qtzlib || F:/SysGCC/raspi/qt511b/qtbase/bin/qmake.exe -o Makefile.qtzlib F:/SysGCC/raspi/qt511b/qtbase/src/corelib/qtzlib.pro ) && F:/SysGCC/raspberry/bin/make -f Makefile.qtzlib install make[2]: Entering directory
F:/SysGCC/raspi/qt511b/qtbase/src/corelib'
F:/SysGCC/raspi/qt511b/qtbase/bin/qmake.exe -o Makefile.qtzlib qtzlib.pro
make[2]: Leaving directoryF:/SysGCC/raspi/qt511b/qtbase/src/corelib' make[2]: Entering directory
F:/SysGCC/raspi/qt511b/qtbase/src/corelib'
The syntax of the command is incorrect.
make[2]: *** [install_targ_headers] Error 1
make[2]: Leaving directoryF:/SysGCC/raspi/qt511b/qtbase/src/corelib' make[1]: *** [sub-zlib-install_subtargets] Error 2 make[1]: Leaving directory
F:/SysGCC/raspi/qt511b/qtbase/src'
make: *** [sub-src-install_subtargets] Error 2Oops :(
Really frustrating isn't it ?
The finish line is just in front of you but the engine stops one inch before ... :( The tank seems to be empty :(
So, Interested in any clue.
I can always use the linux VM of course, but my interest here is to make the science go ahead :).
Thank you !!
-
@Tony-Stark said in Deploying QT on Raspberry from Win 7 or Win 10 PC:
my interest here is to make the science go ahead :).
My 2 cents, stick to the Linux VM and employ your energy in something more productive :-) than fighting with Windows...