Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QTCreator / QT 5.0.1 / msvc2010
Qt 6.11 is out! See what's new in the release blog

QTCreator / QT 5.0.1 / msvc2010

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 2 Posters 3.1k 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.
  • D Offline
    D Offline
    DBGTMaster
    wrote on last edited by
    #1

    Hello,

    i created a application with qtcreator and qt5.0.1. I will compile it with the msvc compiler.

    Compiling stops with the following error:
    LINK : fatal error LNK1181: Could not open "qtmain.lib".

    What i make wrong??

    my project file:
    LIBS += C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin
    INCLUDEPATH += C:\Qt\projects\intranet_client
    INCLUDEPATH += C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin

    qmake command:
    qmake.exe C:\Qt\projects\intranet_client\intranet_client.pro -r -spec win32-msvc2010

    What i make wrong??

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      hm... It seems that you have set paths to mingw (mingw47_32) version but you are trying to compile it with msvc.

      http://anavi.org/

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DBGTMaster
        wrote on last edited by
        #3

        Oooh, i didn´t know, that the mingw and msvc libaries are not compatible.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          [quote author="DBGTMaster" date="1360876383"]Oooh, i didn´t know, that the mingw and msvc libaries are not compatible.[/quote]

          Yes, the libraries and the app have to build with the same compiler.

          http://anavi.org/

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DBGTMaster
            wrote on last edited by
            #5

            Hello,

            my next error message is:
            :-1: Error:LNK1181: Could not open inputfile "C:\Qt\Qt5.0.1\5.0.1\msvc2010\lib.obj"

            the file does not exists ??? what make i wrong?

            1 Reply Last reply
            0
            • L Offline
              L Offline
              leon.anavi
              wrote on last edited by
              #6

              [quote author="DBGTMaster" date="1360937879"]Hello,

              my next error message is:
              :-1: Error:LNK1181: Could not open inputfile "C:\Qt\Qt5.0.1\5.0.1\msvc2010\lib.obj"

              the file does not exists ??? what make i wrong?[/quote]

              Please post here the .pro file of your project again.

              http://anavi.org/

              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