Closed shunia closed 4 years ago
Thank you for your feedback.
I didn't check carefully. Sorry.. Anyway I think it is caused by miss leading load path on macOs.
It seems can be change using install_name_tool
.
But I don't have mac machine now.. So Could you try fix that?
Or there is buildscript.
If you have rake command, type rake update_library_macos
It build webp library.
Thanks for your reply.
Yes, I build the whole macOS library as you did in the Rakefile
and it works (Though I removed the --prefix
config for my own convenience, and have some rename work to do), but I don't know if it will work on other machine.
But then I caught by some new problems:
DllNotFoundException: webpdemux
, without detailed information to dive into. Though I checked that all so
files under unity.webp/Plugins/Android
folder are correctly recognized by Unity with different cpu architecture;So, the third problem stuck me from going on and I'm coming for help, any suggestions?
Android runtime errors:
D/Unity: Unable to lookup library path for 'webpdemux', native render plugin support disabled.
E/Unity: Unable to find webpdemux
E/Unity: DllNotFoundException: webpdemux
at (wrapper managed-to-native) WebP.Extern.libwebpdemux.WebPAnimDecoderOptionsInitInternal(WebP.Extern.WebPAnimDecoderOptions&,int)
at WebP.Extern.libwebpdemux.WebPAnimDecoderOptionsInit (WebP.Extern.WebPAnimDecoderOptions& data) [0x00001] in /Users/huangqingfeng/Documents/code/skillz/unity/Assets/Plugins/unity.webp/libwebpdemux.cs:73
So library file inside Unity:
I don't know if it will work on other machine. Yes it will not be able to other machine.. It needs to change find path.
On Fri, 13 Mar 2020, 13:23 shunia, notifications@github.com wrote:
Android runtime errors:
D/Unity: Unable to lookup library path for 'webpdemux', native render plugin support disabled. E/Unity: Unable to find webpdemux E/Unity: DllNotFoundException: webpdemux at (wrapper managed-to-native) WebP.Extern.libwebpdemux.WebPAnimDecoderOptionsInitInternal(WebP.Extern.WebPAnimDecoderOptions&,int) at WebP.Extern.libwebpdemux.WebPAnimDecoderOptionsInit (WebP.Extern.WebPAnimDecoderOptions& data) [0x00001] in /Users/huangqingfeng/Documents/code/skillz/unity/Assets/Plugins/unity.webp/libwebpdemux.cs:73
So library file inside Unity: [image: image] https://user-images.githubusercontent.com/779430/76589569-70453300-6525-11ea-9b78-720b5fb54189.png
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/netpyoung/unity.webp/issues/18#issuecomment-598541274, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACR2EO6HYSGTVBTGK6SG4TRHGYNRANCNFSM4LGGCSGA .
Since most of them are project assets and might have copyright issues, I uploaded only one file that looks not so copyright related, sorry for that.
Debug info of this file:
Debug.LogWarning($"{anim_info.frame_count} {anim_info.canvas_width}/{anim_info.canvas_height}");
output:
236 200/200
Update: WebP files without animation renders correctly, no upside down.
@shunia
And I added some code to flip y axis. Could you check that?
It renders correctly now!
But still got no lucky on Android, please help for this!
I'm gonna close this one because only one problem left to resolve and want to focus on it, so I will create a new one!
Using the same code as example2 shows to parse the webp bytes, when running, errors occur like this:
Though I find these
dylib
files under project'slib
folder, how can I link them correctly to the.bundle
file?Great job and please keep up the working, but please help with this! Thanks a lot!