Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update & improve build instructions for auto-bundled arrow-cpp, and get windows to work out of the box #8

Merged
merged 6 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if(NOT DEFINED CMAKE_CXX_STANDARD)
endif()

include(FetchContent)
FetchContent_Declare(rerun_sdk URL https://build.rerun.io/commit/bc05d11/rerun_cpp_sdk.zip) # 2023-10-26
FetchContent_Declare(rerun_sdk URL https://build.rerun.io/commit/b7f404a/rerun_cpp_sdk.zip) # 2023-10-29
FetchContent_MakeAvailable(rerun_sdk)

find_package(Eigen3 REQUIRED)
Expand Down
33 changes: 25 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,36 @@ The easiest way to get started is to install [pixi](https://prefix.dev/docs/pixi

### Manually
First install the required dependencies:
* `arrow-cpp` (required by Rerun)
* `eigen` and `opencv` (required by this example)
* `cmake` and `ninja` (build tools)
* `cmake` (for building)

Build using:

### Linux & Mac

Build:
```bash
mkdir build
cd build
cmake ..
cmake --build . -- -j8
cmake -B build
cmake --build build -j
```

Then run the binary with:

`build/rerun_ext_example`


### Windows using Visual Studio 2022


Build
```cmd
cmake -B build -G 'Visual Studio 17 2022'
cmake --build build
```
Instead of building via CMake you can also open `build/rerun_external_cpp_proj.sln` in Visual Studio and build & run from there.

Then run the binary with
```cmd
build\RelWithDebInfo\rerun_ext_example.exe
```
Make sure that all dependent dlls (OpenCV & Eigen) are in PATH or next to the executable.


11 changes: 11 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"version": "0.2",
"usePnP": true,
"ignoreWords": [
"eigen",
"Eigen",
"pixi",
"srcset"
]
}
Loading