[CMake] Running OSX Bundle via open after creation with CMake/CPack

Lucas Soltic lucas.soltic at orange.fr
Mon Jun 23 03:38:18 EDT 2014


Le 23 juin 2014 à 03:11, Scott Klum <scott.klum at gmail.com> a écrit :

> I'm trying to make an OSX bundle using CMake/CPack on OSX that involves OpenCV and Qt (although I don't think those dependencies matter at this point). Everything compiles and the bundle is created fine, and I have a script that modifies the necessary library paths such the executable I'm making works if I run it from the Terminal within the bundle. The problem I'm having is if I try to run the MyApp.app file via the open command or by simply double clicking the app it gives me the error:
> 
> LSOpenURLsWithRole() failed with error -10810 for the file /Applications/MyApp
> I've seen other solutions to other LSOpenURLsWithRole() errors involving modifying permissions, but that hasn't helped me. Also, this error code is an "unknown error" so I'm not sure how to proceed.
> 
> 
> -- 
> Scott Klum

Hello Scott,

Does anything get printed in the terminal if you type and enter:
/Applications/MyApp.app/Contents/MacOS/MyApp
?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140623/5cb59285/attachment.html>


More information about the CMake mailing list