Closed spebern closed 9 months ago
@spebern Thank you for testing it. I think it's fixed in the latest main branch. Would you mind testing it again with the version 0.1.8
?
"com.github.asus4.onnxruntime": "0.1.8",
"com.github.asus4.onnxruntime.unity": "0.1.8",
"com.github.asus4.onnxruntime.win-x64-gpu": "0.1.8",
"com.github.asus4.onnxruntime.linux-x64-gpu": "0.1.8",
Yes I will test it later today and get back to you.
Thanks a lot for this package by the way. It saved us a lot of time, especially since you made it work with so many platforms!
The errors from before are gone, there is just one more undefined symbol:
ld: Undefined symbols:
_RegisterCustomOps, referenced from:
_OrtExtensionsNativeMethods_RegisterCustomOps_mA5440E531969CCF75F399CA6B6F0BDCC49422CEA in libGameAssembly.a[10](5234ulbl7y03.o)
_SessionOptions_RegisterOrtExtensions_mF1C70C8FE4A4F7D388D19EF96D1D332817298FAD in libGameAssembly.a[10](5234ulbl7y03.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@spebern hmm, that error didn't reproduce on my end. Are you testing with the onnxruntime-unity-examples project or your own project? If it's your own, can you send it over to me?
Presumably, the error means the onnxruntime.xcframework
needs to be linked to the GameAssembly
target. But Linking with UnityFramework was enough on my end.
The linking is done automatically in the post-process build.
I tried again with the most recent version and a completely clean build and it worked.
Many thanks for your ongoing support!
Environment (please complete the following information):
Describe the bug Building on iOS fails with the following error:
When building the exported project in xcode I get:
To Reproduce
I included the package like explained in the readme:
Expected behavior Builds on iOS.
Additional context The build works for all other platforms (Android, macOS, Windows).
The required folder does not seem to exist instead I get two subfolders: