-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
VCPKG improvements #23688
VCPKG improvements #23688
Conversation
I have a neural network model with h5 extension which I have converted to ONNX extension model. Now I want to load it in Qt creator with MinGW64 compiler and qmake. But when I add ONNX Runtime libraries to the project they are incompatible with MinGW64 compiler. How can I solve this problem? |
Sorry It does not support MinGW's compilers. I don't have experiences with the environment. You may use Visual Studio instead. |
Thanks for your reply.
…On Mon, Feb 17, 2025 at 21:12 Changming Sun ***@***.***> wrote:
Sorry It does not support MinGW's compilers. I don't have experiences with
the environment. You may use Visual Studio instead.
—
Reply to this email directly, view it on GitHub
<#23688 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZ7BGQKE7SXXZHUDKNGGMBD2QINRJAVCNFSM6AAAAABXDK7NLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRTG43TCOJTGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
[image: snnn]*snnn* left a comment (microsoft/onnxruntime#23688)
<#23688 (comment)>
Sorry It does not support MinGW's compilers. I don't have experiences with
the environment. You may use Visual Studio instead.
—
Reply to this email directly, view it on GitHub
<#23688 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZ7BGQKE7SXXZHUDKNGGMBD2QINRJAVCNFSM6AAAAABXDK7NLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRTG43TCOJTGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Description
Motivation and Context
This PR appears large because there were a lot of generated vcpkg triplet files checked in to this repo. This PR deletes them. Here are the reasons:
The official vcpkg repository has about 80 different triplets. But ONNX Runtime has many more build variants. For example, in general, for each platform, we need to support builds with C++ exceptions, builds without C++ exceptions, builds with C++ RTTI, builds without C++ RTTI, linking to static C++ runtime, linking to dynamic (shared) C++ runtime, builds with address sanitizer, builds without address sanitizer, etc. Therefore, a script file was created to dynamically generate the triplet files on-the-fly.
Originally, we tried to check in all the generated files into our repository so that people could build onnxruntime without using build.py or any other Python scripts in the "/tools" directory. However, we encountered an issue when adding support for WASM builds. VCPKG has a limitation that when doing cross-compiling, the triplet file must specify the full path of the chain-loaded toolchain file. The file needs to be located either via environment variables (like ANDROID_NDK_HOME) or via an absolute path. Since environment variables are hard to track, we chose the latter approach. So the generated triplet files may contain absolute file paths that are only valid on the current build machine.