Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot configure CMake on Windows 11 with Ninja generator. #5378

Closed
3 tasks done
hwhsu1231 opened this issue Jul 29, 2022 · 3 comments · Fixed by #6577
Closed
3 tasks done

Cannot configure CMake on Windows 11 with Ninja generator. #5378

hwhsu1231 opened this issue Jul 29, 2022 · 3 comments · Fixed by #6577
Labels
build/install Build or installation issue windows

Comments

@hwhsu1231
Copy link

hwhsu1231 commented Jul 29, 2022

Checklist

Steps to reproduce the issue

Click to expand
  1. Download and unzip the source code.

    open3d-0.15.1.zip

  2. Open Windows Terminal (cmd.exe) and change to the project folder.

    cd open3d-0.15.1
    
  3. Create the build folder and change into it.

    md build-msvc16-x64
    cd build-msvc16-x64
    
  4. call vcvarsall.bat x64 to preload the MSVC environment.

    vcvarsall x64
    
  5. Configure the project with the generator Ninja Multi-Config or Ninja.

    cmake .. -GNinja
    

Error message

Click to expand
C:\ccxxpkgs\source\open3d-0.15.1>md build-msvc16-x64

C:\ccxxpkgs\source\open3d-0.15.1>cd build-msvc16-x64

C:\ccxxpkgs\source\open3d-0.15.1\build-msvc16-x64>vcvarsall x64
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.11.16
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

C:\ccxxpkgs\source\open3d-0.15.1\build-msvc16-x64>cmake .. -GNinja
-- Setting build type to Release as none was specified.
-- CMAKE_BUILD_TYPE is set to Release.
-- Downloading 3rdparty dependencies to C:/ccxxpkgs/source/open3d-0.15.1/3rdparty_downloads
CMake Deprecation Warning at CMakeLists.txt:170 (cmake_policy):
  The OLD behavior for policy CMP0072 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


fatal: not a git repository (or any of the parent directories): .git
-- The C compiler identification is MSVC 19.29.30145.0
-- The CXX compiler identification is MSVC 19.29.30145.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Open3D 0.15.1
-- Found Python3: C:/Python/Python3/python3.exe (found suitable version "3.9.2", minimum required is "3.6") found components: Interpreter Development Development.Module Development.Embed
-- Performing Test FLAG_sdl
-- Performing Test FLAG_sdl - Success
-- Performing Test FLAG_GS
-- Performing Test FLAG_GS - Success
-- Performing Test FLAG_guard_cf
-- Performing Test FLAG_guard_cf - Success
-- Performing Test FLAG_INCREMENTAL_NO
-- Performing Test FLAG_INCREMENTAL_NO - Success
-- Performing Test FLAG_NXCOMPAT
-- Performing Test FLAG_NXCOMPAT - Success
-- Performing Test FLAG_DYNAMICBASE
-- Performing Test FLAG_DYNAMICBASE - Success
-- Performing Test FLAG_HIGHENTROPYVA
-- Performing Test FLAG_HIGHENTROPYVA - Success
-- Using security hardening compiler flags: $<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=/sdl,/GS,/guard:cf>;$<$<COMPILE_LANGUAGE:CXX>:/sdl;/GS;/guard:cf>
-- Using security hardening linker flags: $<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=/INCREMENTAL:NO,/NXCOMPAT,/DYNAMICBASE,/HIGHENTROPYVA>;$<$<COMPILE_LANGUAGE:CXX>:/INCREMENTAL:NO;/NXCOMPAT;/DYNAMICBASE;/HIGHENTROPYVA>
-- Using security hardening compiler definitions:
-- Fetching ISPC compiler
CMake Error at C:/ccxxpkgs/source/open3d-0.15.1/cmake/Open3DISPC.cmake:370 (enable_language):
  The CMAKE_ISPC_COMPILER:

    C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/_deps/ext_ispc-src/bin/ispc

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "ISPC" or the CMake cache entry CMAKE_ISPC_COMPILER to the full
  path to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:26 (open3d_ispc_enable_language)


ninja: error: loading 'build.ninja': 系統找不到指定的檔案。

CMake Error at cmake/Open3DMakeISPCInstructionSets.cmake:57 (find_program):
  Could not find ISPC_ISAS_EXECUTABLE using the following names: ispc_isas
