Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

Execution (cmake ..) error

Open Seealso opened this issue 6 years ago • 4 comments

Looking for a ASM_NASM compiler failed with the following output: -- The ASM_NASM compiler identification is unknown -- Didn't find assembler CMake Error at CMakeLists.txt:2 (project): No CMAKE_ASM_NASM_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment variable "ASM_NASM" or the CMake cache entry CMAKE_ASM_NASM_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred! See also "/root/logs/Open3D-master/build/3rdparty/CMakeFiles/CheckASM_NASM/CMakeFiles/CMakeOutput.log". See also "/root/logs/Open3D-master/build/3rdparty/CMakeFiles/CheckASM_NASM/CMakeFiles/CMakeError.log"

-- No CMAKE_BUILD_TYPE specified, default to Debug -- Open3D 0.9.0.0 -- Compiling on Unix -- Disable RealSense since it is not fully supported on Linux. -- Using installed OpenMP -- Using system dirent -- Building EIGEN3 from source (BUILD_EIGEN3=ON) -- Using open3d's flann -- Flann includes /root/logs/Open3D-master/3rdparty/flann;/root/logs/Open3D-master/3rdparty/flann/flann;/root/logs/Open3D-master/3rdparty/flann/flann/algorithms;/root/logs/Open3D-master/3rdparty/flann/flann/nn;/root/logs/Open3D-master/3rdparty/flann/flann/util -- Using installed GLEW 1.13.0 -- Using installed GLFW 3.1.2 -- Building JSONCPP from source -- Using installed LIBPNG 1.6.20 -- Building libjpeg-turbo from source (BUILD_JPEG=ON) -- Building libjpeg-turbo from source -- NASM assembler not found - libjpeg-turbo performance may suffer -- libturbojpeg: WITH_CRT_DLL=ON -- Building PYBIND11 from source (BUILD_PYBIND11=ON) -- Building TINYFILEDIALOGS from source -- Building tinyobjloader from source -- Building QHULL from source -- Using Python executable: /root/miniconda3/bin/python -- ENABLE_JUPYTER is set to OFF -- Using Python version: 3.6 -- Using Python version major: 3 -- Configuring incomplete, errors occurred! See also "/root/logs/Open3D-master/build/CMakeFiles/CMakeOutput.log". See also "/root/logs/Open3D-master/build/CMakeFiles/CMakeError.log".

Seealso avatar Apr 23 '20 12:04 Seealso

refer https://forum.open3d.org/t/shows-error-on-cmake-installation-osmesa/37

g2ragrawal avatar Apr 23 '20 12:04 g2ragrawal

@g2ragrawal

I updated a docker environment or travel problem

Code is the latest master

Ubuntu 16.04.6

The following is the log. What caused the failure, how do I solve it, thank you very much

refer https://forum.open3d.org/t/shows-error-on-cmake-installation-osmesa/37 Did not solve my problem
root@gpu-1:/yzpacs/log/log1/Open3D/build# cmake ..
-- No CMAKE_BUILD_TYPE specified, default to Debug
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Open3D 0.9.0.0
-- Compiling on Unix
-- Disable RealSense since it is not fully supported on Linux.
-- Using installed OpenMP
-- Using system dirent
-- Building EIGEN3 from source (BUILD_EIGEN3=ON)
-- Using open3d's flann
-- Flann includes /yzpacs/log/log1/Open3D/3rdparty/flann;/yzpacs/log/log1/Open3D/3rdparty/flann/flann;/yzpacs/log/log1/Open3D/3rdparty/flann/flann/algorithms;/yzpacs/log/log1/Open3D/3rdparty/flann/flann/nn;/yzpacs/log/log1/Open3D/3rdparty/flann/flann/util
-- Using installed GLEW 1.13.0
-- Using installed GLFW 3.1.2
-- Building JSONCPP from source
-- Using installed LIBPNG 1.6.20
-- Building libjpeg-turbo from source (BUILD_JPEG=ON)
-- Building libjpeg-turbo 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=ON
CMake Error at /usr/share/cmake-3.5/Modules/ExternalProject.cmake:1915 (message):
  No download info given for 'ext_turbojpeg' and its source directory:

   /yzpacs/log/log1/Open3D/3rdparty/libjpeg-turbo/libjpeg-turbo

  is not an existing non-empty directory.  Please specify one of:

   * SOURCE_DIR with an existing non-empty directory
   * URL
   * GIT_REPOSITORY
   * HG_REPOSITORY
   * CVS_REPOSITORY and CVS_MODULE
   * SVN_REVISION
   * DOWNLOAD_COMMAND
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/ExternalProject.cmake:2459 (_ep_add_download_command)
  3rdparty/libjpeg-turbo/libjpeg-turbo.cmake:52 (ExternalProject_Add)
  3rdparty/CMakeLists.txt:161 (include)


