Dear all,
I'm a bit new to cmake (scared about it!) but start to love it.

I have a problem when creating a dmg from my app  Qt + Python (two
lovely beasts to link together...)

Here is a tgz of the sources
https://filesender.renater.fr/?vid=6c173e95-d045-55c9-dbbd-00001517609e

I'm on OSX and I have most of the developper stuff installed via mcaports.

I can compile it and create a nice .app
But since when I added the Python dependency, I got issues in the CPack
bundle generator.

I've digged a bit and found out a weird stuff:
inside the .app I link on the Framework Python (so far so good), but
this framework has inside a Python.app application

/opt/local/Library/Frameworks/Python.framework//Versions/2.7/Resources/Python.app
(which is probably just a helper to run the python scripts and have WM
feedback)

and this fools the cmake/cpack scripts when it dig the .app folder
searching for executables.

i.e. inside function(get_bundle_all_executables bundle exes_var) of the
file /opt/local/share/cmake-3.2/Modules/BundleUtilities.cmake it does
this command

/usr/bin/find
/Users/tommaso/local/src/hw/_CPack_Packages/OSX/DragNDrop/hw-0.1.0/hw.app -type
f ( -perm -0100 -o -perm -0010 -o -perm -0001 )
and then filters the executables

which returns also the
/Users/tommaso/local/src/hw/_CPack_Packages/OSX/DragNDrop/hw-0.1.0/hw.app/Contents/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

It looks like a deep mess because I don't know how to tell the real
executable :
/Users/tommaso/local/src/hw/_CPack_Packages/OSX/DragNDrop/hw-0.1.0/hw.app/Contents/MacOS/hw

from the python one:
/Users/tommaso/local/src/hw/_CPack_Packages/OSX/DragNDrop/hw-0.1.0/hw.app/Contents/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

any advice?
someone fell in this mess?

many thanks!

--
Tommaso Vinci
[email protected]
+33 1 69335427
LULI - Ecole Polytechnique
91128 Palaiseu
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to