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. Strange compilation error with Qt5.1 and msvc2015_64
QtWS25 Last Chance

Strange compilation error with Qt5.1 and msvc2015_64

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 2 Posters 907 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.
  • J Offline
    J Offline
    jbc22
    wrote on last edited by
    #1

    I'm receiving the following errors:

    "C:\Qt\Qt5.10.0\5.10.0\msvc2015_64\mkspecs\features\toolchain.prf:205: error: Extra characters after test expression."
    ":-1: error: Compiler produced empty value for CreateFile:."

    It looks like this is directly related to qmake. I've reviewed the .pro file, as that seems to be the biggest issue when searching Google. I tried compiling using msvc2015_32 and it worked, so it seems localized to my kit. Any suggestions? Thanks in advance!

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      hi
      So its not the usual missing \ at end of line in .pro file.
      Do you have any 32/64 checks in pro file ?
      Since 32 bit works, one could assume .pro is 100% ok ? or ?

      1 Reply Last reply
      2
      • J Offline
        J Offline
        jbc22
        wrote on last edited by
        #3

        I do not have checks for 32 bit, just for Windows:

        win32 {
            SOURCES += corewin.cpp
            HEADERS += corewin.h
        }
        

        I just pushed to our Jenkins instance and it compiled fine for Mac/Win/Linux 32 and 64. So I think this confirms it is a localized issue.

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi
          Indeed if same pro file works on others setups in 64 bit then must be kit.
          If you make a default new GUI project it can compile?

          1 Reply Last reply
          2
          • J Offline
            J Offline
            jbc22
            wrote on last edited by
            #5

            I did not think to test that. I created a new project and no, I cannot compile it. Same qmake error.

            mrjjM 1 Reply Last reply
            0
            • J jbc22

              I did not think to test that. I created a new project and no, I cannot compile it. Same qmake error.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @jbc22
              Ok so it really is something in the kit.
              Some file qmake uses that is damaged. (maybe)
              Would it be option to simple reinstall Qt or too huge setup for that?

              J 1 Reply Last reply
              1
              • mrjjM mrjj

                @jbc22
                Ok so it really is something in the kit.
                Some file qmake uses that is damaged. (maybe)
                Would it be option to simple reinstall Qt or too huge setup for that?

                J Offline
                J Offline
                jbc22
                wrote on last edited by
                #7

                @mrjj That fixed it. Thanks!

                1 Reply Last reply
                1
                • mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Super,
                  we could have spend long time comparing files to find the guilty one so re-install
                  is so much more fun :)

                  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