Comments (5)
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.
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.
from ofxkinectv2.
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
inofxKinectV2/libs
Then if you run make && make RunRelease
it works
from ofxkinectv2.
from ofxkinectv2.
Related Issues (20)
- Don't grab RGB frame HOT 2
- The hardware requirement of multiple Kinect v2 HOT 2
- License HOT 1
- Unable to build under Linux HOT 2
- Taking the address of a temporary object of type 'Freenect Device'
- Kinect v2 as webcam in linux ? HOT 3
- How to get correct bigdepth(rgb->depth)? HOT 3
- fatal error: 'ofxKinectV2.h' file not found HOT 2
- Point Cloud using ofxKinectV2 HOT 5
- Change the default max depth to more than 4.5m HOT 1
- Add Windows config to addon_config.mk and missing libraries. HOT 1
- OpenCLFrame destructor issue
- Can't load .jpg images when using ofxKinectV2 HOT 6
- On Windows 10 - VS 2019: crashes after successful build HOT 1
- How to make it run in VS 2019? - getting LIBUSB_ERROR_NOT_SUPPORTED HOT 5
- Windows error after succesfull build HOT 4
- No inputs on Example HOT 2
- Using self compiled libfreenect2 with CUDA support? HOT 4
- Can't Build Release Version (macOS)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofxkinectv2.