pierotofy / OpenSplat

Production-grade 3D gaussian splatting with CPU/GPU support for Windows, Mac and Linux 🚀
https://antimatter15.com/splat/?url=https://splat.uav4geo.com/banana.splat
GNU Affero General Public License v3.0
920 stars 87 forks source link

Make failed in Windows no makefile found #120

Open febrifahmi opened 3 months ago

febrifahmi commented 3 months ago

Hi, I tried to build OpenSplat in Windows 11 and during following the documentation, the process failed during make. The CMake version is following the documentation. Here is the complete message:

D:\CODING\opensplat\OpenSplat\build>cmake -DCMAKE_PREFIX_PATH="C:\Users\tkbgp\Downloads\libtorch-win-cpu\libtorch\share\cmake\Torch;C:\Users\tkbgp\Downloads\libtorch-win-cpu\libtorch\share\cmake\OpenCV" .. && make -j2
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- The C compiler identification is MSVC 19.38.33134.0
-- The CXX compiler identification is MSVC 19.38.33134.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/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/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
OpenSplat Version: 1.1.3 (git commit 7c9a9cc)
-- Using the multi-header code from D:/CODING/opensplat/OpenSplat/build/_deps/nlohmann_json-src/include/
-- nanoflann version: 1.5.5
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- GLM: Version 1.0.1
-- GLM: Build with C++ features auto detection
-- Found CUDAToolkit: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7/include (found version "11.7.99")
-- ** Updated TORCH_CUDA_ARCH_LIST to 7.0 7.5 8.0 **
-- The CUDA compiler identification is NVIDIA 11.7.99
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7/bin/nvcc.exe - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Found Torch: C:/Users/tkbgp/Downloads/libtorch-win-cpu/libtorch/lib/torch.lib
-- Configuring done (69.0s)
-- Generating done (0.2s)
-- Build files have been written to: D:/CODING/opensplat/OpenSplat/build
make: *** No targets specified and no makefile found.  Stop.

Also tried to open the resulted project in VisualStudio 2022 and build Release x64 but face another error. Is there any solution for this issue? Thanks

pierotofy commented 3 months ago

Instructions for building on Windows: https://github.com/pierotofy/OpenSplat?tab=readme-ov-file#windows

febrifahmi commented 3 months ago

Instructions for building on Windows: https://github.com/pierotofy/OpenSplat?tab=readme-ov-file#windows

Tried this but still no luck.. the only difference is that the CUDA version (mine is v11.7).