Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. LNK1104: cannot open file
Forum Updated to NodeBB v4.3 + New Features

LNK1104: cannot open file

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 2.5k 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.
  • C Offline
    C Offline
    crickers
    wrote on last edited by
    #1

    I am currently trying to build mysql drivers using QT Creator 3.0.1 with MSVC 11. I have copied the contents MySQL Connector 6.1.3 to C:\MySQL and have edited the mysql.pro file located in ..\qtbase\src\plugins\sqldrivers\mysql with the following:

    LIBS += C:\MySQL\lib\libmysql.lib
    INCLUDEPATH += C:\MySQL\includes

    When trying to build the file, I get the error: LNK1104: cannot open file 'libmysql.lib'. I have tried with the file in the working directory and also located in the C:\MySQL folder with no change. There are no spaces in the .lib path so I'm not sure what else would be causing the error.

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on last edited by
      #2

      Try change "" with "/".
      Also you can try library adding wizard (right click on project tree -> Add library)

      1 Reply Last reply
      0
      • C Offline
        C Offline
        crickers
        wrote on last edited by
        #3

        I tried both with adding forward slashes instead and trying the wizard but get the same error message.

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

          Hi and welcome to devnet,

          What do you get if you use something like

          @
          LIBS += -LC:/MySQL/lib
          -lmysql
          @

          ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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