Call Stack (most recent call first):
  CMakeLists.txt:393 (open3d_make_ispc_instruction_sets)


-- Configuring incomplete, errors occurred!
See also "C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/CMakeFiles/CMakeOutput.log".

Open3D, Python and System information

- Operating system: Windows 11 64-bit
- Python version: 3.9.2
- Open3D version: 0.15.1
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: build from source
- Compiler version (if built from source): msvc16 (vs2019)

Additional information

However, it worked with the default generator, Visual Studio 16 2019.

Click to expand
C:\ccxxpkgs\source\open3d-0.15.1\build-msvc16-x64>cmake ..
-- Building for: Visual Studio 16 2019
-- Setting build type to Release as none was specified.
-- CMAKE_BUILD_TYPE is set to Release.
-- Downloading 3rdparty dependencies to C:/ccxxpkgs/source/open3d-0.15.1/3rdparty_downloads
CMake Deprecation Warning at CMakeLists.txt:170 (cmake_policy):
  The OLD behavior for policy CMP0072 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


fatal: not a git repository (or any of the parent directories): .git
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
-- The C compiler identification is MSVC 19.29.30145.0
-- The CXX compiler identification is MSVC 19.29.30145.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Open3D 0.15.1
-- Found Python3: C:/Python/Python3/python3.exe (found suitable version "3.9.2", minimum required is "3.6") found components: Interpreter Development Development.Module Development.Embed
-- Performing Test FLAG_sdl
-- Performing Test FLAG_sdl - Success
-- Performing Test FLAG_GS
-- Performing Test FLAG_GS - Success
-- Performing Test FLAG_guard_cf
-- Performing Test FLAG_guard_cf - Success
-- Performing Test FLAG_INCREMENTAL_NO
-- Performing Test FLAG_INCREMENTAL_NO - Success
-- Performing Test FLAG_NXCOMPAT
-- Performing Test FLAG_NXCOMPAT - Success
-- Performing Test FLAG_DYNAMICBASE
-- Performing Test FLAG_DYNAMICBASE - Success
-- Performing Test FLAG_HIGHENTROPYVA
-- Performing Test FLAG_HIGHENTROPYVA - Success
-- Using security hardening compiler flags: $<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=/sdl,/GS,/guard:cf>;$<$<COMPILE_LANGUAGE:CXX>:/sdl;/GS;/guard:cf>
-- Using security hardening linker flags: $<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=/INCREMENTAL:NO,/NXCOMPAT,/DYNAMICBASE,/HIGHENTROPYVA>;$<$<COMPILE_LANGUAGE:CXX>:/INCREMENTAL:NO;/NXCOMPAT;/DYNAMICBASE;/HIGHENTROPYVA>
-- Using security hardening compiler definitions:
-- Fetching ISPC compiler
-- Building with detected instruction sets
-- Using ISPC instruction sets: avx2-i32x8
-- Found ISPC compiler: Intel 1.16.1 (C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/_deps/ext_ispc-src/bin/ispc)
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Using installed third-party library 3rdparty_threads
-- Found OpenMP_C: -openmp (found version "2.0")
-- Found OpenMP_CXX: -openmp (found version "2.0")
-- Found OpenMP: TRUE (found version "2.0")
-- Using installed third-party library 3rdparty_openmp
-- Building with OpenMP
-- Building library 3rdparty_glfw from source
-- Could NOT find Vulkan (missing: VULKAN_LIBRARY VULKAN_INCLUDE_DIR)
-- Using Win32 for window creation
-- Building third-party library JPEG from source
-- Looking for a ASM_NASM compiler
-- Looking for a ASM_NASM compiler - NOTFOUND
-- NASM assembler not found - libjpeg-turbo performance may suffer
-- libturbojpeg: WITH_CRT_DLL=OFF
-- pybind11 v2.6.2
-- Performing Test HAS_MSVC_GL_LTCG
-- Performing Test HAS_MSVC_GL_LTCG - Success
-- Using prebuilt third-party library Filament
-- Filament is located at C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/filament/src/ext_filament
-- Found OpenGL: opengl32
-- Using installed third-party library 3rdparty_opengl
-- Looking for WSAStartup
-- Looking for WSAStartup - found
-- Looking for UuidCreateSequential
-- Looking for UuidCreateSequential - found
-- Looking for GetAdaptersAddresses
-- Looking for GetAdaptersAddresses - found
-- Using MKL to support BLAS and LAPACK functionalities.
-- IPP-ICV 2020.0.0 Gold available. Building interface wrappers IPP-IW.
-- C:/ccxxpkgs/source/open3d-0.15.1/cpp/open3d/core/Indexer.ispc:
C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/_deps/ext_ispc-src/bin/ispc -DBUILD_GUI -DBUILD_ISPC_MODULE -DBUILD_WEBRTC -DFMT_HEADER_ONLY=0 -DFMT_STRING_ALIAS=1 -DFMT_USE_WINDOWS_H=0 -DGLEW_STATIC -DNOMINMAX -DOPEN3D_CUDA_COMPILER_ID="" -DOPEN3D_CUDA_COMPILER_VERSION="" -DOPEN3D_CXX_COMPILER_ID="MSVC" -DOPEN3D_CXX_COMPILER_VERSION="19.29.30145.0" -DOPEN3D_CXX_STANDARD="14" -DOPEN3D_ENABLE_DLL_EXPORTS -DOPEN3D_STATIC -DSTB_IMAGE_IMPLEMENTATION -DSTB_IMAGE_WRITE_IMPLEMENTATION -DTINYGLTF_IMPLEMENTATION -DTINYOBJLOADER_IMPLEMENTATION -DWINDOWS -DWITH_IPPICV -DZMQ_STATIC -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_GLIBCXX_USE_CXX11_ABI=1 -D_SCL_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -D__TBB_LIB_NAME=tbb_static -IC:/ccxxpkgs/source/open3d-0.15.1/cpp -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/cpp/open3d/core/CMakeFiles/core.dir -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/assimp/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/dirent -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/nanoflann/src/ext_nanoflann/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/turbojpeg/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/jsoncpp/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/liblzf -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/tomasakeninemoeller/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/curl/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/boringssl/src/ext_boringssl/$<IF:$<CONFIG:Debug>,Debug,Release>/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/libpng/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/rply/rply -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/tinyfiledialogs/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/tinygltf/src/ext_tinygltf -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/tinyobjloader/src/ext_tinyobjloader -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/qhull/src/ext_qhull/src -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/poisson/src/ext_poisson -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/imgui/src/ext_imgui -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/zeromq/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/zeromq/src/ext_cppzmq -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/msgpack-c/src/ext_msgpack-c/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/mkl_install/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/ippicv/include/icv -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/ippicv/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/embree/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/embree/src/ext_embree -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include/third_party/abseil-cpp -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include/third_party/jsoncpp/source/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include/third_party/jsoncpp/generated -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include/third_party/libyuv/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/civetweb/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/eigen/src/ext_eigen -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/parallelstl/src/ext_parallelstl/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/glew/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/glfw/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/fmt/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/filament/src/ext_filament/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/zlib/include -O2 -g -DNDEBUG --target=avx2-i32x8 --werror --addressing=64 --arch=x86-64 -o C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/cpp/open3d/core/CMakeFiles/core.dir/Indexer.ispc.obj --emit-obj C:/ccxxpkgs/source/open3d-0.15.1/cpp/open3d/core/Indexer.ispc -h C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/cpp/open3d/core/CMakeFiles/core.dir/Indexer_ispc.h
-- C:/ccxxpkgs/source/open3d-0.15.1/cpp/open3d/core/kernel/BinaryEWCPU.ispc:
C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/_deps/ext_ispc-src/bin/ispc -DBUILD_GUI -DBUILD_ISPC_MODULE -DBUILD_WEBRTC -DFMT_HEADER_ONLY=0 -DFMT_STRING_ALIAS=1 -DFMT_USE_WINDOWS_H=0 -DGLEW_STATIC -DNOMINMAX -DOPEN3D_CUDA_COMPILER_ID="" -DOPEN3D_CUDA_COMPILER_VERSION="" -DOPEN3D_CXX_COMPILER_ID="MSVC" -DOPEN3D_CXX_COMPILER_VERSION="19.29.30145.0" -DOPEN3D_CXX_STANDARD="14" -DOPEN3D_ENABLE_DLL_EXPORTS -DOPEN3D_STATIC -DSTB_IMAGE_IMPLEMENTATION -DSTB_IMAGE_WRITE_IMPLEMENTATION -DTINYGLTF_IMPLEMENTATION -DTINYOBJLOADER_IMPLEMENTATION -DWINDOWS -DWITH_IPPICV -DZMQ_STATIC -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_GLIBCXX_USE_CXX11_ABI=1 -D_SCL_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -D__TBB_LIB_NAME=tbb_static -IC:/ccxxpkgs/source/open3d-0.15.1/cpp -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/cpp/open3d/core/CMakeFiles/core.dir -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/assimp/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/dirent -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/nanoflann/src/ext_nanoflann/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/turbojpeg/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/jsoncpp/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/liblzf -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/tomasakeninemoeller/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/curl/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/boringssl/src/ext_boringssl/$<IF:$<CONFIG:Debug>,Debug,Release>/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/libpng/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/rply/rply -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/tinyfiledialogs/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/tinygltf/src/ext_tinygltf -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/tinyobjloader/src/ext_tinyobjloader -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/qhull/src/ext_qhull/src -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/poisson/src/ext_poisson -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/imgui/src/ext_imgui -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/zeromq/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/zeromq/src/ext_cppzmq -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/msgpack-c/src/ext_msgpack-c/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/mkl_install/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/ippicv/include/icv -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/ippicv/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/embree/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/embree/src/ext_embree -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include/third_party/abseil-cpp -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include/third_party/jsoncpp/source/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include/third_party/jsoncpp/generated -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include/third_party/libyuv/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/civetweb/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/eigen/src/ext_eigen -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/parallelstl/src/ext_parallelstl/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/glew/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/glfw/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/fmt/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/filament/src/ext_filament/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/zlib/include -O2 -g -DNDEBUG --target=avx2-i32x8 --werror --addressing=64 --arch=x86-64 -o C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/cpp/open3d/core/CMakeFiles/core.dir/kernel/BinaryEWCPU.ispc.obj --emit-obj C:/ccxxpkgs/source/open3d-0.15.1/cpp/open3d/core/kernel/BinaryEWCPU.ispc -h C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/cpp/open3d/core/CMakeFiles/core.dir/BinaryEWCPU_ispc.h
-- C:/ccxxpkgs/source/open3d-0.15.1/cpp/open3d/core/kernel/UnaryEWCPU.ispc:
C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/_deps/ext_ispc-src/bin/ispc -DBUILD_GUI -DBUILD_ISPC_MODULE -DBUILD_WEBRTC -DFMT_HEADER_ONLY=0 -DFMT_STRING_ALIAS=1 -DFMT_USE_WINDOWS_H=0 -DGLEW_STATIC -DNOMINMAX -DOPEN3D_CUDA_COMPILER_ID="" -DOPEN3D_CUDA_COMPILER_VERSION="" -DOPEN3D_CXX_COMPILER_ID="MSVC" -DOPEN3D_CXX_COMPILER_VERSION="19.29.30145.0" -DOPEN3D_CXX_STANDARD="14" -DOPEN3D_ENABLE_DLL_EXPORTS -DOPEN3D_STATIC -DSTB_IMAGE_IMPLEMENTATION -DSTB_IMAGE_WRITE_IMPLEMENTATION -DTINYGLTF_IMPLEMENTATION -DTINYOBJLOADER_IMPLEMENTATION -DWINDOWS -DWITH_IPPICV -DZMQ_STATIC -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_GLIBCXX_USE_CXX11_ABI=1 -D_SCL_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -D__TBB_LIB_NAME=tbb_static -IC:/ccxxpkgs/source/open3d-0.15.1/cpp -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/cpp/open3d/core/CMakeFiles/core.dir -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/assimp/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/dirent -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/nanoflann/src/ext_nanoflann/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/turbojpeg/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/jsoncpp/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/liblzf -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/tomasakeninemoeller/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/curl/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/boringssl/src/ext_boringssl/$<IF:$<CONFIG:Debug>,Debug,Release>/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/libpng/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/rply/rply -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/tinyfiledialogs/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/tinygltf/src/ext_tinygltf -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/tinyobjloader/src/ext_tinyobjloader -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/qhull/src/ext_qhull/src -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/poisson/src/ext_poisson -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/imgui/src/ext_imgui -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/zeromq/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/zeromq/src/ext_cppzmq -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/msgpack-c/src/ext_msgpack-c/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/mkl_install/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/ippicv/include/icv -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/ippicv/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/embree/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/embree/src/ext_embree -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include/third_party/abseil-cpp -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include/third_party/jsoncpp/source/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include/third_party/jsoncpp/generated -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include/third_party/libyuv/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/civetweb/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/eigen/src/ext_eigen -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/parallelstl/src/ext_parallelstl/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/glew/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/glfw/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/fmt/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/filament/src/ext_filament/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/zlib/include -O2 -g -DNDEBUG --target=avx2-i32x8 --werror --addressing=64 --arch=x86-64 -o C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/cpp/open3d/core/CMakeFiles/core.dir/kernel/UnaryEWCPU.ispc.obj --emit-obj C:/ccxxpkgs/source/open3d-0.15.1/cpp/open3d/core/kernel/UnaryEWCPU.ispc -h C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/cpp/open3d/core/CMakeFiles/core.dir/UnaryEWCPU_ispc.h
-- C:/ccxxpkgs/source/open3d-0.15.1/cpp/open3d/utility/ISAInfo.ispc:
C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/_deps/ext_ispc-src/bin/ispc -DBUILD_GUI -DBUILD_ISPC_MODULE -DBUILD_WEBRTC -DFMT_HEADER_ONLY=0 -DFMT_STRING_ALIAS=1 -DFMT_USE_WINDOWS_H=0 -DGLEW_STATIC -DNOMINMAX -DOPEN3D_CUDA_COMPILER_ID="" -DOPEN3D_CUDA_COMPILER_VERSION="" -DOPEN3D_CXX_COMPILER_ID="MSVC" -DOPEN3D_CXX_COMPILER_VERSION="19.29.30145.0" -DOPEN3D_CXX_STANDARD="14" -DOPEN3D_ENABLE_DLL_EXPORTS -DOPEN3D_STATIC -DSTB_IMAGE_IMPLEMENTATION -DSTB_IMAGE_WRITE_IMPLEMENTATION -DTINYGLTF_IMPLEMENTATION -DTINYOBJLOADER_IMPLEMENTATION -DWINDOWS -DWITH_IPPICV -DZMQ_STATIC -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_GLIBCXX_USE_CXX11_ABI=1 -D_SCL_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -D__TBB_LIB_NAME=tbb_static -IC:/ccxxpkgs/source/open3d-0.15.1/cpp -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/cpp/open3d/utility/CMakeFiles/utility.dir -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/assimp/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/dirent -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/nanoflann/src/ext_nanoflann/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/turbojpeg/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/jsoncpp/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/liblzf -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/tomasakeninemoeller/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/curl/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/boringssl/src/ext_boringssl/$<IF:$<CONFIG:Debug>,Debug,Release>/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/libpng/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/rply/rply -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/tinyfiledialogs/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/tinygltf/src/ext_tinygltf -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/tinyobjloader/src/ext_tinyobjloader -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/qhull/src/ext_qhull/src -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/poisson/src/ext_poisson -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/imgui/src/ext_imgui -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/zeromq/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/zeromq/src/ext_cppzmq -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/msgpack-c/src/ext_msgpack-c/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/mkl_install/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/ippicv/include/icv -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/ippicv/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/embree/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/embree/src/ext_embree -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include/third_party/abseil-cpp -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include/third_party/jsoncpp/source/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include/third_party/jsoncpp/generated -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/webrtc/src/ext_webrtc/$<IF:$<CONFIG:Debug>,Debug,Release>/include/third_party/libyuv/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/civetweb/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/eigen/src/ext_eigen -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/parallelstl/src/ext_parallelstl/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/glew/include -IC:/ccxxpkgs/source/open3d-0.15.1/3rdparty/glfw/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/fmt/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/filament/src/ext_filament/include -IC:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/zlib/include -O2 -g -DNDEBUG --target=avx2-i32x8 --werror --addressing=64 --arch=x86-64 -o C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/cpp/open3d/utility/CMakeFiles/utility.dir/ISAInfo.ispc.obj --emit-obj C:/ccxxpkgs/source/open3d-0.15.1/cpp/open3d/utility/ISAInfo.ispc -h C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/cpp/open3d/utility/CMakeFiles/utility.dir/ISAInfo_ispc.h
-- Copying C:/ccxxpkgs/source/open3d-0.15.1/cpp/open3d/visualization/webrtc_server/html to C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64/bin/resources.
-- PYPI_PACKAGE_NAME: open3d
-- ================================================================================
-- Open3D 0.15.1 Configuration Summary
-- ================================================================================
-- Enabled Features:
--   OpenMP .................................. ON
--   Headless Rendering ...................... OFF
--   Azure Kinect Support .................... OFF
--   Intel RealSense Support ................. OFF
--   CUDA Support ............................ OFF
--   ISPC Support ............................ ON
--   Build GUI ............................... ON
--   Build WebRTC visualizer ................. ON
--   Build Shared Library .................... OFF
--   Use Windows Static Runtime .............. ON
--   Build Unit Tests ........................ OFF
--   Build Examples .......................... ON
--   Build Python Module ..................... ON
--   Build Jupyter Extension ................. OFF
--   Build TensorFlow Ops .................... OFF
--   Build PyTorch Ops ....................... OFF
--   Build Benchmarks ........................ OFF
--   Bundle Open3D-ML ........................ OFF
--   Force GLIBCXX_USE_CXX11_ABI= ............ 1
-- ================================================================================
-- Third-Party Dependencies:
--   Assimp .................................. yes (build from source)
--   BLAS .................................... yes
--   Eigen3 .................................. yes (build from source)
--   filament ................................ yes (build from source)
--   fmt ..................................... yes (build from source)
--   GLEW .................................... yes (build from source)
--   GLFW .................................... yes (build from source)
--   googletest .............................. no
--   imgui ................................... yes (build from source)
--   ippicv .................................. yes (build from source)
--   JPEG .................................... yes (build from source)
--   jsoncpp ................................. yes (build from source)
--   liblzf .................................. yes (build from source)
--   msgpack ................................. yes (build from source)
--   nanoflann ............................... yes (build from source)
--   OpenGL .................................. yes
--   PNG ..................................... yes (build from source)
--   qhullcpp ................................ yes (build from source)
--   librealsense ............................ no
--   TBB ..................................... yes (build from source)
--   tinyfiledialogs ......................... yes (build from source)
--   TinyGLTF ................................ yes (build from source)
--   tinyobjloader ........................... yes (build from source)
--   WebRTC .................................. yes (build from source)
--   ZeroMQ .................................. yes (build from source)
-- ================================================================================
-- Configuring done
-- Generating done
-- Build files have been written to: C:/ccxxpkgs/source/open3d-0.15.1/build-msvc16-x64
@hwhsu1231 hwhsu1231 added the build/install Build or installation issue label Jul 29, 2022
@khaleepha007
Copy link

Hello, i have been trying configure and build Open3D on windows 11 for Visual Studio 16 2019, But everything i do doesn't seem to work. Please can you provide steps on how you got it to work Visual Studio 2019. Thank you.

@hwhsu1231
Copy link
Author

@khaleepha007

Hello. For using Visual Studio 16 2019 generator, I just need to remove -GNinja in the 5th step. It is because the default generator after initializing the MSVC environment on Windows is Visual Studio generator.

That is,

Click to expand
  1. Download and unzip the source code.

    open3d-0.15.1.zip

  2. Open Windows Terminal (cmd.exe) and change to the project folder.

    cd open3d-0.15.1
    
  3. Create the build folder and change into it.

    md build-msvc16-x64
    cd build-msvc16-x64
    
  4. call vcvarsall.bat x64 to preload the MSVC environment.

    vcvarsall x64
    
  5. Configure the project with the default generator.

    cmake ..
    

@khaleepha007
Copy link

Thank you

AhmedZero added a commit to AhmedZero/Open3D that referenced this issue Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build/install Build or installation issue windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants