Problem with INKSCAPE_DATADIR set to "${datarootdir}"
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"
Does that look wrong?
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"
I don't believe I've changed automake or autoconf versions since it last worked for me. This has just appeared after updating from SVN -- I hadn't done an SVN update for a few weeks.
Any ideas?
Cheer, Michael
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"
Does that look wrong?
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"
I don't believe I've changed automake or autoconf versions since it last worked for me. This has just appeared after updating from SVN -- I hadn't done an SVN update for a few weeks.
Any ideas?
Cheer, Michael
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?
bob
get it to work
On Fri, 4 Aug 2006, Bob Jamison wrote:
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.
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?
Thankyou. I will read up and figure out what is going on. I obviously missed the previous thread, I'll go back and look for that now.
Cheers, Michael
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
Michael Wybrow <mjwybrow@...1047...> writes:
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.
There is a bug about it, with a suggested solution: https://sourceforge.net/tracker/index.php?func=detail&aid=1521963&gr...
Cheers, Colin
participants (3)
-
Bob Jamison
-
Colin Marquardt
-
Michael Wybrow