
On 15/10/09 18:05, Wolf Drechsel wrote:
I happened to find the inscructions for building an Mac OS X .app package. So I tried to use the osx-app.sh script to build an incscape aqua app in order to share it, but ended up with a message as follows:
/Directory does not appear to contain the i386 and ppc python modules/
So I tried to run the script with the -py option, but cannot find out for which python components I do have to look. Nor do I know whether I do have enough python installed; a "sudo port installed" shows:
/py26-libxml2 @2.6.21_0 (active)/ /python26 @2.6.2_4+darwin (active)/
I guess the python26 thing is it - but how will the script find the necessary components?
Some hints would be appreciated (-;
Note 1: I don't know about particularities on Tiger or regarding the Aqua build, I only have limited experience with building the (intel) X11-based Inkscape.app from SVN.
steps to include precompiled python modules into the app bundle: 1) download the prebuilt Python packages from http://inkscape.modevia.com/macosx-snap/Python-packages.dmg (as mentioned on both wiki pages http://wiki.inkscape.org/wiki/index.php/CompilingMacOsX#Pre-compiling_the_Python_modules, http://wiki.inkscape.org/wiki/index.php/GettingEffectsWorking#on_Mac_OS_X) 2) unpack them somewhere near your Inkscape source tree 3) call osx-app.sh similar to this: './osx-app.sh -py /your_path_to_the_unpacked_/Python-packages'
Note 2: 'Python-packages.dmg' doesn't contain the most recent versions of the included modules lxml and numpy, but it works for me with Inkscape 0.46-2 and 0.47pre* and SVN builds. If it doesn't include modules that match your installed Python version and arch (intel or ppc), you'll need to pre-compile the Python modules yourself as described on the wiki page 'CompilingMacOsX'
Note 3: If you didn't install the MacPorts tree into a path with more then 50 characters you will see an error message at the end of running osx-app.sh and need to change the launch script accordingly. More info in earlier messages on this list http://thread.gmane.org/gmane.comp.graphics.inkscape.devel/31153/focus=31307 and in bug #392693 https://bugs.launchpad.net/inkscape/+bug/392693)
hth, ~suv
(tip: did you try './osx-app.sh --help'? And reading it ('open -a textedit osx-app.sh') provides more info in its comments - it's just a shell script)