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. Problem with QMAKE and multi platform PRO file always thinks it under Unix
QtWS25 Last Chance

Problem with QMAKE and multi platform PRO file always thinks it under Unix

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 2.5k 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.
  • X Offline
    X Offline
    xchg.ca
    wrote on last edited by
    #1

    Hi guys I having troubles running multi platform config in my pro file on Windows 7 64 bit
    It looks like qmake always thinks I'm on Unix:

    @win32 {
    message(win32)
    }
    win64 {
    message(win64)
    }
    macx {
    message(macx)
    }
    unix:!macx{
    message(unix)
    }@

    Always prints 'unix'

    Well I have not tried on anything but Windows, but I want to work in on windows first!

    This is under QTCreator 3.1.2 and QT 5.3.1

    1 Reply Last reply
    0
    • hskoglundH Online
      hskoglundH Online
      hskoglund
      wrote on last edited by
      #2

      Hmm that's strange, I make a new simple Widgets app and tested your .pro text and it printed Project MESSAGE: win32
      (I'm using Qt Creator 3.2.0 and Qt 5.3.1 on Windows 7 64-bit)

      1 Reply Last reply
      0
      • X Offline
        X Offline
        xchg.ca
        wrote on last edited by
        #3

        I do have default project created by QTCreator Wizard, and when I add this to it it says I'm on Unix !!!
        Is it possible that something like Cygwin or GNU32 DiffUtils can mess-up QMAKE ?
        I will also try on it separate PC!

        1 Reply Last reply
        0
        • X Offline
          X Offline
          xchg.ca
          wrote on last edited by
          #4

          Tried on another Win7 PC which doesn't have thing like Cygvin and other unixy stuff installed, same story.
          Also tried with older QT 5.0.2 I still keep... still detect it like Unix! What I'm missing ??!!!!!

          1 Reply Last reply
          0
          • X Offline
            X Offline
            xchg.ca
            wrote on last edited by
            #5

            Guys, I want to understand what are those switches are?
            Do they defined your current host platform or they define you targeting platform?

            [quote author="hskoglund" date="1410537252"]Hmm that's strange, I make a new simple Widgets app and tested your .pro text and it printed Project MESSAGE: win32
            (I'm using Qt Creator 3.2.0 and Qt 5.3.1 on Windows 7 64-bit)
            [/quote]
            What is your target platform for project you tested it under? In my case it was Blackberry10

            1 Reply Last reply
            0
            • hskoglundH Online
              hskoglundH Online
              hskoglund
              wrote on last edited by
              #6

              Hi, target = Windows 7 64-bit.

              1 Reply Last reply
              0
              • X Offline
                X Offline
                xchg.ca
                wrote on last edited by
                #7

                [quote author="hskoglund" date="1411051235"]Hi, target = Windows 7 64-bit.[/quote]

                Well I think this is why it reports win32, if you can change it to Android or something and see what it will report.
                I cross compiling my stuff for ARM (BB10) so my host platform and target platform are different.

                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