Skip to content
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

Give a better error message if libwebp is not installed on Linux #4

Open
robpvn opened this issue Jun 12, 2013 · 5 comments
Open

Give a better error message if libwebp is not installed on Linux #4

robpvn opened this issue Jun 12, 2013 · 5 comments

Comments

@robpvn
Copy link
Member

robpvn commented Jun 12, 2013

Right now it's the standard uncaught error dialogue with a DLLException warning.

@robpvn
Copy link
Member Author

robpvn commented Jun 12, 2013

On a related note, we should see if the DLLImport can be more robust. Case in point: On OpenSUSE libraries are named libwebp.so.0 for some silly reason, so I had to create a symlink (in usr/lib64, beside libwebp.so.0) named libwebp.so for Mono's loader to be able to find it. There might be ways of specifying alternate names in the import, we should look at that.

@cameronwhite
Copy link
Member

Does f731412 work for you? The mono docs seemed to suggest that "webp" was a better choice than "libwebp".

@cameronwhite
Copy link
Member

There's also now a proper error dialog in 9d24246.

It's good that we're developing some sample addins ahead of time, since I've already found a few API changes/additions that needed to be made.

@robpvn
Copy link
Member Author

robpvn commented Jun 16, 2013

Well, the error message works alright anyway... :P
I'm not on my OpenSUSE laptop, so I can't check there, but on my Ubuntu 12.10 desktop machine it's not finding the library.

@cameronwhite
Copy link
Member

It looks like Mono has a mechanism for specifying alternate names (http://pkg-mono.alioth.debian.org/cli-policy/ch-mono.html).

On my system, I have the symlinks libwebp.so and libwebp.so.4 pointing to libwebp.so.4.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants