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 from a Windows PC to a Raspberry PI
QtWS25 Last Chance

Cross compilation from a Windows PC to a Raspberry PI

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

    Hey there.
    First of all, i hope that you will understand me, i'm a young french student.
    I'm new on the forum, and i'm here to ask you something because i'm facing some problem.
    I'm working on a project, and i would like to use QT creator on a windows PC, in order to program a C++ program which will be launch on a Raspberry PI.

    I heard of course about "cross compilation", and that's why i'm here.
    I tried to creat a new kit, in order to change the compilation rules.
    I took some screen shot, it could be maybe better for you to understand. Because i can't figure it out what's wrong on this !

    http://image.noelshack.com/minis/2016/08/1456242099-1.png
    I choose "None" for the version of Qt, because if i choose mine, i have a red button (that mean a problem) instead of this yellow logo.

    A second one to show you about the compilator :
    http://image.noelshack.com/fichiers/2016/08/1456242159-2.png

    Do i made something wrong ? Or maybe i forgot something before ?
    I'm asking the question here because by searching i didn't manage to find a solution to this problem.

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

      Hi and welcome to devnet,

      First thing: do you already have a cross-compiled Qt for your RPi ?

      If not, I'd really recommend using a Linux virtual machine to do that. It will be way easier.

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

      1 Reply Last reply
      0
      • AlexpoupetteA Offline
        AlexpoupetteA Offline
        Alexpoupette
        wrote on last edited by
        #3

        Hi, thank's for your answer.
        In fact, i never did that before no, that's why i'm so last i think aha.
        So why ? It could be easier on linux you think ?

        My working at school, and the PC got a dual boot, do you advise me to use QT on ubuntu and write my program on ubuntu so ?

        Thank's a lot.

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

          It's not that it could, it is easier to do on a Linux machine.

          The RPi also run on a Linux distribution so you'll have the same set of tools to use. Also the cross-compiler is easier to find and install on Linux.

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

          1 Reply Last reply
          0
          • AlexpoupetteA Offline
            AlexpoupetteA Offline
            Alexpoupette
            wrote on last edited by
            #5

            Mmmh ok thank's for you answer, but as on windows i can't create the kit as i want to. With GCC, processor ARM etc..
            I need to don't choose the QT version, to do not have the red button.. as on the first screen..
            And when i don't choose a QT version i can't select the kit when i don't choose a version for it.
            Any idea where do this problem come from ?

            1 Reply Last reply
            0
            • jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by jsulm
              #6

              You need Qt compiled for Raspberry Pi if you want to build Qt applications for it.
              In the screen shot you provided in your first post you seem to set MinGW x86 compiler as your Raspberry Pi compiler - this for sure will not work. You need a compiler for ARMv7

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              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