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. How to build on different platforms

How to build on different platforms

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 414 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.
  • serkan_trS Offline
    serkan_trS Offline
    serkan_tr
    wrote on last edited by
    #1

    Hello, I made a project. I am using Ubuntu 22.04 and I built it in this environment and it works on Linux operating system. Likewise, I want this project to be used on Windows, Android and IOS. How can I create build files suitable for these platforms in the QT Creator environment?

    jsulmJ 1 Reply Last reply
    0
    • serkan_trS serkan_tr

      Hello, I made a project. I am using Ubuntu 22.04 and I built it in this environment and it works on Linux operating system. Likewise, I want this project to be used on Windows, Android and IOS. How can I create build files suitable for these platforms in the QT Creator environment?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @serkan_tr
      For Windows: easiest way is to use a Windows machine (can be a virtual machine). Install compiler and Qt for this compiler there and what else you need. You can use MinGW as compiler, it can be installed using Qt Online Installer.

      For iOS: you have to do that on a Mac because it can be only done using MacOS. Install XCode and Qt for iOS and build. See https://doc.qt.io/qt-6/ios.html

      Android: install Qt for Android, NDK and Android SDK and build. See https://doc.qt.io/qt-6/android.html

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

      serkan_trS 1 Reply Last reply
      2
      • jsulmJ jsulm

        @serkan_tr
        For Windows: easiest way is to use a Windows machine (can be a virtual machine). Install compiler and Qt for this compiler there and what else you need. You can use MinGW as compiler, it can be installed using Qt Online Installer.

        For iOS: you have to do that on a Mac because it can be only done using MacOS. Install XCode and Qt for iOS and build. See https://doc.qt.io/qt-6/ios.html

        Android: install Qt for Android, NDK and Android SDK and build. See https://doc.qt.io/qt-6/android.html

        serkan_trS Offline
        serkan_trS Offline
        serkan_tr
        wrote on last edited by
        #3

        @jsulm I understand. Thank you for your answer. Actually, I don't want to install Windows vs MAC, I was wondering if QT Creator could provide this directly. But it can't provide it, I guess I have to install it. As far as I understand, the build I will make on my Linux computer will be valid for Linux and Android.
        As far as I understand, the build I will make on my Linux computer will be valid for Linux and Android (when I install the Android SDK).

        jsulmJ 1 Reply Last reply
        0
        • serkan_trS serkan_tr

          @jsulm I understand. Thank you for your answer. Actually, I don't want to install Windows vs MAC, I was wondering if QT Creator could provide this directly. But it can't provide it, I guess I have to install it. As far as I understand, the build I will make on my Linux computer will be valid for Linux and Android.
          As far as I understand, the build I will make on my Linux computer will be valid for Linux and Android (when I install the Android SDK).

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @serkan_tr Yes, you can build for Android on your Linux machine.
          You could also build for Windows on your Linux machine, but this is way harder to set up. You will have to install MinGW and then build Qt from sources using it. Afterwards you can use MinGW as compiler and that Qt build to build your app for Windows.

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

          serkan_trS 1 Reply Last reply
          2
          • jsulmJ jsulm

            @serkan_tr Yes, you can build for Android on your Linux machine.
            You could also build for Windows on your Linux machine, but this is way harder to set up. You will have to install MinGW and then build Qt from sources using it. Afterwards you can use MinGW as compiler and that Qt build to build your app for Windows.

            serkan_trS Offline
            serkan_trS Offline
            serkan_tr
            wrote on last edited by
            #5

            @jsulm Thank you very much for your answer

            1 Reply Last reply
            0
            • serkan_trS serkan_tr has marked this topic as solved on

            • Login

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