Open zhaowei11594 opened 6 years ago
Hmm, the error seems to come from terra. Did you use exactly the same version as in the build script (release-2016-03-25) or did you build it separately?
If you didn't use the same version, that might be the cause. The error is looking for libdl
but it seems that it's not linked.
Here's my code from the build script:
cd dynamicfusion/deps
wget https://github.com/zdevito/terra/releases/download/release-2016-03-25/terra-Linux-x86_64-332a506.zip
unzip terra-Linux-x86_64-332a506.zip
rm terra-Linux-x86_64-332a506.zip
mv terra-Linux-x86_64-332a506 terra
I ran into the same problem but fixed by adding dl
as part of the terra libraries.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 20faf7b..286f2cc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,8 +43,9 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules/")
include(cmake/Utils.cmake)
include(cmake/Targets.cmake)
+set(OpenCV_DIR /home/yifei/develop/opencv_version/2.4.13.6/opencv-2.4.13.6/build)
# ---[ find dependencies
-find_package(OpenCV REQUIRED COMPONENTS core viz highgui calib3d)
+find_package(OpenCV REQUIRED COMPONENTS core highgui viz calib3d)
find_package(CUDA REQUIRED)
find_package(OpenNI)
find_package(Ceres REQUIRED)
@@ -71,7 +72,7 @@ endif()
warnings_disable(CMAKE_CXX_FLAGS /wd4985)
set(OPT_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/deps/Opt/examples/external/mLib/include ${CMAKE_CURRENT_SOURCE_DIR}/deps/Opt/examples/shared/ ${CMAKE_CURRENT_SOURCE_DIR}/deps/Opt/API/release/include)
set(OPT_LIBRARIES ${CMAKE_CURRENT_SOURCE_DIR}/deps/Opt/API/release/lib/libOptDev.a)
-set(TERRA_LIBRARIES ${CMAKE_CURRENT_SOURCE_DIR}/deps/terra/lib/libterra.a)
+set(TERRA_LIBRARIES ${CMAKE_CURRENT_SOURCE_DIR}/deps/terra/lib/libterra.a;dl;curses)
add_subdirectory(kfusion)
add_subdirectory(apps)
Hi @mihaibujanca ; thanks for your projects, I encountered a problem, not solved for a few days。 when I run the following command:
I get the following error:
Any idea what this error might be?