Skip to content

Commit e8714b0

Browse files
committed
pixi setup, can build now on Mac
1 parent c8f3321 commit e8714b0

File tree

5 files changed

+12486
-12
lines changed

5 files changed

+12486
-12
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Build directory
12
build
2-
compile_commands.json
3-
*.vrs
3+
4+
# Pixi environment
5+
.pixi

CMakeLists.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
cmake_minimum_required(VERSION 3.16)
1+
cmake_minimum_required(VERSION 3.16...3.27)
22

3-
project(vrs_example LANGUAGES CXX)
3+
project(rerun_vrs_example LANGUAGES CXX)
44

55
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
66

7-
# if(NOT DEFINED CMAKE_CXX_STANDARD)
8-
# endif()
9-
10-
set(CMAKE_CXX_STANDARD 17)
7+
if(NOT DEFINED CMAKE_CXX_STANDARD)
8+
set(CMAKE_CXX_STANDARD 17)
9+
endif()
1110

1211
include(FetchContent)
13-
FetchContent_Declare(rerun_sdk DOWNLOAD_EXTRACT_TIMESTAMP ON URL https://build.rerun.io/commit/2ec5ce7/rerun_cpp_sdk.zip)
12+
FetchContent_Declare(rerun_sdk URL https://build.rerun.io/commit/b7f404a/rerun_cpp_sdk.zip) # 2023-10-29
1413
FetchContent_MakeAvailable(rerun_sdk)
1514

1615
include(FetchContent)
@@ -19,7 +18,8 @@ FetchContent_MakeAvailable(vrslib)
1918

2019
find_package(Eigen3 REQUIRED)
2120
find_package(OpenCV REQUIRED)
21+
find_package(fmt REQUIRED)
2222

23-
add_executable(log_vrs src/main.cpp src/FramePlayer.cpp src/IMUPlayer.cpp src/utils.cpp)
24-
target_link_libraries(log_vrs Eigen3::Eigen ${OpenCV_LIBS} rerun_sdk vrslib vrs_utils)
25-
target_include_directories(log_vrs PRIVATE src)
23+
add_executable(rerun_vrs_example src/main.cpp src/FramePlayer.cpp src/IMUPlayer.cpp src/utils.cpp)
24+
target_link_libraries(rerun_vrs_example Eigen3::Eigen ${OpenCV_LIBS} rerun_sdk vrslib vrs_utils fmt)
25+
target_include_directories(rerun_vrs_example PRIVATE src)

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
This is an example that shows how to use [Rerun](https://github.com/rerun-io/rerun)'s C++ API to log and view VRS files.
44

5+
## Installing the Rerun viewer
6+
The Rerun C++ SDK works by connecting to an awaiting Rerun Viewer over TCP.
7+
8+
#### Building from source
9+
* [Install `cargo`](https://rustup.rs/)
10+
* `cargo install rerun-cli`
11+
12+
#### Using `pip`
13+
* `pip install rerun-sdk`
14+
15+
### Running the Rerun viewer
16+
Just type `rerun` and the rerun viewer should show up. Then it is time to run this example!
17+
18+
519
## How to build and run
620

721
```bash
@@ -10,3 +24,7 @@ cd build
1024
cmake ..
1125
cmake --build .
1226
```
27+
28+
---------------------------
29+
30+
TODO: Pixi describe setup etc.

0 commit comments

Comments
 (0)