I am having an issue setting up Open3D with C++ and was hoping someone here could help me.
I got the prebuilt .lib and includes from the latest release on github.
Only have 2 CMakeLists. This is my CMakeLists for the project:
cmake_minimum_required(VERSION 3.20)
project(TissueMaker)
# Define the path to the prebuilt Open3D binaries
set(OPEN3D_DIR ${CMAKE_SOURCE_DIR}/third_party/open3d)
file(GLOB_RECURSE SRC_FILES src/*.cpp)
file(GLOB_RECURSE HEADER_FILES includes/*.h)
link_directories(${OPEN3D_DIR}/lib)
# Add the executable
add_executable(${PROJECT_NAME} ${SRC_FILES} ${HEADER_FILES})
target_include_directories(${PROJECT_NAME} PRIVATE ${OPEN3D_DIR}/include/open3d/3rdparty)
# Include Open3D directories
include_directories (${OPEN3D_DIR}/include)
target_link_libraries(${PROJECT_NAME} PRIVATE ${OPEN3D_DIR}/lib/Open3d.lib)
and this is the top level CMakeLists:
cmake_minimum_required(VERSION 3.20)
project(TissueMakerApplication)
add_subdirectory(TissueMaker ${CMAKE_BINARY_DIR}/TissueMakerApplication)
It compiles but the issue I am having is that when I run it, it says “code execution cannot proceed because Open3D.dll was not found”. From the cmakes you can see that i am using static linking so dll shoudlnt matter right?
Big KP is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.