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. Compiling an app in windows for linux
Qt 6.11 is out! See what's new in the release blog

Compiling an app in windows for linux

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 3.4k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi to all,
    I'm developing a Qt aplication who runs on windows xp.
    Now I have to run that application on linux.

    How can I do this?

    I read some post which discuss about this issue, but I couldn't find a simple answer.
    The only thingh that I understood is that the simpler way to compile an application wrote for windows it is to compile it directly on linux. I mean, is Qt "Write once, compile everywhere"? Is it true?

    Thanks in advance!

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      You can install Qt SDK on Linux and compile your application using Qt Creator IDE and qmake on Linux. I am using Qt Creator IDE on both platforms.

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        "compile everywhere" means what it says: compile separately on every platform. This is C++, after all, it has to be compiled.

        There are ways to compile for other platforms (so called cross-compilation). Qt has public mkspecs, you can find them on Gitorious - they might help. The easiest and most reliable way (remember, that OSes vary VERY significantly, especially when we talk Unix vs. Windows) is to compile on every platform yourself.

        (Z(:^

        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