Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

ofxKinect2 and Ubuntu

$
0
0

@edapx wrote:

Does anyone have installed ofxKinect2 successfully on Ubuntu 18.10?
I am asking because I am working on an installation where I need it but I am facing some problem.

I am using:

I have followed these instructions https://gist.github.com/madelinegannon/10f62caba7184b90ea43a734768e5147, I have installed cuda and I am able to run the ./bin/Protonect executable.

Whenever I try to run the example provided in Theo’s 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

The error is related to the libfreenect2 library. As the Protonect app is working, I assume it is a problem of paths.

I have installed freenect2 on Linux following this documentation.


After running make && make install, the library was built in my home directory.

freenect2/
├── include
│   └── libfreenect2
│       ├── color_settings.h
│       ├── config.h
│       ├── export.h
│       ├── frame_listener.hpp
│       ├── frame_listener_impl.h
│       ├── led_settings.h
│       ├── libfreenect2.hpp
│       ├── logger.h
│       ├── packet_pipeline.h
│       └── registration.h
└── lib
    ├── cmake
    │   └── freenect2
    │       ├── freenect2Config.cmake
    │       └── freenect2ConfigVersion.cmake
    ├── libfreenect2.so -> libfreenect2.so.0.2
    ├── libfreenect2.so.0.2 -> libfreenect2.so.0.2.0
    ├── libfreenect2.so.0.2.0
    └── pkgconfig
        └── freenect2.pc

I think that this folder should not be here, but installed system wide.
Any clue?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles