zju3dv / Vox-Fusion

Code for "Dense Tracking and Mapping with Voxel-based Neural Implicit Representation", ISMAR 2022
266 stars 24 forks source link

Failed to build `sparse_octree` and `sparse_voxels` on system with `ninja` installed #34

Open TomCC7 opened 1 year ago

TomCC7 commented 1 year ago

The reason is that torch will use ninja to build if it's installed and caused a header path issue. To solve the issue, replacing the line in third_party/sparse_octree/setup.py and third_party/sparse_voxels/setup.py

    cmdclass={
        'build_ext': BuildExtension
    }

with

    cmdclass={
        'build_ext': BuildExtension.with_options(use_ninja=False)
    }