Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Guidance for setting up Qt for Cross Compilation

    Installation and Deployment
    2
    6
    982
    Loading More Posts
    • 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
      gmahan last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • G
          gmahan last edited by

          They are both 64 bit machines.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • G
              gmahan last edited by

              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 Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                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 Reply Quote 0
                • First post
                  Last post