Giter Site home page Giter Site logo

open3d-cmake-find-package's Introduction

Find Pre-Installed Open3D Package in CMake

This is one of the two CMake examples showing how to use Open3D in your CMake project:

For more details, check out the Open3D repo and Open3D docs.

Step 1: Compile and install Open3D

Follow the Open3D compilation guide, compile and install Open3D in your preferred location. You can specify the installation path with CMAKE_INSTALL_PREFIX and the number of parallel jobs to speed up compilation.

On Ubuntu/macOS:

git clone --recursive https://github.com/intel-isl/Open3D.git
cd Open3D
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=${HOME}/open3d_install ..
make install -j 12
cd ../..

On Windows:

git clone --recursive https://github.com/intel-isl/Open3D.git
cd Open3D
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=C:\open3d_install ..
cmake --build . --config Release --parallel 12 --target install
cd ..\..

Note: -DBUILD_SHARED_LIBS=ON is recommended if -DBUILD_CUDA_MODULE=ON.

Step 2: Use Open3D in this example project

On Ubuntu/macOS:

git clone https://github.com/intel-isl/open3d-cmake-find-package.git
cd open3d-cmake-find-package
mkdir build
cd build
cmake -DOpen3D_ROOT=${HOME}/open3d_install ..
make -j 12
./Draw

On Windows:

git clone https://github.com/intel-isl/open3d-cmake-find-package.git
cd open3d-cmake-find-package
mkdir build
cmake -DOpen3D_ROOT=C:\open3d_install ..
cmake --build . --config Release --parallel 12
Release\Draw

open3d-cmake-find-package's People

Contributors

stotko avatar yxlao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

open3d-cmake-find-package's Issues

Build failed

Hi,I'm building open3d from source on mac.But when i compile according your script, it fails and throws the following error:
... ...
[ 32%] Built target 3rdparty_qhullcpp
/Users/bingkang.zhang/iOSProjects/Open3D-Build/Open3D/build/libpng/src/ext_libpng/arm/arm_init.c:49:4: error: "PNG_ARM_NEON_FILE undefined: no support for run-time ARM NEON checks"

error "PNG_ARM_NEON_FILE undefined: no support for run-time ARM NEON checks"

