Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Deploying QT on Raspberry from Win 7 or Win 10 PC
Forum Updated to NodeBB v4.3 + New Features

Deploying QT on Raspberry from Win 7 or Win 10 PC

Scheduled Pinned Locked Moved Unsolved QtonPi
2 Posts 2 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tony Stark
    wrote on last edited by
    #1

    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 directory F:/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 directory F:/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 directory F:/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 directory F:/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 2

    Oops :(

    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 !!

    Pablo J. RoginaP 1 Reply Last reply
    0
    • T Tony Stark

      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 directory F:/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 directory F:/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 directory F:/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 directory F:/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 2

      Oops :(

      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 !!

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @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...

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved