-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
libtensorflowlite_c.dll issue #39
Comments
Hmm, it seems to be a dependency error. but I couldn't reproduce it. Are there any other error messages? Can you share the UnityEditor's log? |
Hello. |
@cyraxchel Thanks for your report. Just to clarify, Did the error disappear before you built the library yourself? |
I failed rebuild library (some error in VC). I keep using your library. :) UPD: win 10, Unity: 2019.1.6f1 and Unity 2019.4.8f1 |
I seem to get this issue as well; It works on two different PCs but on another PC it the plugin fails to load, with the same error. |
Could you check which dependencies are missing using app like this? |
Ok I checked, it seemed like the latest vc 2019 redistributable was installed. |
Trying to build for Windows 10 UWP Arm64 application leads to the same error: Would be great to add support for UWP Arm64 as well (needed for Hololens 2 development). |
Plugins: Failed to load 'V:/HandTracking/tflite/tf-lite-unity-sample-master/Packages/com.github.asus4.tflite/Plugins/Windows/libtensorflowlite_c.dll' because one or more of its dependencies could not be loaded. Getting this error,any idea how to fix? |
@vaibhav-suri I managed to fix this error by installing both the x86 and x64 Visual C++ 2019 Redistributable. |
@SBeyer6 Thanks a lot! That worked. |
@cwule got the same error when developing Hololens 2 App, did you solve that issue? Or if there is any idea to approach. Thanks in advance. |
Please, check corerct version VC installed. When I install VS 2019, it fix error. Before was VS 2017.. Sorry, I don't remember, which versions on both Visual Studio on. |
@cyraxchel Thanks for your response. I have tried both VS 2019 and VS 2022, with VC 2019 redistributable installed, same error:
I think the reason for this error could be different from the one in the origin post. I checked the DLL file 'libtensorflowlite_c' in Unity, it seems only support x86 and x64. However, I am building the project into HoloLens 2 which is ARM64, which should be the reason why this happened. I don't have much experience in Unity development, I am not sure what does that DLL file is for and how to make it support ARM64 devices. I will appreciate that if you can give me some ideas. @asus4 |
@Cipher-zzz To build a dll for Windows, please refer to the build script tf-lite-unity-sample/build_tflite.py Lines 50 to 54 in 0060d49
|
@asus4 Thank you! I will have a try. |
@Cipher-zzz The same error is happening to me. Can it be fixed? |
@siri-sinthawat I am temporarily working on another project, haven't tried it yet. I will comment here if there is any update. |
the same error happen on my mac pro |
Did you pull Git LFS files? All libs are in Git LFS. |
I got this error when i try to run. please let me know
Plugins: Failed to load 'Assets/plugins/Windows/libtensorflowlite_c.dll' because one or more of its dependencies could not be loaded.
TensorFlowLite.BaseImagePredictor`1:.ctor(String, Boolean) (at Assets/Samples/Common/BaseImagePredictor.cs:34)
TensorFlowLite.DeepLab:.ctor(String, ComputeShader) (at Assets/Samples/DeepLab/DeepLab.cs:51)
DeepLabSample:Start() (at Assets/Samples/DeepLab/DeepLabSample.cs:22)
The text was updated successfully, but these errors were encountered: