netpyoung / unity.webp

:art: WebP made easy for Unity3d
https://netpyoung.github.io/unity.webp/
MIT License
237 stars 28 forks source link

macOs: Plugins: Couldn't open Assets/unity.webp/Plugins/x64/webpdemux.bundle, error: #19

Closed netpyoung closed 2 years ago

netpyoung commented 4 years ago

From #18

Plugins: Couldn't open Assets/unity.webp/Plugins/x64/webpdemux.bundle, error: 
dlopen(Assets/unity.webp/Plugins/x64/webpdemux.bundle, 2): 
Library not loaded: /Users/pyoung/deleteme/unity.webp/libwebp/.lib/lib/libwebp.7.dylib
  Referenced from: /Users/huangqingfeng/Documents/code/skillz/unity/Assets/unity.webp/Plugins/x64/webpdemux.bundle
  Reason: image not found

It seems my personal path embedded in webpdemux.bundle.

shunia commented 4 years ago

Self compiled library result (macOS editor):

WebP files without animation: WRONG, error shows:

Exception: Invalid WebP header detected
WebP.Texture2DExt.GetWebPDimensions (System.Byte[] lData, System.Int32& lWidth, System.Int32& lHeight) (at Assets/Plugins/unity.webp/Texture2DExt.cs:87)
WebP.Texture2DExt.CreateTexture2DFromWebP (System.Byte[] lData, System.Boolean lMipmaps, System.Boolean lLinear, WebP.Error& lError, WebP.Texture2DExt+ScalingFunction scalingFunction) (at Assets/Plugins/unity.webp/Texture2DExt.cs:211)

WebP files with animation: CORRECT

netpyoung commented 4 years ago

Um.. that also seems like path problem.. on on mac. Is it working well sample image on example directory?

On Sun, 15 Mar 2020, 00:33 shunia, notifications@github.com wrote:

Self compiled library result:

WebP files without animation: WRONG, error shows:

Exception: Invalid WebP header detected WebP.Texture2DExt.GetWebPDimensions (System.Byte[] lData, System.Int32& lWidth, System.Int32& lHeight) (at Assets/Plugins/unity.webp/Texture2DExt.cs:87) WebP.Texture2DExt.CreateTexture2DFromWebP (System.Byte[] lData, System.Boolean lMipmaps, System.Boolean lLinear, WebP.Error& lError, WebP.Texture2DExt+ScalingFunction scalingFunction) (at Assets/Plugins/unity.webp/Texture2DExt.cs:211)

WebP files with animation: CORRECT

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/netpyoung/unity.webp/issues/19#issuecomment-599080783, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACR2EPBKILPVWKMCQDLBW3RHOPVNANCNFSM4LHHOFKQ .

netpyoung commented 2 years ago

fixed by https://github.com/netpyoung/unity.webp/commit/5c7b287dbf899173eb07a18c715bf5559f910a8e