Giter VIP home page Giter VIP logo

Comments (11)

Alex-Beh avatar Alex-Beh commented on August 21, 2024 4

Facing the same issue and the solution by @whoutman works for me. Somehow the cmake cannot find the library but the Pylon_FOUND is set to 1. So the if case for the FindPylon.cmake has been skipped.

I have modified the if case to the following also and managed to compiled the packages with pylon 7.3 👍

if (NOT ${Pylon_FOUND} OR "$ENV{Pylon_INCLUDE_DIRS}" STREQUAL "")
    include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindPylon.cmake")
endif()

from pylon-ros-camera.

fmauch avatar fmauch commented on August 21, 2024 1

Just stumbled upon this, as well. Try using pylon SDK version 6.x. on 7.x they changed the way the Pylon config is exposed which is not understood by this package here.

from pylon-ros-camera.

alblinks avatar alblinks commented on August 21, 2024 1

I am experiencing the same error. Downgrading to pylon 6.3 worked.

from pylon-ros-camera.

FrancoisPicardDTI avatar FrancoisPicardDTI commented on August 21, 2024 1

Hello
I integrated the fixes suggested by @nachovizzo, PR #179.
Does it solve the issue?
Regards,
Francois

from pylon-ros-camera.

bertaveira avatar bertaveira commented on August 21, 2024

Yeah I had to move to 7.x because the 6.x has no ARM Debian package. I find it weird how in the humble branch README it says that we should use 7.2 or later

from pylon-ros-camera.

whoutman avatar whoutman commented on August 21, 2024

Unfortunately I bumped into this issue as well.

It seems that the cmake/FindPylon.cmake is not properly included in CMakeLists.txt, as I was able to compile when commenting out the if-statement around the include of this cmake-file, see https://github.com/basler/pylon-ros-camera/blob/humble/pylon_ros2_camera_component/CMakeLists.txt#L39

With this if-statement, no output was generated for the messages in the lines below (I commented those out, see https://github.com/basler/pylon-ros-camera/blob/humble/pylon_ros2_camera_component/CMakeLists.txt#L41-L43), while the following output was reported without the if-statement:

->    Pylon include directories: /opt/pylon/include
->    Pylon library directories: /opt/pylon/lib
->    Pylon libraries: pylonbase;pylonutility;GenApi_gcc_v3_1_Basler_pylon;GCBase_gcc_v3_1_Basler_pylon

Did I forget to run a specific script? Running e.g.
source /opt/pylon/bin/pylon-setup-env.sh /opt/pylon
does not seem to do the job.

As a reference:
pylon version 7.3.0 (downloaded deb package installer) with a x86 (64 Bit) architecture

from pylon-ros-camera.

whoutman avatar whoutman commented on August 21, 2024

I am experiencing the same error. Downgrading to pylon 6.3 worked.

For me this worked as well

from pylon-ros-camera.

Ekanshh avatar Ekanshh commented on August 21, 2024

Facing the same issue and the solution by @whoutman works for me. Somehow the cmake cannot find the library but the Pylon_FOUND is set to 1. So the if case for the FindPylon.cmake has been skipped.

I have modified the if case to the following also and managed to compiled the packages with pylon 7.3 +1

if (NOT ${Pylon_FOUND} OR "$ENV{Pylon_INCLUDE_DIRS}" STREQUAL "")
    include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindPylon.cmake")
endif()

Worked for me. :)

from pylon-ros-camera.

argolomb avatar argolomb commented on August 21, 2024

Facing the same issue and the solution by @whoutman works for me. Somehow the cmake cannot find the library but the Pylon_FOUND is set to 1. So the if case for the FindPylon.cmake has been skipped.

I have modified the if case to the following also and managed to compiled the packages with pylon 7.3 +1

if (NOT ${Pylon_FOUND} OR "$ENV{Pylon_INCLUDE_DIRS}" STREQUAL "")
    include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindPylon.cmake")
endif()

Work for me too.

from pylon-ros-camera.

nachovizzo avatar nachovizzo commented on August 21, 2024

@FrancoisPicardDTI, any plan on fixing this? It would be ideal to be able to build the ROS 2 wrapper without having to patch the build system.

On the README.md it says that Pylon SDK 7.2+ should be installed but this conflicts with the way of finding the package. The provided solution by @Alex-Beh works so seems to be easy to include in the ros2 branch.

What do you think? I'm happy to open a PR to fix this

from pylon-ros-camera.

ndahn avatar ndahn commented on August 21, 2024

Commenting out the if statement also worked on ROS noetic!

from pylon-ros-camera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.