Open3D
Open3D copied to clipboard
cmake fails with message: Could not find ISPC_ISAS_EXECUTABLE using the following names: ispc_isas
Checklist
- [X] I have searched for similar issues.
- [X] For Python issues, I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
master
branch).
Steps to reproduce the issue
I try to build Open3D on NixOS. I created default.nix with following content:
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
packages = with pkgs; [ cmake python3 ispc ];
}
Then in the nix-shell I followed the steps:
mkdir build
cd build
cmake .. # fails
open3D: commit 0a3f8c1864d5d37eb10f97876f0681ad6d3edaec https://github.com/NixOS/nixpkgs.git: commit e445607380c539936b07e566899e06b169643992
Error message
[nix-shell:~/development/Open3D/build]$ cmake ..
-- Setting build type to Release as none was specified.
-- CMAKE_BUILD_TYPE is set to Release.
-- Downloading 3rdparty dependencies to /home/user/development/Open3D/3rdparty_downloads
CMake Deprecation Warning at CMakeLists.txt:181 (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.
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/61zfi5pmhb0d91422f186x26v7b52y5k-gcc-wrapper-11.3.0/bin/gcc - 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: /nix/store/61zfi5pmhb0d91422f186x26v7b52y5k-gcc-wrapper-11.3.0/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Open3D 0.15.2+0a3f8c18
-- Found Python3: /nix/store/553d7c4xcwp9j1a1gb9cb1s9ry3x1pi9-python3-3.9.13/bin/python3.9 (found suitable version "3.9.13", minimum required is "3.6")
found components: Interpreter Development Development.Module Development.Embed
-- Fetching ISPC compiler
CMake Error at CMakeLists.txt:33 (message):
Unknown ISPC compiler.
make: Makefile: No such file or directory
make: *** No rule to make target 'Makefile'. Stop.
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:415 (open3d_make_ispc_instruction_sets)
-- Configuring incomplete, errors occurred!
See also "/home/user/development/Open3D/build/CMakeFiles/CMakeOutput.log".
Open3D, Python and System information
- Operating system: NixOS (https://github.com/NixOS/nixpkgs.git: commit e445607380c539936b07e566899e06b169643992)
- Python version: Python 3.9.13 (main, May 17 2022, 14:19:07)
- Open3D version: output from python: `print(open3d.__version__)`
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: build from source
- Compiler version (if built from source): gcc (GCC) 11.3.0 / none
Additional information
No response
My system is Ubuntu20.04. I met the same problem when I do cmake cmake ..
. I had resolved this problem. I used cmake .. -DBUILD_ISPC_MODULE=OFF
to make sure the compilation of ispc is turned off.
My system is Ubuntu20.04. I met the same problem when I do cmake
cmake ..
. I had resolved this problem. I usedcmake .. -DBUILD_ISPC_MODULE=OFF
to make sure the compilation of ispc is turned off.
Thanks! It helps a lot.