-
Notifications
You must be signed in to change notification settings - Fork 23
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
Is there a Linux compilation guide in mind? #25
Comments
I personally compile protobuf and onnx from source and use static linking. These components should be easy to install and I do develop plugins on linux. |
Okay, it seems that this is the option that can avoid more crashes and unexpected results (especially because of the static link), is it the same with the vulkan SDK? |
Yes. |
In general you can follow the windows build workflow to build on Linux, with only minor changes. However, note that you do have to compile all dependencies (specifically, pay attention to the version as well, as those AI runtimes are very strict about dependency versions) as specified in the workflow and not use the package provided by the package manager. For openvino, please see https://github.com/AmusementClub/openvino/blob/github-actions/.github/workflows/windows.yml. Almost all the issues are caused by using prepackaged packages for the dependencies (even for the seemingly standard onnx and protobuf packages.) |
I know AmusementClub has compilation instructions for linux for some of their work. However, this project seems to be one of those few exceptions.
I myself tried to compile vs-mlrt for Fedora 37 and Ubuntu 22.04, with vsncnn in mind to be as compatible as possible with any gpu. The main problems I encountered are
As you can see from my perspective, trying to build VSNCNNN was an irritating experience from which I couldn't even compile anything successfully.
I would like to know the opinion of the developers regarding the issue, personally I think that compiling for any of the plugins in the project will be a challenge.
The text was updated successfully, but these errors were encountered: