AndreiBarsan / DynSLAM

Master's Thesis on Simultaneous Localization and Mapping in dynamic environments. Separately reconstructs both the static environment and the dynamic objects from it, such as cars.
BSD 3-Clause "New" or "Revised" License
578 stars 178 forks source link

compile errro: /InfiniTAM/Engine #36

Closed rnunziata closed 7 years ago

rnunziata commented 7 years ago

Any idea how to solve this compile error:

/home/rjn/opencv3-p3-code/tracking_and_slam/newstuff/DynSLAM/src/InfiniTAM/InfiniTAM/Engine/LibUVCEngine.cpp: In function ‘void callback_depth(uvc_frame_t*, void*)’:
/home/rjn/opencv3-p3-code/tracking_and_slam/newstuff/DynSLAM/src/InfiniTAM/InfiniTAM/Engine/LibUVCEngine.cpp:57:42: error: ‘UVC_FRAME_FORMAT_GRAY16’ was not declared in this scope
  data->framebuffer_depth->frame_format = UVC_FRAME_FORMAT_GRAY16;
                                          ^
/home/rjn/opencv3-p3-code/tracking_and_slam/newstuff/DynSLAM/src/InfiniTAM/InfiniTAM/Engine/LibUVCEngine.cpp: At global scope:
/home/rjn/opencv3-p3-code/tracking_and_slam/newstuff/DynSLAM/src/InfiniTAM/InfiniTAM/Engine/LibUVCEngine.cpp:62:8: error: ‘uvc_frame_desc’ does not name a type
  const uvc_frame_desc *frame_desc;
        ^
/home/rjn/opencv3-p3-code/tracking_and_slam/newstuff/DynSLAM/src/InfiniTAM/InfiniTAM/Engine/LibUVCEngine.cpp: In function ‘FormatSpec findSuitableFormat(uvc_device_handle_t*, int, int, const char*)’:
/home/rjn/opencv3-p3-code/tracking_and_slam
rnunziata commented 7 years ago

I got around this error by downloading libuvc and adding it to CMakeList.txt in InfinitTAM. Unfortunatly this resulted in another compile error:

add_subdirectory("libuvc")

find_package(libuvc QUIET)

CANONIFY_BOOL(libuvc_FOUND)

message(STATUS "libuvc found: ${libuvc_FOUND}")

error:


[ 67%] Linking CXX executable InfiniTAM_cli
/usr/bin/ld: ITMLib/libITMLib.a(ITMMainEngine.cpp.o): undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

and

[ 71%] Building CXX object CMakeFiles/DynSLAMGUI.dir/src/DynSLAM/Direct/image_alignment/device/cpu/dirImgAlignCPU.cpp.o
/home/rjn/opencv3-p3-code/tracking_and_slam/newstuff/DynSLAM/src/DynSLAM/Direct/image_alignment/device/cpu/dirImgAlignCPU.cpp:4:26: fatal error: sophus/se3.hpp: No such file or directory
compilation terminated.
CMakeFiles/DynSLAM.dir/build.make:302: recipe for target 'CMakeFiles/DynSLAM.dir/src/DynSLAM/Direct/image_alignment/device/cpu/dirImgAlignCPU.cpp.o' failed
make[2]: *** [CMakeFiles/DynSLAM.dir/src/DynSLAM/Direct/image_alignment/device/cpu/dirImgAlignCPU.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....