netpyoung / unity.webp

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

Help me, the example does not build ios #6

Closed kwangrim closed 6 years ago

kwangrim commented 6 years ago

Can you upload a working example?

please...TT

netpyoung commented 6 years ago

I already tested this library on my device few month ago. Could I receive more information about build environment? Unity version and Xcode version and ios version.... etc...

Anyway I'm not sure I have a time to testing that....

kwangrim commented 6 years ago

Thank you comments

A build error occurs at the part of NativeBindings.cs.

if UNITY_EDITOR

const string DLL_NAME = "webp";

elif UNITY_ANDROID

const string DLL_NAME = "webp";

elif UNITY_IOS

const string DLL_NAME = DLL_NAME;

endif

Replacing DLL_NAME with "webp" will build but not image.

I would appreciate if you could share a unity project that works properly on iOS.

My system information is as follows. unity: 5.6.4p4 macOS: 10.13.2 xcode: 9.3

netpyoung commented 6 years ago

That's a bug for me.

For ios, we need to change DLL_NAME to "__Internal"

#if UNITY_EDITOR
const string DLL_NAME = "webp";
#elif UNITY_ANDROID
const string DLL_NAME = "webp";
#elif UNITY_IOS
const string DLL_NAME = "__Internal";
#endif
kwangrim commented 6 years ago

It works well. thank you.

netpyoung commented 6 years ago

it was fixed.