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. [solved] error: undefined reference to '\_imp__is_InitCamera'*
QtWS25 Last Chance

[solved] error: undefined reference to '\_imp__is_InitCamera'*

Scheduled Pinned Locked Moved Solved General and Desktop
qt ueye
3 Posts 2 Posters 1.8k Views
  • 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.
  • P Offline
    P Offline
    pbdot
    wrote on last edited by pbdot
    #1

    Hi,

    I am trying to grab an image from an uEye ethernet camera.

    In the project .pro file, I've added INCLUDEPATH and LIBS to point to where the location of the uEye SDK is:

    INCLUDEPATH += "C:\Program Files\IDS\uEye\Develop\include"
    LIBS += -L"C:\Program Files\IDS\uEye\Develop\Lib" -uEye_api -uEye_tools
    

    In my code, I added:

    #include "uEye.h"
    
    HIDS hCam = 1;
    printf("Success-Code: %d\n",IS_SUCCESS);
    INT nRet = is_InitCamera(&hCam, NULL);
    

    When I tried to compile, Qt Creator complains that: mainwindow.cpp:27: error: undefined reference to '_imp__is_InitCamera'
    Strange that I was typing the line is_, the IDE auto-complete the syntax to is_InitCamera.

    What did I do wrong?

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

      Change
      LIBS += -L"C:\Program Files\IDS\uEye\Develop\Lib" -uEye_api -uEye_tools
      to
      LIBS += -L"C:\Program Files\IDS\uEye\Develop\Lib" -lEye_api -lEye_tools

      And you should avoid to use paths containing blanks: it often cause problems.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pbdot
        wrote on last edited by
        #3

        Thanks, that fixed it!

        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