Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Guidance for setting up Qt for Cross Compilation
Qt 6.11 is out! See what's new in the release blog

Guidance for setting up Qt for Cross Compilation

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 1.7k 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.
  • G Offline
    G Offline
    gmahan
    wrote on last edited by
    #1

    Hi,

    I am trying to cross compile for my target application on my host machine, but I'm not sure how to go about it. I have read a few blogs, but I am not able to connect the pieces. Here is my configuration details:

    Qt : 5.4.0 (Qt Creator 3.3.0)
    Host Machine: x86 Fedora 19 (64 bit)
    Target Machine: Intel x86 Debian Linux

    I have Qt5 installed on my target device and can build on the target or build on my host using the root file system of my target device by using chroot.

    I want to be able to cross compile from QtCreator and launch the application on my target device. I have no problem in setting up the SSH and the sending the application over to the target, but I am not sure how to configure the compiler and the tool chain.

    I have the entire root file system of my target on my host machine, so I should have access to all of the Qt5 libraries and compiler for my target, but I'm not sure how to set this up. Here are my questions:

    1. Where should I get the compiler for my target? Should I use /usr/bin/g++ (target rfs)
    2. Where do I get qmake for the target? The following failed to load TargetRFS#/usr/local/Qt-5.4.0/bin/qmake
    3. Do I need to obtain a tool chain for this ?
    4. Anything else I might need to do?

    Thanks in advance for any help on this.

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

      Hi,

      Did I read correctly that you have one 32bit and one 64bit machine ?

      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
      • G Offline
        G Offline
        gmahan
        wrote on last edited by
        #3

        They are both 64 bit machines.

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

          Then why cross-compile ? The only big difference is then the distribution

          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
          • G Offline
            G Offline
            gmahan
            wrote on last edited by
            #5

            Okay, that's what I thought. But when I used the native compilers on my host machine and loaded the application on my target I got an error stdin is not a tty when the application ran.

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

              How are you calling your application in the target ? Do you have a window manager ?

              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

              • Login

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