pykeio / ort

Fast ML inference & training for Rust with ONNX Runtime
https://ort.pyke.io/
Apache License 2.0
859 stars 100 forks source link

Link msvc in debug mode #255

Closed thewh1teagle closed 2 months ago

thewh1teagle commented 2 months ago

First of all thanks for this library. really love it.

When I compile project that uses both ort and knf-rs the compile failed with the following error:

= note: libort_sys-6af98614ea6a6726.rlib(onnxruntime_c_api.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in libknf_rs_sys-657516f9843f65bb.rlib(knfc.obj)

Looks like ort is always linking MSVC release mode even on debug build.

decahedron1 commented 2 months ago

You'll have to compile ONNX Runtime from source.