Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cross compilation for RPI3 under Windows
Qt 6.11 is out! See what's new in the release blog

Cross compilation for RPI3 under Windows

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 277 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.
  • M Offline
    M Offline
    Marthi
    wrote on last edited by
    #1

    Hello,

    I am trying to have a cross compilation environement for RaspberryPi 3 under Windows 10. I read and tried many tutorials and weird things but I cannot figure out. I have the impression that the configure line change every Qt version.
    I tried to use native commande line and MSYS2, several Qt version, many differents arguments and modify some qmake.conf files.

    For now, I am working with :

    • Qt 5.14.2 sources from MaintenanceTool.exe
    • SysGCC RPI toolchain from here (GCC 8.3.0)
    • SysGCC MINGW64 toolchain from here (GCC 9.1.0)
    • My sysroot folder on Windows host is synchronized with my RPI.

    My command line is :

    ..\Src\configure.bat -platform win32-g++ -device linux-rasp-pi3-g++ -release -opengl es2 -sysroot C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot -prefix /usr/local/qt5 -device-option CROSS_COMPILE=arm-linux-gnueabihf- -opensource -confirm-license
    

    From Qt documentation here and here, my command seems to be correct but I get the error :

    Running configuration tests...
    Checking for machine tuple... yes
    Checking for valid makespec... yes
    Checking for target architecture... Project ERROR: Could not determine target architecture. See config.log for details.
    

    I don't know how to upload the config.log file to the post but there are some compilation errors of arch.cpp related to system include files in RPI toolchain so I guess that I don't configure it well related to my toolchain.

    Thank you for your help,

    Marthi

    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