-- Building PYBIND11 from source (BUILD_PYBIND11=ON)
CMake Error at 3rdparty/CMakeLists.txt:178 (add_subdirectory):
  The source directory

    /yzpacs/log/log1/Open3D/3rdparty/pybind11

  does not contain a CMakeLists.txt file.


-- Building TINYFILEDIALOGS from source
-- Building tinyobjloader from source
-- Building QHULL from source
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- Using Python executable: /usr/bin/python
CMake Warning at src/Python/CMakeLists.txt:19 (message):
  Cannot find npm.  Jupyter support will be disabled.


-- ENABLE_JUPYTER is set to OFF
-- Using Python version: 2.7
-- Using Python version major: 2
CMake Error at src/Python/CMakeLists.txt:51 (pybind11_add_module):
  Unknown CMake command "pybind11_add_module".


-- Configuring incomplete, errors occurred!
See also "/yzpacs/log/log1/Open3D/build/CMakeFiles/CMakeOutput.log".
See also "/yzpacs/log/log1/Open3D/build/CMakeFiles/CMakeError.log".

CMakeOutput.log

The system is: Linux - 4.4.0-21-generic - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/cc
Build flags:
Id flags:

The output was:
0


Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"

The C compiler identification is GNU, found in "/yzpacs/log/log1/Open3D/build/CMakeFiles/3.5.1/CompilerIdC/a.out"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/bin/c++
Build flags:
Id flags:

The output was:
0


Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is GNU, found in "/yzpacs/log/log1/Open3D/build/CMakeFiles/3.5.1/CompilerIdCXX/a.out"

Determining if the C compiler works passed with the following output:
Change Dir: /yzpacs/log/log1/Open3D/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_704ee/fast"
/usr/bin/make -f CMakeFiles/cmTC_704ee.dir/build.make CMakeFiles/cmTC_704ee.dir/build
make[1]: Entering directory '/yzpacs/log/log1/Open3D/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_704ee.dir/testCCompiler.c.o
/usr/bin/cc     -o CMakeFiles/cmTC_704ee.dir/testCCompiler.c.o   -c /yzpacs/log/log1/Open3D/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_704ee
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_704ee.dir/link.txt --verbose=1
/usr/bin/cc       CMakeFiles/cmTC_704ee.dir/testCCompiler.c.o  -o cmTC_704ee -rdynamic
make[1]: Leaving directory '/yzpacs/log/log1/Open3D/build/CMakeFiles/CMakeTmp'


Detecting C compiler ABI info compiled with the following output:
Change Dir: /yzpacs/log/log1/Open3D/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_c82f0/fast"
/usr/bin/make -f CMakeFiles/cmTC_c82f0.dir/build.make CMakeFiles/cmTC_c82f0.dir/build
make[1]: Entering directory '/yzpacs/log/log1/Open3D/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c82f0.dir/CMakeCCompilerABI.c.o
/usr/bin/cc     -o CMakeFiles/cmTC_c82f0.dir/CMakeCCompilerABI.c.o   -c /usr/share/cmake-3.5/Modules/CMakeCCompilerABI.c
Linking C executable cmTC_c82f0
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c82f0.dir/link.txt --verbose=1
"/yzpacs/log/log1/Open3D/build/CMakeFiles/CMakeOutput.log" 602 lines, 42896 characters

CMakeError.log

Looking for a ASM_NASM compiler failed with the following output:
-- The ASM_NASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_ASM_NASM_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM_NASM" or the CMake cache entry CMAKE_ASM_NASM_COMPILER to the
  full path to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/yzpacs/log/log1/Open3D/build/3rdparty/CMakeFiles/CheckASM_NASM/CMakeFiles/CMakeOutput.log".
See also "/yzpacs/log/log1/Open3D/build/3rdparty/CMakeFiles/CheckASM_NASM/CMakeFiles/CMakeError.log".

Seealso avatar Apr 24 '20 02:04 Seealso

From the error message

-- Building PYBIND11 from source (BUILD_PYBIND11=ON)
CMake Error at 3rdparty/CMakeLists.txt:178 (add_subdirectory):
  The source directory

    /yzpacs/log/log1/Open3D/3rdparty/pybind11

  does not contain a CMakeLists.txt file.

looks like the submodule is not cloned.

Did you do

git clone --recursive 

or, after it is cloned, you may update the submodule using

git submodule update --init --recursive

yxlao avatar May 08 '20 13:05 yxlao

In case someone still gets the message "No CMAKE_ASM_NASM_COMPILER could be found", I downloaded the NASM assembler in Windows and added an environment variable ASM_NASM with value C:\Program Files\NASM\nasm.exe which is the default installation path for NASM. That resolved the issue for me as WITH_SIMD is ON, libjpeg-turbo will requires NASM or Yasm (follow this url for more info https://github.com/libjpeg-turbo/libjpeg-turbo/blob/3.0.0/BUILDING.md)

HanaaFariz avatar Sep 19 '23 06:09 HanaaFariz