nvpro-samples / vk_raytrace

Ray tracing glTF scene with Vulkan
Apache License 2.0
567 stars 35 forks source link

How to build from source on MSYS2 MINGW64? #24

Closed ghost closed 1 year ago

ghost commented 1 year ago

cmake configuration failed:

$ cmake ..
-- Building for: Ninja
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/mingw64/bin/cc.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:/msys64/mingw64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- -------------------------------
-- Processing Project vk_raytrace:
CMake Error at CMakeLists.txt:30 (find_path):
  Could not find BASE_DIRECTORY using the following files:
  nvpro_core/cmake/setup.cmake

-- Configuring incomplete, errors occurred!
tigrazone commented 1 year ago

Try cmake .. -G "Unix Makefiles" and build by make

ghost commented 1 year ago

Try cmake .. -G "Unix Makefiles" and build by make

Still the same error message.

tigrazone commented 1 year ago

I use cmake installed in windows, not in msys. And I call from msys prompt /c/cmake/bin/cmake .. -G "Unix Makefiles" and all built ok without errors. maybe it helps

ghost commented 1 year ago

I use cmake installed in windows, not in msys. And I call from msys prompt /c/cmake/bin/cmake .. -G "Unix Makefiles" and all built ok without errors. maybe it helps

Please test on the MSYS2 MINGW64 Shell.