^
/Users/bingkang.zhang/iOSProjects/Open3D-Build/Open3D/build/libpng/src/ext_libpng/arm/arm_init.c:86:27: error: implicit declaration of function 'png_have_neon' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
no_neon = !png_have_neon(pp);
^
2 errors generated.
make[5]: *** [CMakeFiles/png_static.dir/arm/arm_init.c.o] Error 1
make[4]: *** [CMakeFiles/png_static.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [libpng/src/ext_libpng-stamp/ext_libpng-build] Error 2
make[1]: *** [CMakeFiles/ext_libpng.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 34%] Built target glfw
CMake Error at CMakeLists.txt:374 (MESSAGE):
Using Embree as static library is not supported with AppleClang >= 9.0 when
multiple ISAs are selected. Please either build a shared library or enable
only one ISA.

-- Configuring incomplete, errors occurred!
See also "/Users/bingkang.zhang/iOSProjects/Open3D-Build/Open3D/build/embree/src/ext_embree-build/CMakeFiles/CMakeOutput.log".
See also "/Users/bingkang.zhang/iOSProjects/Open3D-Build/Open3D/build/embree/src/ext_embree-build/CMakeFiles/CMakeError.log".
make[2]: *** [embree/src/ext_embree-stamp/ext_embree-configure] Error 1
make[1]: *** [CMakeFiles/ext_embree.dir/all] Error 2
make: *** [all] Error 2

what can i do now to complete the build?

jsoncpp conflicts?

Hi, I use this repo as a start project,
when I wrote in .cpp

#include <json/json.h>

I got

fatal error: json/json.h: No such file or directory

if I install jsoncpp via vcpkg, and add

target_link_libraries(Draw PRIVATE
    jsoncpp_object
    jsoncpp_static
    Open3D::Open3D
    )

then I got many multiple definition link errors like:

multiple definition of `Json::StreamWriterBuilder::validate(Json::Value*) const'; /home/hong/devs/vcpkg/installed/x64-linux/debug/lib/objects-Debug/jsoncpp_object/json_writer.cpp.o:/home/hong/devs/vcpkg/buildtrees/jsoncpp/src/3918c327b1-034a82149a.clean/src/lib_json/json_writer.cpp:1204: first defined here
collect2: error: ld returned 1 exit status

I looked Open3D code, seems jsoncpp lib is not installed as 3rdparty lib when make install?
any suggestions or work around?
Thanks

Dockerfile for this tutorial

This is the dockerfile example of how to build the open3d
install_deps_ubuntu.sh

#!/usr/bin/env bash
# Install Open3D build dependencies from Ubuntu repositories
# CUDA (v10.1) and CUDNN (v7.6.5) are optional dependencies and are not
# installed here
# Use: install_deps_ubuntu.sh [ assume-yes ]

set -ev

SUDO=${SUDO:=sudo} # SUDO=command in docker (running as root, sudo not available)
if [ "$1" == "assume-yes" ]; then
    APT_CONFIRM="--assume-yes"
else
    APT_CONFIRM=""
fi

dependencies=(
    # Open3D deps
    xorg-dev
    libglu1-mesa-dev
    python3-dev
    # Filament build-from-source deps
    libsdl2-dev
    libc++-7-dev
    libc++abi-7-dev
    ninja-build
    libxi-dev
    # ML deps
    libtbb-dev
    # Headless rendering deps
    libosmesa6-dev
    # RealSense deps
    libudev-dev
    autoconf
    libtool
)
export DEBIAN_FRONTEND="noninteractive"
apt-get update
for package in "${dependencies[@]}"; do
    apt-get install "$APT_CONFIRM" "$package"
done

Dockerfile

FROM ubuntu:20.04

# nvidia-container-runtime
ENV NVIDIA_VISIBLE_DEVICES ${NVIDIA_VISIBLE_DEVICES:-all}
ENV NVIDIA_DRIVER_CAPABILITIES ${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics

# install GLX-Gears
RUN apt-get update && apt-get install -y --no-install-recommends mesa-utils x11-apps && rm -rf /var/lib/apt/lists/*

# install useful tool
RUN apt-get update && apt-get install -y git vim 

# COPY Open3D /home/Open3D
COPY install_deps_ubuntu.sh /home/install_deps_ubuntu.sh

RUN bash /home/install_deps_ubuntu.sh assume-yes

RUN apt-get install -y python3-pip
RUN pip3 install cmake --upgrade

RUN cd /home && git clone --recursive https://github.com/intel-isl/Open3D.git
WORKDIR /home/Open3D
RUN mkdir build && \
    cd build && \
    cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=${HOME}/open3d_install .. && \
    cmake --build . --config Release --parallel 12 --target install

WORKDIR /home

Build fails due to CUDA error

Hi!

I face a problem with building this project if the source code includes CUDA related operation.
The code example is the following:

`int main(int argc, char* argv[]) {
using namespace open3d;

if (argc < 4 ||
    utility::ProgramOptionExistsAny(argc, argv, {"-h", "--help"})) {
    PrintHelp();
    return 1;
}

// Color and depth
std::string color_folder = std::string(argv[1]);
std::string depth_folder = std::string(argv[2]);

std::vector<std::string> color_filenames;
utility::filesystem::ListFilesInDirectory(color_folder, color_filenames);
std::sort(color_filenames.begin(), color_filenames.end());

std::vector<std::string> depth_filenames;
utility::filesystem::ListFilesInDirectory(depth_folder, depth_filenames);
std::sort(depth_filenames.begin(), depth_filenames.end());

if (color_filenames.size() != depth_filenames.size()) {
    utility::LogError(
            "The numbers of color and depth files mismatch. "
            "Please provide folders with same number of images.");
}

// Trajectory
std::string trajectory_path = std::string(argv[3]);
auto trajectory =
        io::CreatePinholeCameraTrajectoryFromFile(trajectory_path);

// Intrinsics
std::string intrinsic_path = utility::GetProgramOptionAsString(
        argc, argv, "--intrinsic_path", "");
camera::PinholeCameraIntrinsic intrinsic = camera::PinholeCameraIntrinsic(
        camera::PinholeCameraIntrinsicParameters::PrimeSenseDefault);
if (intrinsic_path.empty()) {
    utility::LogWarning("Using default Primesense intrinsics");
} else if (!io::ReadIJsonConvertible(intrinsic_path, intrinsic)) {
    utility::LogError("Unable to convert json to intrinsics.");
}

auto focal_length = intrinsic.GetFocalLength();
auto principal_point = intrinsic.GetPrincipalPoint();
Tensor intrinsic_t = Tensor::Init<double>(
        {{focal_length.first, 0, principal_point.first},
         {0, focal_length.second, principal_point.second},
         {0, 0, 1}});`

The following log is part of the error output:

/usr/bin/ld: /usr/local/cuda-11.6/lib64/libcublasLt_static.a(cublasMempoolNoEvents.cpp.o): in function cublasDynamicSizePoolNoEvents::tearDown()': cublasMempoolNoEvents.cpp:(.text+0x92a): undefined reference to cudaDeviceSynchronize'
/usr/bin/ld: cublasMempoolNoEvents.cpp:(.text+0x964): undefined reference to cudaFree' /usr/bin/ld: cublasMempoolNoEvents.cpp:(.text+0x9d7): undefined reference to cudaFree'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/Draw.dir/build.make:185: Draw] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/Draw.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

If I comment out the tensor part it compiles.
Do I need to link somehow CUDA libraries in the CMakeLists.txt file?

Thanks

Build Failed: Cannot find libc++ and libc++abi

Thanks for sharing this tutorial.
I have downloaded pre-installed Open3D git and use the given cmake command ``cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=${HOME}/open3d_install .. to install, but I got this:

-- Searching in for libc++ and libc++abi
-- Searching /usr/lib/llvm-15/lib for libc++ and libc++abi
-- Searching /usr/lib/llvm-14/lib for libc++ and libc++abi
-- Searching /usr/lib/llvm-13/lib for libc++ and libc++abi
-- Searching /usr/lib/llvm-12/lib for libc++ and libc++abi
-- Searching /usr/lib/llvm-11/lib for libc++ and libc++abi
-- Searching /usr/lib/llvm-10/lib for libc++ and libc++abi
-- Searching /usr/lib/llvm-9/lib for libc++ and libc++abi
-- Searching /usr/lib/llvm-8/lib for libc++ and libc++abi
-- Searching /usr/lib/llvm-7/lib for libc++ and libc++abi
CMake Error at 3rdparty/find_dependencies.cmake:1317 (message):
  Cannot find matching libc++ and libc++abi libraries with version >=7.
Call Stack (most recent call first):
  CMakeLists.txt:486 (include)

However, I checked this path with ls /usr/lib/llvm-13/lib | grep -i libc++ and got libc++ and libc++abi at this path.
Output:

libc++.a
libc++abi.so.1
libc++abi.so.1.0
libc++experimental.a
libc++.so
libc++.so.1
libc++.so.1.0

I appreciate for your reply.

Building Open3D in Visual studio 17 2022 does not work

Repro Steps:
git clone --recursive https://github.com/isl-org/Open3D
cd Open3D
mkdir build
cd build
make -G "Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX="C:\Users\james\Documents\GitHub\Open3D" ..
Open Open3D.sln in Visual Studio
Build ALL_BUILD target in Release configuration

Results:
The entire console output is too long, but starting from the first error...

76>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
65>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
76>Done building project "RegistrationFGR.vcxproj" -- FAILED.
77>------ Build started: Project: RegistrationColoredICP, Configuration: Release x64 ------
65>Done building project "ViewGeometry.vcxproj" -- FAILED.
78>------ Build started: Project: RGBDOdometry, Configuration: Release x64 ------
61>renderoption.cpp
66>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
67>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
66>Done building project "ViewDistances.vcxproj" -- FAILED.
67>Done building project "TrimMeshBasedOnPointCloud.vcxproj" -- FAILED.
79>------ Build started: Project: ProgramOptions, Configuration: Release x64 ------
80>------ Build started: Project: PoseGraph, Configuration: Release x64 ------
73>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
73>Done building project "SLACIntegrate.vcxproj" -- FAILED.
81>------ Build started: Project: PointCloud, Configuration: Release x64 ------
69>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
61>viewcontrol.cpp
69>Done building project "TOdometryRGBD.vcxproj" -- FAILED.
82>------ Build started: Project: PCDFileFormat, Configuration: Release x64 ------
61>visualization.cpp
70>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
61>visualizer.cpp
70>Done building project "TIntegrateRGBD.vcxproj" -- FAILED.
83>------ Build started: Project: OpenMP, Configuration: Release x64 ------
62>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
62>Done building project "Voxelization.vcxproj" -- FAILED.
84>------ Build started: Project: Open3DViewer, Configuration: Release x64 ------
61>material.cpp
75>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
75>Done building project "RegistrationRANSAC.vcxproj" -- FAILED.
61>o3dvisualizer.cpp
85>------ Build started: Project: OffscreenRendering, Configuration: Release x64 ------
72>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
61>viewer.cpp
72>Done building project "TICPOdometry.vcxproj" -- FAILED.
86>------ Build started: Project: OdometryRGBD, Configuration: Release x64 ------
61>events.cpp
68>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
61>gui.cpp
68>Done building project "TriangleMesh.vcxproj" -- FAILED.
87>------ Build started: Project: Octree, Configuration: Release x64 ------
61>rendering.cpp
71>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
71>Done building project "TICPReconstruction.vcxproj" -- FAILED.
88>------ Build started: Project: MultipleWindows, Configuration: Release x64 ------
63>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
63>Done building project "Visualizer.vcxproj" -- FAILED.
89>------ Build started: Project: MergeMesh, Configuration: Release x64 ------
74>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
74>Done building project "SLAC.vcxproj" -- FAILED.
90>------ Build started: Project: ManuallyCropGeometry, Configuration: Release x64 ------
64>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
64>Done building project "ViewPCDMatch.vcxproj" -- FAILED.
91>------ Build started: Project: ManuallyAlignPointCloud, Configuration: Release x64 ------
61>webrtc_window_system.cpp
61>docstring.cpp
61>open3d_pybind.cpp
61>pybind_utils.cpp
90>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/cpp/tools/CMakeLists.txt
89>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/cpp/tools/CMakeLists.txt
90>ManuallyCropGeometry.cpp
89>MergeMesh.cpp
90>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
90>Done building project "ManuallyCropGeometry.vcxproj" -- FAILED.
92>------ Build started: Project: Log, Configuration: Release x64 ------
91>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/cpp/tools/ManuallyAlignPointCloud/CMakeLists.txt
89>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
89>Done building project "MergeMesh.vcxproj" -- FAILED.
93>------ Build started: Project: LineSet, Configuration: Release x64 ------
91>ManuallyAlignPointCloud.cpp
92>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
92>Log.cpp
91>AlignmentSession.cpp
92>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
92>Done building project "Log.vcxproj" -- FAILED.
94>------ Build started: Project: IntegrateRGBD, Configuration: Release x64 ------
85>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
88>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
87>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
79>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
83>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
77>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
81>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
80>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
82>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
78>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
93>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
86>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
94>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
84>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/cpp/apps/CMakeLists.txt
85>OffscreenRendering.cpp
88>MultipleWindows.cpp
87>Octree.cpp
81>PointCloud.cpp
83>OpenMP.cpp
82>PCDFileFormat.cpp
78>RGBDOdometry.cpp
79>ProgramOptions.cpp
80>PoseGraph.cpp
93>LineSet.cpp
86>OdometryRGBD.cpp
77>RegistrationColoredICP.cpp
84>Open3DViewer.cpp
94>IntegrateRGBD.cpp
61>geometry.cpp
91>VisualizerForAlignment.cpp
85>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
84>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
85>Done building project "OffscreenRendering.vcxproj" -- FAILED.
95>------ Build started: Project: Image, Configuration: Release x64 ------
84>Done building project "Open3DViewer.vcxproj" -- FAILED.
61>image.cpp
96>------ Build started: Project: ISSKeypoints, Configuration: Release x64 ------
79>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
79>Done building project "ProgramOptions.vcxproj" -- FAILED.
97>------ Build started: Project: GeneralizedICP, Configuration: Release x64 ------
95>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
96>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
82>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
97>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
82>Done building project "PCDFileFormat.vcxproj" -- FAILED.
98>------ Build started: Project: GLInfo, Configuration: Release x64 ------
97>GeneralizedICP.cpp
80>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
77>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
98>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/cpp/tools/CMakeLists.txt
87>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
95>Image.cpp
96>ISSKeypoints.cpp
78>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
80>Done building project "PoseGraph.vcxproj" -- FAILED.
99>------ Build started: Project: Flann, Configuration: Release x64 ------
88>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
78>Done building project "RGBDOdometry.vcxproj" -- FAILED.
77>Done building project "RegistrationColoredICP.vcxproj" -- FAILED.
100>------ Build started: Project: FileSystem, Configuration: Release x64 ------
87>Done building project "Octree.vcxproj" -- FAILED.
88>Done building project "MultipleWindows.vcxproj" -- FAILED.
101>------ Build started: Project: FileDialog, Configuration: Release x64 ------
102>------ Build started: Project: EvaluatePCDMatch, Configuration: Release x64 ------
103>------ Build started: Project: DrawWebRTC, Configuration: Release x64 ------
98>GLInfo.cpp
94>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
94>Done building project "IntegrateRGBD.vcxproj" -- FAILED.
104>------ Build started: Project: Draw, Configuration: Release x64 ------
86>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
86>Done building project "OdometryRGBD.vcxproj" -- FAILED.
105>------ Build started: Project: DepthCapture, Configuration: Release x64 ------
101>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
100>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
102>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
103>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
99>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
104>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
105>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
102>EvaluatePCDMatch.cpp
101>FileDialog.cpp
103>DrawWebRTC.cpp
104>Draw.cpp
100>FileSystem.cpp
105>DepthCapture.cpp
93>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
93>Done building project "LineSet.vcxproj" -- FAILED.
106>------ Build started: Project: DenseSLAMGUI, Configuration: Release x64 ------
106>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
99>Flann.cpp
106>DenseSLAMGUI.cpp
81>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
81>Done building project "PointCloud.vcxproj" -- FAILED.
107>------ Build started: Project: DenseSLAM, Configuration: Release x64 ------
107>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
91>Generating Code...
107>DenseSLAM.cpp
61>lineset.cpp
100>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
96>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
91>LINK : fatal error LNK1181: cannot open input file '......\assimp\lib\assimp-vc142-mt.lib'
100>Done building project "FileSystem.vcxproj" -- FAILED.
96>Done building project "ISSKeypoints.vcxproj" -- FAILED.
108>------ Build started: Project: ConvertPointCloud, Configuration: Release x64 ------
98>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
97>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
97>Done building project "GeneralizedICP.vcxproj" -- FAILED.
98>Done building project "GLInfo.vcxproj" -- FAILED.
109>------ Build started: Project: ColorMapOptimization, Configuration: Release x64 ------
91>Done building project "ManuallyAlignPointCloud.vcxproj" -- FAILED.
110>------ Build started: Project: CameraPoseTrajectory, Configuration: Release x64 ------
95>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
95>Done building project "Image.vcxproj" -- FAILED.
103>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
101>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
103>Done building project "DrawWebRTC.vcxproj" -- FAILED.
108>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/cpp/tools/CMakeLists.txt
101>Done building project "FileDialog.vcxproj" -- FAILED.
109>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
110>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/examples/cpp/CMakeLists.txt
108>ConvertPointCloud.cpp
104>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
104>Done building project "Draw.vcxproj" -- FAILED.
109>ColorMapOptimization.cpp
110>CameraPoseTrajectory.cpp
105>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
105>Done building project "DepthCapture.vcxproj" -- FAILED.
102>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
102>Done building project "EvaluatePCDMatch.vcxproj" -- FAILED.
99>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
99>Done building project "Flann.vcxproj" -- FAILED.
83>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
83>Done building project "OpenMP.vcxproj" -- FAILED.
107>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
107>Done building project "DenseSLAM.vcxproj" -- FAILED.
106>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
106>Done building project "DenseSLAMGUI.vcxproj" -- FAILED.
61>pointcloud.cpp
110>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
110>Done building project "CameraPoseTrajectory.vcxproj" -- FAILED.
108>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
108>Done building project "ConvertPointCloud.vcxproj" -- FAILED.
109>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
109>Done building project "ColorMapOptimization.vcxproj" -- FAILED.
61>trianglemesh.cpp
61>class_io.cpp
61>io.cpp
61>pipelines.cpp
61>odometry.cpp
61>registration.cpp
61>geometry.cpp
61>image.cpp
61>lineset.cpp
61>pointcloud.cpp
61>trianglemesh.cpp
61>class_io.cpp
61>io.cpp
61>pipelines.cpp
61>odometry.cpp
61>registration.cpp
61>utility.cpp
61>utility.cpp
61>LINK : fatal error LNK1181: cannot open input file '....\assimp\lib\assimp-vc142-mt.lib'
61>Done building project "pybind.vcxproj" -- FAILED.
111>------ Build started: Project: ALL_BUILD, Configuration: Release x64 ------
111>Building Custom Rule C:/Users/james/Documents/GitHub/Open3D/CMakeLists.txt
========== Build: 61 succeeded, 50 failed, 0 up-to-date, 0 skipped ==========

ExternalProject_Add

Hi,

Do you have an example how to use open3D in CMake with command ExternalProject_Add?

Since downloading and building Open3D is a very long process, I would like to ask this beforehand.
The reason to ask is that I am using other libraries and would like to download and compile them all at once using one CMakeLists.txt .

I am using ExternalProject to download CGAL, Boost, Eigen and Cilantro and link to an executable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.