Skip to content

Error building the instant-ngp project #22

@maitreygram

Description

@maitreygram

Hi. I followed your installation process from the readme. I am using windows 10. But got an error when I tried running this command

cmake . -B build

This is the error I got

-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
-- Targeting GPU architectures: 86
-- Module support is disabled.
-- Version: 9.0.0
-- Build type: RelWithDebInfo
-- CXX_STANDARD: 14
-- Required features: cxx_variadic_templates
-- Using Win32 for window creation
CMake Warning at CMakeLists.txt:184 (find_package):
  By not providing "FindOptiX.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "OptiX", but
  CMake did not find one.

  Could not find a package configuration file provided by "OptiX" with any of
  the following names:

    OptiXConfig.cmake
    optix-config.cmake

  Add the installation prefix of "OptiX" to CMAKE_PREFIX_PATH or set
  "OptiX_DIR" to a directory containing one of the above files.  If "OptiX"
  provides a separate development package or SDK, be sure it has been
  installed.


CMake Warning at CMakeLists.txt:194 (message):
  OptiX was not found.  Neural graphics primitives will still compile and run
  correctly.  However, SDF training in 'raystab' and 'pathescape' modes will
  be significantly slower.


CMake Deprecation Warning at dependencies/pybind11/CMakeLists.txt:8 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- pybind11 v2.7.1
CMake Error at dependencies/pybind11/tools/pybind11NewTools.cmake:108 (message):
  pybind11 could not query the module file extension, likely the
  'distutils'package is not installed.  Full error message:

  Traceback (most recent call last):

    File "<string>", line 1, in <module>

  ModuleNotFoundError: No module named 'distutils'

Call Stack (most recent call first):
  dependencies/pybind11/tools/pybind11Common.cmake:200 (include)
  dependencies/pybind11/CMakeLists.txt:191 (include)


-- Configuring incomplete, errors occurred!

Note that I tried building the original instant-ngp project - https://github.com/NVlabs/instant-ngp. I was able to build that without any errors. I was also able to build the original instant-ngp project from the commit you have mentioned in your readme. But I wasn't able to find these files in their build folder - ngp_shared.dll, ngp_shared.pdb

Please recommend what I can try to fix this issue. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions