Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Building Linux App from QT Creator (Mac OS)

Building Linux App from QT Creator (Mac OS)

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 2.6k 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.
  • S Offline
    S Offline
    scotryder
    wrote on 30 Mar 2018, 10:13 last edited by
    #1

    Hi there,

    I'm new to QT and using it on OS X. I have a very simple QML based app which works on both iOS and OS X, however i want to build it for Linux using QT Creator.

    I went to Projects Settings > Manage Kits, but couldnt find a Linux kit.

    Please advise how can i do that?

    Thanks

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 30 Mar 2018, 10:34 last edited by mrjj
      #2

      Hi
      That is called cross compiling and should be possible albeit often lots of work and frustration.
      This is older guide
      https://forum.qt.io/topic/40116/cross-compile-on-os-x-for-windows-and-linux
      The concept is still the same, but files are ofc much newer version.

      Since you also need a linux to test the deployment files then why not just
      use something like parallels and just run a virtual linux ?
      Normally takes around 1 hour to have it fully running.
      For completely free solution, you can also just use VirtualBox.

      1 Reply Last reply
      1
      • S Offline
        S Offline
        scotryder
        wrote on 30 Mar 2018, 11:26 last edited by
        #3

        @mrjj said in Building Linux App from QT Creator (Mac OS):
        Thank you for your quick reply

        As im a new QT user and i found building for Android and iOS easy, you can do it from inside the QT Creator, why not something similar for building a linux build to keep life simple?

        Is there any specific reason?

        M W 2 Replies Last reply 30 Mar 2018, 11:31
        0
        • S scotryder
          30 Mar 2018, 11:26

          @mrjj said in Building Linux App from QT Creator (Mac OS):
          Thank you for your quick reply

          As im a new QT user and i found building for Android and iOS easy, you can do it from inside the QT Creator, why not something similar for building a linux build to keep life simple?

          Is there any specific reason?

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 30 Mar 2018, 11:31 last edited by
          #4

          @scotryder
          Hi
          Most likely as the total combination of what you could want to cross compile for would explode.
          Like Compile for macOS on windows. Compile for MacOS on linux etc.
          So crosscompiling is better left to the end user.
          If ONLY for macOs , it would make sense but this is also for linux and windows.
          Creating all those different kits with the right tools for each platform would be huge work and
          hence, its not included.

          1 Reply Last reply
          2
          • S scotryder
            30 Mar 2018, 11:26

            @mrjj said in Building Linux App from QT Creator (Mac OS):
            Thank you for your quick reply

            As im a new QT user and i found building for Android and iOS easy, you can do it from inside the QT Creator, why not something similar for building a linux build to keep life simple?

            Is there any specific reason?

            W Offline
            W Offline
            wrosecrans
            wrote on 30 Mar 2018, 23:15 last edited by
            #5

            @scotryder You still need something like a Linux VM to actually run the resulting output and see if it does what you want. So the complexity of setting up a cross compiler doesn't save you from needing some sort of Linux environment as part of your process.

            The android and iOS cross compilers are just expected because it's practically impossible to do the dev work inside of Android and iOS. You can really only test the builds in the simulators, but not run the toolchain on a telephone.

            1 Reply Last reply
            1

            1/5

            30 Mar 2018, 10:13

            • Login

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