Giter Site home page Giter Site logo

Error when building from source about trex HOT 8 CLOSED

mooch443 avatar mooch443 commented on May 28, 2024
Error when building from source

from trex.

Comments (8)

mooch443 avatar mooch443 commented on May 28, 2024

Hey there, thanks for trying it out.

Which version of Pylon are you using? It does not seem to find the libraries, which is odd.
And you are right about GLFW. As it is stating at the end, it does not find the Xrandr dev package. You can either install them using conda, or simply do it system-wide (apt-get) -- does not usually harm you. Not sure how you would install that on Ubuntu, but I'm sure Google will know. If you wish to use conda for that, here are a couple ones you can install on linux (conda-forge required):
https://anaconda.org/conda-forge/libxrandr-devel-cos6-x86_64 (or also without the devel if it doesnt suffice)
Same for other libraries that might come up (-cos6... are the libraries specifically for your system)
https://anaconda.org/search?q=xcursor

from trex.

elhananby avatar elhananby commented on May 28, 2024

Hi Tristan - yep, doing sudo apt-get install xorg-dev libglu1-mesa-dev solved that issue.

However, now I have issues with it not detecting the Pylon installation:
[ 85%] Linking CXX executable ../../../trex_check_python
/usr/bin/ld: cannot find -lPYLONBASE_LIBRARY-NOTFOUND
/usr/bin/ld: cannot find -lPYLON_UTILITY_LIBRARY-NOTFOUND
/usr/bin/ld: cannot find -lPYLON_GEN_LIBRARY-NOTFOUND
/usr/bin/ld: cannot find -lPYLON_GEN2_LIBRARY-NOTFOUND
/usr/bin/ld: cannot find -luuid
collect2: error: ld returned 1 exit status
src/tracker/python/CMakeFiles/trex_check_python.dir/build.make:152: recipe for target 'trex_check_python' failed
make[2]: *** [trex_check_python] Error 1
CMakeFiles/Makefile2:942: recipe for target 'src/tracker/python/CMakeFiles/trex_check_python.dir/all' failed
make[1]: *** [src/tracker/python/CMakeFiles/trex_check_python.dir/all] Error 2
Makefile:159: recipe for target 'all' failed
make: *** [all] Error 2

I currently have installed Pylon version 6.1.1. I also tried uninstalling it and reinstalling version 5.2.0 (as you tested it according to the documentation), and then the error is slightly different:

[ 84%] Linking CXX executable ../../../trex_check_python
/usr/bin/ld: cannot find -lPYLON_GEN_LIBRARY-NOTFOUND
/usr/bin/ld: cannot find -lPYLON_GEN2_LIBRARY-NOTFOUND
/usr/bin/ld: cannot find -luuid
collect2: error: ld returned 1 exit status
src/tracker/python/CMakeFiles/trex_check_python.dir/build.make:154: recipe for target 'trex_check_python' failed
make[2]: *** [trex_check_python] Error 1
CMakeFiles/Makefile2:942: recipe for target 'src/tracker/python/CMakeFiles/trex_check_python.dir/all' failed
make[1]: *** [src/tracker/python/CMakeFiles/trex_check_python.dir/all] Error 2
Makefile:159: recipe for target 'all' failed
make: *** [all] Error 2

Thanks,
Elhanan

from trex.

mooch443 avatar mooch443 commented on May 28, 2024

Whats your output for ls /opt/pylon5/lib64? I assume I am missing some library names in the Application/src/commons/CMakeModules/FindBaslerPylon.cmake. I can add those easily.

It's also still missing libuuid-dev apparently.

from trex.

elhananby avatar elhananby commented on May 28, 2024

I've installed libuuid-dev with sudo apt install uuid-dev.

The output of ls /opt/pylon5/lib64 is attached..
ls_pylon5.txt

from trex.

mooch443 avatar mooch443 commented on May 28, 2024

Alright, you may try pulling the newest version using git pull from the master branch and see if it finds your libraries now!

from trex.

elhananby avatar elhananby commented on May 28, 2024

I'll have to check it tomorrow and will keep you updated.
Thank you for all the quick help!

from trex.

mooch443 avatar mooch443 commented on May 28, 2024

No worries! You can edit the file yourself, too, in case it does not work. It's pretty straight-forward (just add more names to the existing lists of names). But do let me know!

from trex.

elhananby avatar elhananby commented on May 28, 2024

Hi Tristan, I just had time to check it again today, but it seems everything's working now.
Thanks for all the help!

from trex.

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.