Giter Club home page Giter Club logo

Comments (5)

edap avatar edap commented on August 12, 2024

Hi. I have followed the amazing tutorial by @madelinegannon https://gist.github.com/madelinegannon/10f62caba7184b90ea43a734768e5147 and I was able to run the ./bin/Protonect executable.

I have installed OF and compiled with gcc-6. I have added these lines to my .bashrc file (and I hame made sure that cuda was correctly installed and that /usr/local/cuda is the correct location).

export LD_LIBRARY_PATH="/usr/local/cuda/lib64:${LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH}"
export PATH="/usr/local/cuda/bin:${PATH}"

When I run the example provided in this repository, I receive the error:

/usr/bin/x86_64-linux-gnu-ld.gold: error: cannot find -lfreenect2
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o:function _start: error: undefined reference to 'main'
Sources/of_v20200227_linux64gcc6_release/addons/ofxKinectV2/libs/libfreenect2/src/packet_pipeline.cpp:42: error: undefined reference to 'libfreenect2::VTRgbPacketProcessor::VTRgbPacketProcessor()'
collect2: error: ld returned 1 exit status

and actually there is no libfreenect2.so in /usr/local/lib.

Any clue? I think that libfreenect2 is probably not installed system wide, so the Proton example works, but the OF app no.

from ofxkinectv2.

edap avatar edap commented on August 12, 2024

Just as a side note, I had make a mistake while installing libfreenect2. The instruction reported by @madelinegannon are correct, just:

> mkdir build && cd build
> cmake -DBUILD_SHARED_LIBS=ON ..
> make
> make install

needs to be

> mkdir build && cd build
> cmake -DBUILD_SHARED_LIBS=ON ..
> make
> **sudo** make install

Otherwise it can not install the library system wide.
The example application provided in works in the .
I have copied that example found in https://github.com/madelinegannon/ofxKinectV2 in this repository.

I have removed all the libraries in addons/ofxKinectV2/libs except of protonect.
I have run make && makeRunRelease and the example worked.

from ofxkinectv2.

ofTheo avatar ofTheo commented on August 12, 2024

from ofxkinectv2.

edap avatar edap commented on August 12, 2024

The only two steps to get the example working on linux (after installing cuda, libfreenect2, etc, as explained in the guide) are:

  • Add PROJECT_LDFLAGS=-L/usr/local/lib/ -lfreenect2 -L/usr/local/cuda/lib64 -lcuda -lcudart to config.make
  • Delete everything except protonect in ofxKinectV2/libs

Then if you run make && make RunRelease it works

from ofxkinectv2.

ofTheo avatar ofTheo commented on August 12, 2024

from ofxkinectv2.

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.