Qt Forum

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

    Solved How to add LIBS correctly?

    General and Desktop
    3
    5
    155
    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.
    • Engelard
      Engelard last edited by

      Hi, i'm trying to do some stuff with opencv(for x32 platform), so i followed example provided by QT wiki: https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows_with_MSVC2017

      It worked perfectly, everywhere i did everything correctly except last part, where i dont understand how i should write path to my .lib files. In particular, i don't get that -LC thing, what is it? how my path should be written after that:

      alt text

      JonB 1 Reply Last reply Reply Quote 0
      • JonB
        JonB @Engelard last edited by JonB

        @Engelard
        Because you have a space in your path, I would have thought it would need to be:

        -L"C:\Program Files\...\lib" -lopencv_....
        

        No?

        That's separate from assuming you know what you have with some C: and some D: :)

        Engelard 1 Reply Last reply Reply Quote 1
        • JonB
          JonB @Engelard last edited by JonB

          @Engelard
          Because you have a space in your path, I would have thought it would need to be:

          -L"C:\Program Files\...\lib" -lopencv_....
          

          No?

          That's separate from assuming you know what you have with some C: and some D: :)

          Engelard 1 Reply Last reply Reply Quote 1
          • Engelard
            Engelard @JonB last edited by

            @JonB Well, now new error:LNK1104: cannot open file 'opencv_core440d.lib'

            1 Reply Last reply Reply Quote 0
            • Kent-Dorfman
              Kent-Dorfman last edited by

              you're mixing NIX and windoze syntax. Read the docs, Luke.

              https://doc.qt.io/qt-5/qmake-variable-reference.html#libs

              1 Reply Last reply Reply Quote 0
              • Engelard
                Engelard last edited by

                @JonB tnx, i typed it correctly, and now it finally compiled.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post