2026-01-06 16:27:19 +08:00
|
|
|
# Basalt Presenter
|
|
|
|
|
|
|
|
|
|
## Dependencies
|
|
|
|
|
|
2026-01-10 21:49:29 +08:00
|
|
|
* CUDA
|
2026-01-09 20:16:21 +08:00
|
|
|
* [spdlog](https://github.com/gabime/spdlog)
|
2026-01-06 16:27:19 +08:00
|
|
|
* [tinyobjloader](https://github.com/tinyobjloader/tinyobjloader)
|
2026-01-10 21:49:29 +08:00
|
|
|
<!-- * [cgltf](https://github.com/jkuhlmann/cgltf) -->
|
2026-01-06 16:27:19 +08:00
|
|
|
|
2026-01-09 20:16:21 +08:00
|
|
|
We assume that you executing following commands in the root directory of `BasaltPresenter` project.
|
|
|
|
|
|
2026-01-10 21:49:29 +08:00
|
|
|
### CUDA
|
|
|
|
|
|
|
|
|
|
##### Usage
|
|
|
|
|
|
|
|
|
|
Use `-DCUDAToolkit_ROOT=<path to CUDA install directory>` in cmake when you configure this project.
|
|
|
|
|
|
2026-01-09 20:16:21 +08:00
|
|
|
### spdlog
|
|
|
|
|
|
2026-01-09 22:50:24 +08:00
|
|
|
##### Build
|
|
|
|
|
|
2026-01-09 20:16:21 +08:00
|
|
|
```sh
|
|
|
|
|
cd external
|
|
|
|
|
git clone -b 1.17.0 https://github.com/gabime/spdlog.git
|
|
|
|
|
|
|
|
|
|
cd spdlog
|
|
|
|
|
mkdir out
|
|
|
|
|
cd out
|
|
|
|
|
mkdir build
|
|
|
|
|
mkdir install
|
2026-01-09 22:50:24 +08:00
|
|
|
cd build
|
2026-01-09 20:16:21 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
In Windows:
|
|
|
|
|
|
|
|
|
|
```bat
|
2026-01-09 22:50:24 +08:00
|
|
|
cmake -A x64 -DCMAKE_CXX_STANDARD=23 -DSPDLOG_WCHAR_SUPPORT=ON -DSPDLOG_WCHAR_FILENAMES=ON -DSPDLOG_WCHAR_CONSOLE=ON -DSPDLOG_BUILD_EXAMPLE=OFF ../..
|
2026-01-09 20:16:21 +08:00
|
|
|
cmake --build . --config Release
|
2026-01-09 22:50:24 +08:00
|
|
|
cmake --install . --config Release --prefix=../install
|
2026-01-09 20:16:21 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Or in POSIX:
|
|
|
|
|
|
|
|
|
|
```sh
|
2026-01-09 22:50:24 +08:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=23 -DSPDLOG_BUILD_EXAMPLE=OFF ../..
|
2026-01-09 20:16:21 +08:00
|
|
|
cmake --build .
|
|
|
|
|
cmake --install . --prefix=../install
|
|
|
|
|
```
|
|
|
|
|
|
2026-01-09 22:50:24 +08:00
|
|
|
##### Usage
|
|
|
|
|
|
|
|
|
|
Use `-Dspdlog_ROOT=<path to spdlog install directory>` in cmake when you configure this project.
|
|
|
|
|
|
2026-01-09 20:16:21 +08:00
|
|
|
#### tinyobjloader
|
|
|
|
|
|
2026-01-09 22:50:24 +08:00
|
|
|
##### Build
|
|
|
|
|
|
2026-01-09 20:16:21 +08:00
|
|
|
```sh
|
|
|
|
|
cd external
|
2026-01-09 22:50:24 +08:00
|
|
|
git clone -b v1.0.6 https://github.com/tinyobjloader/tinyobjloader.git
|
2026-01-09 20:16:21 +08:00
|
|
|
|
|
|
|
|
cd tinyobjloader
|
|
|
|
|
mkdir out
|
|
|
|
|
cd out
|
|
|
|
|
mkdir build
|
|
|
|
|
mkdir install
|
2026-01-09 22:50:24 +08:00
|
|
|
cd build
|
2026-01-09 20:16:21 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
In Windows:
|
|
|
|
|
|
|
|
|
|
```bat
|
2026-01-09 22:50:24 +08:00
|
|
|
cmake -A x64 -DCMAKE_CXX_STANDARD=23 ../..
|
2026-01-09 20:16:21 +08:00
|
|
|
cmake --build . --config Release
|
2026-01-09 22:50:24 +08:00
|
|
|
cmake --install . --config Release --prefix=../install
|
2026-01-09 20:16:21 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Or in POSIX:
|
|
|
|
|
|
|
|
|
|
```sh
|
2026-01-09 22:50:24 +08:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=23 ../..
|
2026-01-09 20:16:21 +08:00
|
|
|
cmake --build .
|
|
|
|
|
cmake --install . --prefix=../install
|
|
|
|
|
```
|
|
|
|
|
|
2026-01-09 22:50:24 +08:00
|
|
|
##### Usage
|
|
|
|
|
|
|
|
|
|
Use `-Dtinyobjloader_ROOT=<path to tinyobjloader install directory>` in cmake when you configure this project.
|
|
|
|
|
|
2026-01-06 16:27:19 +08:00
|
|
|
## Warning
|
|
|
|
|
|
|
|
|
|
This project was not written robustly.
|
|
|
|
|
So please confirm following conditions when running this program.
|
|
|
|
|
|
|
|
|
|
- ASCII-only path. It would be better to have English-chars-only path. No space, tab or weird chars.
|
|
|
|
|
- Not too long path. It would be better that less than 200 chars.
|
|
|
|
|
- ASCII-only command line arguments.
|