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. Linux qt cross platform

Linux qt cross platform

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.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.
  • R Offline
    R Offline
    rogue_spider
    wrote on last edited by
    #1

    page
    http://qt-project.org/doc/qt-4.8/winsystem.html
    says
    Qt for Windows

    When compiling for this platform, the macro Q_WS_WIN is defined.

    Not documented here. Please contact Qt's technical support team if you have queries.

    im in linux and want to create 3 binarys 1 for windows 1 for mac and 1 for linux
    source is already cross platformed
    yet when i try to do win and mac i still only get linux binary
    i want to start by how do i create the windows exe?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vezprog
      wrote on last edited by
      #2

      Are you using a cross platform compiler like mingw? If your not, then you will have to bring the code onto a windows / mac system and recompile the code using the OS's native compiler to get your desired binary.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rogue_spider
        wrote on last edited by
        #3

        g++ im on linux your site says Qt is a cross-platform GUI toolkit
        the program works in linux i used qt im in qt creator i want it to do just that cross platform
        your saying no it cant that i have to cross the platform which means qt is not cross?

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vezprog
          wrote on last edited by
          #4

          I am sorry if I didn't explain that well or if there was some confusion.

          The Qt libraries are cross platform including the QtCreator. If generic C++ and/or the Qt libraries are used in your code, or if compiler #ifdef's for the target operating systems are used, then your code should work on all systems.

          With that said, most compilers are NOT cross platform.

          For example, I write all of my code in the QtCreator, but when I build for MacOSX, I use the clang64 compiler, in windows I use MSVC2010/2012, and in linux I use g++/gcc.

          If you have your compiler setup correctly on all target systems, then you should be able to drag your project on your target OS, open it in the creator, and build.

          Thats why I brought up mingw. I do not know much about it because I have never used it, but it is a cross platform compiler.

          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