Replies: 6 comments 5 replies
-
Could you try making an empty file |
Beta Was this translation helpful? Give feedback.
-
Hack works, but missing protobuf
since full protobuf option on, it may conflict with lited. |
Beta Was this translation helpful? Give feedback.
-
/d/models/static-onnx/target/Release/_deps/protobuf-build (master)
$ ll
total 431
-rw-r--r-- 21813 14:58 ALL_BUILD.vcxproj
-rw-r--r-- 316 14:58 ALL_BUILD.vcxproj.filters
drwxr-xr-x 0 14:59 CMakeFiles/
-rw-r--r-- 337 14:58 CTestTestfile.cmake
-rw-r--r-- 10561 14:58 INSTALL.vcxproj
-rw-r--r-- 527 14:58 INSTALL.vcxproj.filters
-rw-r--r-- 10904 14:58 PACKAGE.vcxproj
-rw-r--r-- 527 14:58 PACKAGE.vcxproj.filters
-rw-r--r-- 9995 14:58 RUN_TESTS.vcxproj
-rw-r--r-- 529 14:58 RUN_TESTS.vcxproj.filters
drwxr-xr-x 0 14:59 Release/
drwxr-xr-x 0 14:58 cmake/
-rw-r--r-- 53578 14:58 cmake_install.cmake
-rw-r--r-- 20579 14:55 extract_includes.bat
-rw-r--r-- 47061 14:58 libprotobuf-lite.vcxproj
-rw-r--r-- 15127 14:58 libprotobuf-lite.vcxproj.filters
drwxr-xr-x 0 14:58 libprotobuf.dir/
-rw-r--r-- 52941 14:58 libprotobuf.vcxproj
-rw-r--r-- 23434 14:58 libprotobuf.vcxproj.filters
drwxr-xr-x 0 14:58 libprotoc.dir/
-rw-r--r-- 54166 14:58 libprotoc.vcxproj
-rw-r--r-- 23859 14:58 libprotoc.vcxproj.filters
-rw-r--r-- 343 14:55 protobuf-lite.pc
-rw-r--r-- 343 14:55 protobuf.pc
-rw-r--r-- 9911 14:58 protobuf.sln
drwxr-xr-x 0 14:59 protoc.dir/
-rw-r--r-- 41960 14:58 protoc.vcxproj
-rw-r--r-- 851 14:58 protoc.vcxproj.filters
-rw-r--r-- 1372 14:55 version.rc /d/models/static-onnx/target/Release/_deps (master)
$ ll
total 196
14:58 abseil_cpp-build/
14:54 abseil_cpp-src/
14:54 abseil_cpp-subbuild/
14:57 cutlass-build/
14:58 cutlass-src/
14:57 cutlass-subbuild/
14:58 date-build/
14:54 date-src/
14:54 date-subbuild/
14:56 eigen-build/
14:57 eigen-src/
14:57 eigen-subbuild/
15:13 flatbuffers-build/
14:56 flatbuffers-src/
14:56 flatbuffers-subbuild/
14:58 googletest-build/
14:56 googletest-src/
14:56 googletest-subbuild/
14:58 gsl-build/
14:56 gsl-src/
14:56 gsl-subbuild/
14:57 microsoft_wil-build/
14:57 microsoft_wil-src/
14:57 microsoft_wil-subbuild/
14:58 mp11-build/
14:55 mp11-src/
14:55 mp11-subbuild/
14:58 nlohmann_json-build/
14:55 nlohmann_json-src/
14:55 nlohmann_json-subbuild/
14:59 onnx-build/
14:57 onnx-src/
14:57 onnx-subbuild/
14:59 onnx_tensorrt-build/
14:58 onnx_tensorrt-src/
14:58 onnx_tensorrt-subbuild/
14:59 protobuf-build/
14:55 protobuf-src/
14:54 protobuf-subbuild/
15:13 pytorch_cpuinfo-build/
14:56 pytorch_cpuinfo-src/
14:56 pytorch_cpuinfo-subbuild/
15:14 re2-build/
14:56 re2-src/
14:56 re2-subbuild/
14:58 safeint-build/
14:56 safeint-src/
14:56 safeint-subbuild/ build script export CudaToolkitCustomDir="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6"
python3 ./onnxruntime/tools/ci_build/build.py \
--cmake_generator "Visual Studio 17 2022" \
--build_dir ./target/ \
--config Release \
--parallel 8 \
--use_cuda \
--use_tensorrt \
--cuda_version 11.6 \
--cuda_home "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6" \
--cudnn_home "D:\models\static-onnx\CUDNN-8.8.1.3" \
--tensorrt_home "D:/models/static-onnx/TensorRT-8.5.3.1" \
--enable_lto \
--enable_msvc_static_runtime \
--skip_tests \
--skip_submodule_sync |
Beta Was this translation helpful? Give feedback.
-
@sudo-carson This problem still exists, I found that the cmake I use will have an extra layer of I am using the cmake built in let path = "D:\\models\\static-onnx\\target\\Release"
I didn't find this problem before, because there was no error, and nothing found when linking. We can change line 336 to expose the problem:
|
Beta Was this translation helpful? Give feedback.
-
@sudo-carson would you mind providing the steps required to statically link onnxruntime in the final artifact? |
Beta Was this translation helpful? Give feedback.
-
@sudo-carson following the steps you outlined, it gives me the following error: error: failed to run custom build command for `ort v1.14.1 (https://github.com/pykeio/ort?rev=f6135fcb1134e20a8375afb9166f5f7222137a67#f6135fcb)`
Caused by:
process didn't exit successfully: `D:\projects\blindpandas\libtashkeel\target\release\build\ort-de3f866f31dff3c0\build-script-build` (exit code: 101)
--- stdout
[ort] strategy: "system"
cargo:rerun-if-env-changed=ORT_STRATEGY
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." }', C:\Users\ibnom\.cargo\git\checkouts\ort-675c4f2a84c4db27\f6135fc\build.rs:286:43
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish... |
Beta Was this translation helpful? Give feedback.
-
I tried to build onnxruntime from source, but there's no
onnxruntime.lib
in artifacts.All arartifacts are:
When set
ort build failed because
Reference
Beta Was this translation helpful? Give feedback.
All reactions