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.
  • E Offline
    E Offline
    Engelard
    wrote on 7 Aug 2020, 20:58 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

    J 1 Reply Last reply 7 Aug 2020, 21:03
    0
    • E Engelard
      7 Aug 2020, 20:58

      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

      J Offline
      J Offline
      JonB
      wrote on 7 Aug 2020, 21:03 last edited by JonB 8 Jul 2020, 21:05
      #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: :)

      E 1 Reply Last reply 7 Aug 2020, 22:33
      1
      • J JonB
        7 Aug 2020, 21:03

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

        E Offline
        E Offline
        Engelard
        wrote on 7 Aug 2020, 22:33 last edited by
        #3

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

        1 Reply Last reply
        0
        • K Online
          K Online
          Kent-Dorfman
          wrote on 8 Aug 2020, 00:19 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
          • E Offline
            E Offline
            Engelard
            wrote on 8 Aug 2020, 00:33 last edited by
            #5

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

            1 Reply Last reply
            0

            1/5

            7 Aug 2020, 20:58

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved