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. LNK1146: no argument specified with option '/LIBPATH:'

LNK1146: no argument specified with option '/LIBPATH:'

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 9.2k 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
    DevendraM
    wrote on last edited by
    #1

    I am doing simple program for opencv but I am getting Linking error.
    My .pro file is
    @
    QT += core gui

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = Pro
    TEMPLATE = app

    SOURCES += main.cpp
    dialog.cpp

    HEADERS += dialog.h

    FORMS += dialog.ui

    INCLUDEPATH += C:\opencv\build\include

    LIBS +=-LC:\opencv\build\x86\vc10\lib
    -lopencv_calib3d245
    -lopencv_calib3d245d
    -lopencv_contrib245
    -lopencv_contrib245d
    @

    I am getting error as

    bq. LNK1146: no argument specified with option '/LIBPATH:'

    Please Help me...

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      What you specified in pro file is perfect. I presume you must be using the vc++ here. See if this "post":http://social.msdn.microsoft.com/Forums/vstudio/en-US/8f0257d5-66e8-47cc-9b19-582ec5491d55/link-fatal-error-lnk1146-no-argument-specified-with-option-libpath helps for you.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

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

        Thank u,
        I am getting this error

        bq. LNK1104: cannot open file 'C:\opencv\build\x86\vc10\lib.lib'

        But I have changed my directory to

        "C:\opencv\build\x64\vc10\lib"

        I tried to rebuild again n again.

        Can you explain me this?

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

          Hi and welcome to devnet,

          You should rather use

          @-LC:/opencv/build/x86/vc10/lib@

          Also double check the capital L

          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
          • D Offline
            D Offline
            DevendraM
            wrote on last edited by
            #5

            Now I am getting

            bq. LNK1104: cannot open file 'C:\opencv\build\x86\vc10\lib.lib'

            error again....
            :(

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

              Just to be on the safe side, please rebuild completely your project

              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