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. QT 5.15.2 cross compiling for raspi2
Qt 6.11 is out! See what's new in the release blog

QT 5.15.2 cross compiling for raspi2

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 4 Posters 1.5k Views 3 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
    Michal91
    wrote on last edited by
    #1

    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 use

    mic@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-gbm
    

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

    SGaistS 1 Reply Last reply
    0
    • M Michal91

      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 use

      mic@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-gbm
      

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

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.exe part.

      I currently cannot comment for the rest as I never cross-compiled from Windows.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      1
      • SGaistS SGaist

        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.exe part.

        I currently cannot comment for the rest as I never cross-compiled from Windows.

        M Offline
        M Offline
        Michal91
        wrote on last edited by
        #3

        @SGaist It seems you get right. I must get test compilation with other compiler. I'll try to find current compiler from MVS and change path.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          It would likely be simpler to create a dedicated virtual machine (or maybe use the Linux subsystem for Windows) for your cross-compilation environnement.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          Pablo J. RoginaP 1 Reply Last reply
          0
          • SGaistS SGaist

            It would likely be simpler to create a dedicated virtual machine (or maybe use the Linux subsystem for Windows) for your cross-compilation environnement.

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

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

            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
            • mzimmersM Offline
              mzimmersM Offline
              mzimmers
              wrote on last edited by
              #6

              Just a note: WSL2 doesn't have support for using USB to serial adapters. I don't know whether one uses one of these for the pi, but it's something to be aware of.

              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