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. How to add LIBS correctly?
Forum Updated to NodeBB v4.3 + New Features

How to add LIBS correctly?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 470 Views 2 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.
  • EngelardE Offline
    EngelardE Offline
    Engelard
    wrote on last edited by
    #1

    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

    JonBJ 1 Reply Last reply
    0
    • EngelardE Engelard

      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

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @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: :)

      EngelardE 1 Reply Last reply
      1
      • JonBJ 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: :)

        EngelardE Offline
        EngelardE Offline
        Engelard
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • Kent-DorfmanK Offline
          Kent-DorfmanK Offline
          Kent-Dorfman
          wrote on last edited by
          #4

          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
          0
          • EngelardE Offline
            EngelardE Offline
            Engelard
            wrote on last edited by
            #5

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

            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