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

Sandbox support ? #15

Open
liufsd opened this issue Apr 4, 2017 · 3 comments
Open

Sandbox support ? #15

liufsd opened this issue Apr 4, 2017 · 3 comments

Comments

@liufsd
Copy link

liufsd commented Apr 4, 2017

hi~
I have test use Magick++ for cocoa app. but fail when sandbox enable;
crash like this:

libc++abi.dylib: terminating with uncaught exception of type Magick::ErrorModule: SmallImage: UnableToLoadModule '/usr/local/Cellar/imagemagick/7.0.5-4/lib/ImageMagick//modules-Q16HDRI/coders/jpeg.la': file not found @ error/module.c/OpenModule/1279

@naithar
Copy link
Owner

naithar commented Apr 4, 2017

Hi @liufsd, I'm not sure I can really help with that.
But my guess would be that the problem is most likely with the installed dependencies (this problem is also present in this library) or the way library is used when sandbox mode is enabled.
I'm not even near the OSX app developer, so I can only guess.

This stack-overflow question has the link to the solution, maybe it will help.

@liufsd
Copy link
Author

liufsd commented Apr 4, 2017

hi~ thanks for response.
Sandbox close work like this: https://www.youtube.com/watch?v=7miwnp8iDm8.
I guess the sandbox enable will be not support link other library by using 'odules-Q16HDRI/coders/jpeg.la' , maybe need build imagemagick and jpeg static lib for the sandbox such as https://www.imagemagick.org/script/binary-releases.php ios imagemagick_compile.sh ?
but no source for the cocoa app.

@liufsd
Copy link
Author

liufsd commented Apr 5, 2017

i have post my demo project here : https://github.com/liufsd/MagickCocoa
(you can close sandbox mod it will run success)

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

No branches or pull requests

2 participants