Skip to content

Commit 6306025

Browse files
committed
cleanup
1 parent 861a35c commit 6306025

File tree

4 files changed

+7
-14
lines changed

4 files changed

+7
-14
lines changed

BUILDING.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,11 @@ 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
263+
## Building for ARM Windows
264264

265265
The C++ SDK works well on windows for both client and module code
266266
provided there is internet connectivity. However, some manual work is
267-
required to build for client code.
267+
required to build for client code on ARM64 architecture.
268268

269269
1. (client code only) clone [rust-utils](https://github.com/viamrobotics/rust-utils) >= v0.3.0 and
270270
build locally with `cargo build --release`. Copy `target\release\viam_rust_utils.lib`
@@ -277,9 +277,6 @@ cmake . --preset conan-default <cmake args>
277277
cmake --build --preset=conan-release -j
278278
```
279279

280-
NOTE: There is no current support for offline mode as a client, though
281-
this is being worked on.
282-
283280
## Options to Configure or Customize the Build
284281

285282
### Options for Package Search

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ else()
293293
message(WARNING "Currently running on Windows with no rust-utils file. Module code should work as expected, but client code may fail unexpectedly.")
294294
endif()
295295

296-
if (NOT WIN32 OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64") # build `SHARED` on unix-based systems
296+
if (NOT WIN32 OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64")
297297
add_library(viam_rust_utils STATIC IMPORTED)
298298
target_link_directories(viam_rust_utils
299299
INTERFACE

src/viam/examples/mlmodel/example_audio_classification_client.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifdef _WIN32
16-
#define NOMINMAX
17-
#endif
18-
1915
#include <chrono>
2016
#include <cstdlib>
2117
#include <fstream>

src/viam/sdk/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,10 @@ target_link_libraries(viamsdk
276276
PRIVATE Threads::Threads
277277
)
278278

279-
# TODO(RSDK-10637): Currently, rust_utils for windows doesn't link correctly when built in CI,
280-
# so don't link to it unless the user has provided a file for it. Instead, link a stub implementation
281-
# that just calls `abort`.
282-
if (NOT WIN32 OR num_viam_rust_utils_files GREATER 0)
279+
# rust-utils doesn't build in CI on windows other than x86_64, so confirm that we're either not
280+
# windows, or if we are windows that we're AMD64, or else that the user has provided their own
281+
# build of rust_utils.
282+
if (NOT WIN32 OR num_viam_rust_utils_files GREATER 0 OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64")
283283
target_link_libraries(viamsdk
284284
PRIVATE viam_rust_utils
285285
)

0 commit comments

Comments
 (0)