Static OS X Binary

Bug #170476 reported by N8gray-users
2
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Michael Wybrow

Bug Description

Greetings,

I'm really interested in Inkscape, but at the moment there's no way
to get an OS X Inkscape binary without building it (and all its
dependencies) yourself. There are Fink and OpenDarwin to help
you, but I've never managed to use Fink without hitting problems.
Also, the Mac community is like the Windows community in that
we expect to just grab binaries and go. I've wanted to try inkscape
several times for makig conference posters but each time I've
been stopped in my tracks by the prospect of spending *hours*
building binaries and solving the inevitable Fink problems that
would come up along the way.

You would make me really happy and probably attract quite a few
users in the Mac-heavy graphic arts community if you would take
this one step.

Thanks,
-Nathan

Revision history for this message
Bug Importer (bug-importer) wrote :

hmmm,
to build inkscape 0.40, you can use your darwinports, it
works perfectly well.... almost.

How to do it (as I did, it's a little tip, don't know if it
could help)
You have to get the lastest upgrades from ADC, gcc3.3 and
all that stuffs. With the versions which come from the
binaries of XCode1.2 it won't work. With the one from
XCode1.5 you just have to upgrade them.

Then, install darwinports and X11User.dmg
do :
mv /etc/X11 /etc/X11.bak
mv /usr/X11R6 /usr/X11R6.bak
mv /etc/fonts /etc/fonts.bak
then
port -v install xfree86 (now we have xorg, I don't know how
it works)
port -v install inkscape
(zzzZZZzzz, go to sleep, take a coffee, go to work, tomorrow
night you'll get it all).
mv /etc/X11 /etc/X11.dports (in case you need them again)
mv /usr/X11R6 /usr/X11R6.dports
mv /etc/fonts /etc/fonts.dports

mv /etc/X11.bak /etc/X11
mv /usr/X11R6.bak /usr/X11R6
mv /etc/fonts.bak /etc/fonts

launch X11 using the X11.app, it opens a xterm, type:
/opt/local/bin/inkscape&

that's all folks!

Now, I don't know anything about packaging it, because there
are quite a lot of dependancies (gtk2.4, X11, quite a lot of
things from gnome...)
your package would be quite heavy...
I'll try to learn about how to make packages, and try to see
if I can do it.
(note that I *don't say* I'll do it, just I'll see if it's
possible)

--
Clément Varaldi

Revision history for this message
N8gray-users (n8gray-users) wrote :

I have finally used DarwinPorts to build inkscape, but the point is that
it's
an all day process. That's a *huge* barrier -- if you have any real
desire
to attract users in the Mac community it's something you'll need to
address.

For the 0.40 release you packaged static builds for Linux. The same
basic build process should work for OS X as well. If that doesn't work
for some reason, you can try 'otool -L inkscape' to see which dynamic
libraries are needed and then look into bundling them together somehow.
It really makes no difference how big the package is -- disk space is
cheap but time is not. You may need to use the DYLD_LIBRARY_PATH
environment variable to make things work in the bundle. You might want
to look at the way Gimp.app does this for example.

Now that I've got a working version I would be happy to help with this.

Revision history for this message
Bug Importer (bug-importer) wrote :

if you can sucessfully build inkscape using darwinports,
then the port command can be used to create a distributable
binary package using the the 'pkg' target ie -> 'port pkg
inkscape'

Revision history for this message
N8gray-users (n8gray-users) wrote :

That's a start, but it only packages Inkscape and its support files. It
doesn't include dependencies like gtk and friends. Look at gimp.app, the

packaged version of the Gimp, for an idea of what I'm suggesting.

I actually made quite a bit of progress writing a script to automatically

bundle up inkscape and all of its dependencies, but I hit some problem
getting Pango to work. I'll attach my scripts to this bug report and
maybe somebody else can help. The idea is that you
should be able to run the pkg-inkscape script (after adjusting the
variables at the top of it) then use the included "inkscape" script to run

inkscape itself. Once you can do that then packaging as an OS X .app is
simple.

Revision history for this message
Michael Wybrow (mjwybrow) wrote :

Nathan,
We now have a Mac OS X app bundle, similar to gimp.app.
This will be an official release from 0.42 onwards. At the
moment you can download a dmg for 0.42pre1. Please try it
out and report an problems:
http://sourceforge.net/project/showfiles.php?group_id=93438&package_id=99112&release_id=339813

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.