Skip to content

Commit 89df7fb

Browse files
committed
add instructions for building on windows
1 parent d4cb253 commit 89df7fb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

BUILDING.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,26 @@ have a different version of `protoc` available in your `PATH`, it will
260260
silently fail and later cause compilation failures due to protobuf
261261
version mismatches.
262262

263+
## Building for Windows
264+
265+
The C++ SDK works well on windows for both client and module code
266+
provided there is internet connectivity. However, some manual work is
267+
required to build for client code.
268+
269+
1. (client code only) clone [rust-utils](https://github.com/viamrobotics/rust-utils) >= v0.3.0 and
270+
build locally with `cargo build --release`. Copy `target\release\viam_rust_utils.lib`
271+
to the root of the C++ SDK directory.
272+
2. Ensure `conan` is installed (see `Building with Conan` above).
273+
3. Run the following:
274+
```
275+
conan profile detect
276+
cmake . --preset conan-default <cmake args>
277+
cmake --build --preset=conan-release -j
278+
```
279+
280+
NOTE: There is no current support for offline mode as a client, though
281+
this is being worked on.
282+
263283
## Options to Configure or Customize the Build
264284

265285
### Options for Package Search

0 commit comments

Comments
 (0)