Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

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

    General and Desktop
    2
    7
    2287
    Loading More Posts
    • 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
      xchg.ca last edited by

      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 Reply Quote 0
      • hskoglund
        hskoglund last edited by

        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 Reply Quote 0
        • X
          xchg.ca last edited by

          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 Reply Quote 0
          • X
            xchg.ca last edited by

            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 Reply Quote 0
            • X
              xchg.ca last edited by

              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 Reply Quote 0
              • hskoglund
                hskoglund last edited by

                Hi, target = Windows 7 64-bit.

                1 Reply Last reply Reply Quote 0
                • X
                  xchg.ca last edited by

                  [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 Reply Quote 0
                  • First post
                    Last post