Open GoogleCodeExporter opened 9 years ago
I'd got the same errors. It helps for me to change #include directive in
data_capture.hpp to absolute path to freenect.h.
But i can't build this examples, got messages on make:
[ 50%] Building CXX object CMakeFiles/fv-example-freenect.dir/main.o
[100%] Building CXX object CMakeFiles/fv-example-freenect.dir/data_capture.o
Linking CXX executable bin/fv-example-freenect
CMakeFiles/fv-example-freenect.dir/data_capture.o: In function
`fovis_example::DataCapture::initialize()':
data_capture.cpp:(.text+0x1fd): undefined reference to `freenect_init'
data_capture.cpp:(.text+0x22c): undefined reference to `freenect_set_log_level'
data_capture.cpp:(.text+0x23b): undefined reference to `freenect_num_devices'
data_capture.cpp:(.text+0x283): undefined reference to `freenect_open_device'
data_capture.cpp:(.text+0x2b5): undefined reference to `freenect_set_user'
data_capture.cpp:(.text+0x2cb): undefined reference to
`freenect_find_video_mode'
data_capture.cpp:(.text+0x2e1): undefined reference to
`freenect_find_depth_mode'
data_capture.cpp:(.text+0x30b): undefined reference to `freenect_set_video_mode'
data_capture.cpp:(.text+0x335): undefined reference to `freenect_set_depth_mode'
CMakeFiles/fv-example-freenect.dir/data_capture.o: In function
`fovis_example::DataCapture::startDataCapture()':
data_capture.cpp:(.text+0x36d): undefined reference to `freenect_set_tilt_degs'
data_capture.cpp:(.text+0x382): undefined reference to `freenect_set_led'
data_capture.cpp:(.text+0x397): undefined reference to
`freenect_set_depth_callback'
data_capture.cpp:(.text+0x3ac): undefined reference to
`freenect_set_video_callback'
data_capture.cpp:(.text+0x3bc): undefined reference to `freenect_start_depth'
data_capture.cpp:(.text+0x3cc): undefined reference to `freenect_start_video'
CMakeFiles/fv-example-freenect.dir/data_capture.o: In function
`fovis_example::DataCapture::stopDataCapture()':
data_capture.cpp:(.text+0x3f0): undefined reference to `freenect_stop_depth'
data_capture.cpp:(.text+0x400): undefined reference to `freenect_stop_video'
data_capture.cpp:(.text+0x410): undefined reference to `freenect_close_device'
data_capture.cpp:(.text+0x41f): undefined reference to `freenect_shutdown'
CMakeFiles/fv-example-freenect.dir/data_capture.o: In function
`fovis_example::DataCapture::captureOne()':
data_capture.cpp:(.text+0x472): undefined reference to `freenect_process_events'
CMakeFiles/fv-example-freenect.dir/data_capture.o: In function
`fovis_example::DataCapture::depth_cb(_freenect_device*, void*, unsigned int)':
data_capture.cpp:(.text+0x4a1): undefined reference to `freenect_get_user'
CMakeFiles/fv-example-freenect.dir/data_capture.o: In function
`fovis_example::DataCapture::image_cb(_freenect_device*, void*, unsigned int)':
data_capture.cpp:(.text+0x4dd): undefined reference to `freenect_get_user'
I understand, it's ld errors, but i don't understand where and how to change
its paths.
Original comment by Dubrovsk...@gmail.com
on 24 Aug 2012 at 11:17
edit CMakeLists.txt, add the path of libfreenect to static path like this will
solve the problem:
set(LIBFREENECT_LIBS
$HOME/myStacks/freenect/libfreenect/build/lib/libfreenect.so.0.2.0)
Original comment by ausu0...@gmail.com
on 7 Oct 2013 at 1:06
Original issue reported on code.google.com by
lakd...@gmail.com
on 23 Jul 2012 at 12:55