Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Including/linking issue
Forum Updated to NodeBB v4.3 + New Features

Including/linking issue

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 2.2k 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.
  • J Offline
    J Offline
    JPOD
    wrote on last edited by
    #1

    Hello!

    I'm using NVIDIA Jetson TK1 OS:Ubuntu, IDE:QtCreator, i'm programming in c++ and i'm also using OpenCV. My goal is to be able to capture pictures with my Basler GigE camera. I downloaded the Basler Pylon SDK for ARM and followed the install instructions. I've also set up the environment variables. After ive done that i ran a sample that came with the SDK and it worked fine. Then i attempted to implement the Pylon libraries into a Qt project, so i could capture frames within my code, but what i get is the following:
    http://postimg.org/image/sewkasxbf/

    The programmer's guide that came with Pylon tells me to do the following:

    • the $PYLON_ROOT/bin/pylon-setup-env.sh shell script sets up the environment *

    I've done that, and checked it using the env command in terminal

    *Add the following include directories in your make file:
    -I"$(PYLON_ROOT)/include" -I"$(PYLON_GENICAM_ROOT)/library/CPP/include"

    Add the following library directories in your make file:
    -L"$(PYLON_ROOT)/lib" -L"$(PYLON_GENICAM_ROOT)/library/CPP/lib/Linux32_i86"*
    NOTE: Linux32_i86 is replaced by Linux32_ARM in my case..

    I'm not quite confident i've done that correctly. I've added the include directories using the INCLUDEPATH+=... in .pro file and i've added the libraries using the LIBS+=...
    in the main.cpp i've added the following lines:
    #include <pylon/PylonIncludes.h>
    using namespace Pylon;
    and in function main:
    Pylon::PylonAutoInitTerm autoInitTerm;

    I should say that i'm quite new to all this, so excuse me if it's a dumb question but i cant seem to get past it without any help :)

    Thank you in advance

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

      Hi and welcome to devnet,

      You should use

      LIBS += -lopencv_core \
          -lopencv_XXX \
          -lall_need_libraries
      

      here it's a lowercase L, uppercase L is more adding additional search paths for the linker and lowercase L is for telling the linker which lib it should use.

      From your errors in looks like you are not linking to the genicam libraries

      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