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. Strange External Library error

Strange External Library error

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 2.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.
  • A Offline
    A Offline
    alok9871
    wrote on last edited by
    #1

    Hi Friends

    I have been using a lot of external libraries lately, and i usually dont have a problem working with them. However, I am working with one of the IR camera's SDK and this is the problem I face :

    The library for some reason runs perfectly alright on Microsoft Visual C++ Express Edition 2008, but fails to run on Qt 4.8.4. Both of them uses the same msvc compiler. I have no idea where I am going wrong.

    I get LNK2019 Linker error : Unresolved external symbols

    Please Help

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

      Hi,

      Without more information it's difficult to help, but you seem to have a missing library somewhere, are you sure you are linking all required libraries ?

      Can you show your project file ?

      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
      • A Offline
        A Offline
        alok9871
        wrote on last edited by
        #3

        I understand what you mean. But I am pretty sure I have added the libraries properly. Here is how my .pro looks

        @

        INCLUDEPATH += "C://Program Files/Xeneth/Sdk/Include"
        DEPENDPATH += "C://-Program Files/Xeneth/Sdk/Include"

        unix|win32: LIBS += -L"C://Program Files/Xeneth/Sdk/Lib" -lxeneth64

        INCLUDEPATH += "C://Program Files/Xeneth/Sdk/Lib"
        DEPENDPATH += "C://Program Files/Xeneth/Sdk/Lib"
        @

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

          From my experience, -L followed by a path with spaces (even quoted) doesn't work on Windows, use the 8.3 name in place of "Program Files" (something like PROGRA~1, you have to check what is correct).

          On a side not, I think you don't want that path for unix, rather:

          @unix: LIBS += -L/path_to_xeneth/lib
          win32: LIBS += -LC:/PROGRA~1/Xeneth/Sdk/lib
          LIBS += -lxeneth64
          @

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

            In my case, I'm working with 4 more libraries which are put the same way into my project. I tried the way suggested by you. No change. :(

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

              Did you check the 8.3 name for Program Files ? It might be something else than PROGRA~1

              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