On 22/11/09 17:10, Wolf Drechsel wrote:
o.k. - here we go. I didnt do something else - just unpacked the tarball and threw it onto the desktop.
Than:
$ cd packaging/macosx $ cp -p osx-build.sh osx-build.sh.orig $ vim osx-build.sh # setting prefix for MacPorts
Hm. I found this in the instructions:
# CONFFLAGS="--enable-osxapp" # comment out line 24 But what else? - Sorry - "setting prefix for MacPorts" is far beyond my levels…
[ 'setting prefix for MacPorts' - I added that to note that my MacPorts installation isn't in the default location '/opt/local' but in '/Volumes/blue/mp', you can see a different path when comparing my configuration to yours. ]
Basically it is the point where you make any necessary changes to 'osx-build.sh' ('vim' is a command line editor, you probably prefer to use textedit with 'open -a textedit osx-build.sh'), be it to set the correct path to your MacPorts tree or to change configuration options (like disabling 'osxapp' by removing '--enable-osxapp').
I never built a native version without X11 - do you have a separate MacPorts tree where you built all the inkscape dependencies without X11 and using Quartz? Or do you have just the one MacPorts version in /opt/local' without any X11 dependencies? (I read your message [1] on the X11-users list, and am wondering if you mixed both variants in the same tree - AFAIK that's not recommended).
If you use a different MacPorts tree to build the Aqua version, just edit 'LIBPREFIX' on line 26 of 'osx-build.sh' to use a different path. On the wiki page describing your first build experience in September you mention '/opt/local-native' - this is what needs to be set as LIBPREFIX if it is where the dependencies of inkscape are installed as native versions without X11 (all the gtk, glib, pango, cairo, fontconfig stuff...)
$ ./osx-build.sh c
o.k. - tried that, came out with:
Configuration:
Source code location: . Destination path prefix: /Users/bub/Desktop/inkscape-0.47/packaging/macosx/../../Build Compiler: ccache g++ CPPFLAGS: -Wall -Wformat -Wformat-security -W -D_FORTIFY_SOURCE=2 -I/opt/local/include CXXFLAGS: -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -O3 -Wall CFLAGS: -Wno-pointer-sign -O3 -Wall LDFLAGS: -L/opt/local/lib Use Xft font database: yes Use gnome-vfs: yes Use openoffice files: yes Use MMX optimizations: no Use relocation support: no Internal Python: skipped Internal Perl: skipped Enable LittleCms: yes Enable Poppler-Cairo: yes ImageMagick Magick++: no Libwpg: yes
head: ../../.svn/entries: No such file or directory
looks ok to me (if '/opt/local' is what you need for the Aqua version). Else - change 'LIBPREFIX' and rerun './osx-build.sh c'
I guess the last linie is about the thing with macports prefix?
I get the line about the svn entries too, but I think that's because it still tries to retrieve the SVN revision number and fails because it isn't a checkout from the repositories but a release tarball (no revision number is added to the version string).
And now - how do I go on?
the next step: building inkscape with
$ ./osx-build.sh b
and if this succeeds, installing it locally with
$ ./osx-build.sh i
and it should be ready to be used.
~suv
[1] Inkscape 0.46 crash with 'FcStrListCreate'
That crash looks like a known issue to me - I can search the bug number if needed, the fix could be necessary on two levels. first try this: 1) clear the user font cache (rm ~/.fontconfig/*) 2) restart Inkscape if that doesn't fix it, you have to edit the font configuration file inside the 0.46 app bundle, I'll post a follow-up with instructions and the link to the corresponding bug report.