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

2016-06-01 Thread Juan Carlos Prieto
Dear all, I have generated a bundle for MacOS as follows: if(APPLE) set(OS_BUNDLE MACOSX_BUNDLE) elseif(WIN32) set(OS_BUNDLE WIN32) endif() include_directories(${CMAKE_CURRENT_BINARY_DIR}) add_executable(FADTTSter ${OS_BUNDLE} ${FADTTS_src} )

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

2014-06-23 Thread Lucas Soltic
Le 23 juin 2014 à 03:11, Scott Klum scott.k...@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

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

2014-06-23 Thread David Cole via CMake
Well, there's this information about unknown error -10810: http://www.thexlab.com/faqs/error-10810.html Does your app launch a lot of sub-processes at startup? Are you saying that you *can* run the app from the terminal window, but that you cannot run the app by double-clicking or by using

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

2014-06-23 Thread David Cole via CMake
Also, you may find extra hints about what's going wrong in the output of the Console application. (Usually found in /Applications/Utilities) -- see if there's anything in the system.log in there, or poke around and see if it has a crash report related to your app. HTH, David C. -- Powered

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

2014-06-23 Thread Scott Klum
Lucas and David, Thank you for your responses. *Does anything get printed in the terminal if you type and enter: * */Applications/MyApp.app/Contents/MacOS/MyApp**?* This is what I mean when I say I can run it through the terminal. If I enter the above command the app starts properly. *Does

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

2014-06-23 Thread Scott Klum
Also, I forgot to mention that using the Console Utility gives nondescript errors: it just says MyApp exited with code 127. On Mon, Jun 23, 2014 at 8:56 AM, Scott Klum scott.k...@gmail.com wrote: Lucas and David, Thank you for your responses. *Does anything get printed in the terminal if

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

2014-06-23 Thread Scott Klum
I figured out the issue. I have CPACK_BUNDLE_STARTUP_COMMAND to my startup bash script. This script modifies a bunch of library paths via install_name_tool. I cd into the directory containing the actual executable (MyApp.app/Contents/Resources/bin/) and work from there. This is pretty darn

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

2014-06-22 Thread Scott Klum
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