On Fri, 4 Aug 2006, Bob Jamison wrote:
Michael Wybrow wrote:
Hi all,
Inkscape SVN started recently crashing on startup since it can't find any of its share files. This is because of some defines in the generated config.h: #define INKSCAPE_DATADIR "${datarootdir}" #define PACKAGE_LOCALE_DIR "${datarootdir}/locale"
I believe these should have been expanded to the value of datarootdir. Interestingly the library path is correct: #define INKSCAPE_LIBDIR "/Users/mjwybrow/ws-svn/install/lib"
Recently, autoconf's new version changed its variable naming from ${prefix} and ${datadir} to ${datarootdir}. The change is to be able to use the new names. It is doc'd here:
http://www.gnu.org/software/autoconf/manual/html_node/Changed-Directory-Vari...
It would be good if you could get this to work. Obviously it needs a tweak or two to run on both versions of autoconf.
I thought we discussed this on the list a few weeks ago?
You're right, my exact problem was reported by another user on the mailing list. Several people offered suggestions but noone really pinpointed the cause of the problem. They solved the problem by copying the entire share tree into their ~/.inkscape/ directory so that the icons, etc, were found from there instead.
Re: The suggested change in the URL you gave: my copy of the generated Makefile.in does have the required line already: datarootdir = @datarootdir@
I've had a look at some of the autoconf, automake code but it is really all way beyond my understanding, and I just don't have time to spend learning them.
My guess is that datarootdir is used unexpanded a lot since I read somewhere you can override the directory at 'make install' time. Obviously the value needs to be expanded for inclusion in the config.h file as this is compiled into the executable before 'make install' is ever run.
FWIW, possibly I'm seeing this because I use separate compile directories. I have: ws-ink/inkscape - Inkscape source from SVN ws-ink/bld - build directory ws-ink/gbld - debug build directory ws-ink/install - install prefix, used to configure bld & gbld
Maybe someone with autoconf/automake knowledge could offer some suggestions?
Thanks, Michael