Building/installing from SVN using different --prefix problem
I used to be able to run two different version of Inkscape by installing the latest official release from Gentoo's portage, and getting the latest from SVN (just to see if any bugs or issues I want to report are perhaps already fixed) and specifying --prefix=/usr/development (for example) to the ./configure script before building, but it doesn't seem to work anymore. When I launch the svn version by running /usr/development/bin/inkscape it just gives en error dialog with "Inkscape encountered an internal error and will close now." and then quits, it also spits out a bunch of errors on the console:
-------------------------------------------------------------------------- ** (inkscape:3509): CRITICAL **: Inkscape::XML::Document* sp_repr_read_file(cons t gchar*, const gchar*): assertion `Inkscape::IO::file_test( filename, G_FILE_TE ST_EXISTS )' failed
** (inkscape:3509): WARNING **: Unable to read keys file ${datarootdir}/inkscape /keys/default.xml
(inkscape:3509): GLib-GObject-WARNING **: invalid cast from `GtkLabel' to `GtkCo ntainer'
(inkscape:3509): Gtk-CRITICAL **: gtk_container_foreach: assertion `GTK_IS_CONTA INER (container)' failed
Emergency save activated! Emergency save completed. Inkscape will close now. If you can reproduce this crash, please file a bug at www.inkscape.org with a detailed description of the steps leading to the crash, so we can fix it.
** (inkscape:3509): WARNING **: failed to load icon 'file_import'
** (inkscape:3509): WARNING **: failed to load icon 'file_export'
(and a bunch more icon warnings) --------------------------------------------------------------------------
I used the following commands to fetch, build, install and run inkscape:
$ svn co https://svn.sourceforge.net/svnroot/inkscape/inkscape/trunk inkscape $ cd inkscape $ ./autogen.sh $ ./configure --prefix=/usr/development $ make $ su # make install # exit $ /usr/development/bin/inkscape
All the errors about failing to load icons (and when Inkscape pops up with the error before closing does seem to show a rather empty UI) make me suspect it can't find the files etc. it needs that are installed under /usr/development.
On the other hand, the output from ./configure does indicate that it is actually using the prefix and all the files seem to be installed properly.
Did I do something wrong or did I check out at a bad time?
Hans Nieser wrote:
I used to be able to run two different version of Inkscape by installing the latest official release from Gentoo's portage, and getting the latest from SVN (just to see if any bugs or issues I want to report are perhaps already fixed) and specifying --prefix=/usr/development (for example) to the ./configure script before building, but it doesn't seem to work anymore. When I launch the svn version by running /usr/development/bin/inkscape it just gives en error dialog with "Inkscape encountered an internal error and will close now." and then quits, it also spits out a bunch of errors on the console:
** (inkscape:3509): WARNING **: failed to load icon 'file_import'
** (inkscape:3509): WARNING **: failed to load icon 'file_export'
(and a bunch more icon warnings)
I used the following commands to fetch, build, install and run inkscape:
$ svn co https://svn.sourceforge.net/svnroot/inkscape/inkscape/trunk inkscape $ cd inkscape $ ./autogen.sh $ ./configure --prefix=/usr/development $ make $ su # make install # exit $ /usr/development/bin/inkscape
All the errors about failing to load icons (and when Inkscape pops up with the error before closing does seem to show a rather empty UI) make me suspect it can't find the files etc. it needs that are installed under /usr/development.
On the other hand, the output from ./configure does indicate that it is actually using the prefix and all the files seem to be installed properly.
Did I do something wrong or did I check out at a bad time?
Hm, this seems to have been reported earlier. If I recall correctly the problem lies with your personal configuration directory (located in ~/.inkscape). Try to delete this folder (it will automatically be recreated) and see if it helps (backup first!).
An older thread about this (?) issue was "Icons still missing :(" opened by David Christian Berg at 10 June 2006. I don't know what has changed since then, but a look there might give good hints.
- Spyros Blanas
Sk1p and I looked around, and apparently it is a symptom of different autoconf versions. Autoconf has started using $datarootdir instead of $datadir. $datarootdir not being defined results in it being passed literally to config.h, thus the erroneous prefix string. It has nothing to do with binreloc as I thought.
I guess it works in the release, since ./configure was generated by a recent autoconf.
Here is the reference: http://www.gnu.org/software/autoconf/manual/html_node/Changed-Directory-Vari...
Can someone look at this and help sk1p fix it? Thanks.
bob
Hans Nieser wrote:
I used to be able to run two different version of Inkscape by installing the latest official release from Gentoo's portage, and getting the latest from SVN (just to see if any bugs or issues I want to report are perhaps already fixed) and specifying --prefix=/usr/development (for example) to the ./configure script before building, but it doesn't seem to work anymore. When I launch the svn version by running /usr/development/bin/inkscape it just gives en error dialog with "Inkscape encountered an internal error and will close now." and then quits, it also spits out a bunch of errors on the console:
** (inkscape:3509): CRITICAL **: Inkscape::XML::Document* sp_repr_read_file(cons t gchar*, const gchar*): assertion `Inkscape::IO::file_test( filename, G_FILE_TE ST_EXISTS )' failed
** (inkscape:3509): WARNING **: Unable to read keys file ${datarootdir}/inkscape /keys/default.xml
(inkscape:3509): GLib-GObject-WARNING **: invalid cast from `GtkLabel' to `GtkCo ntainer'
(inkscape:3509): Gtk-CRITICAL **: gtk_container_foreach: assertion `GTK_IS_CONTA INER (container)' failed
Emergency save activated! Emergency save completed. Inkscape will close now. If you can reproduce this crash, please file a bug at www.inkscape.org with a detailed description of the steps leading to the crash, so we can fix it.
** (inkscape:3509): WARNING **: failed to load icon 'file_import'
** (inkscape:3509): WARNING **: failed to load icon 'file_export'
(and a bunch more icon warnings)
I used the following commands to fetch, build, install and run inkscape:
$ svn co https://svn.sourceforge.net/svnroot/inkscape/inkscape/trunk inkscape $ cd inkscape $ ./autogen.sh $ ./configure --prefix=/usr/development $ make $ su # make install # exit $ /usr/development/bin/inkscape
All the errors about failing to load icons (and when Inkscape pops up with the error before closing does seem to show a rather empty UI) make me suspect it can't find the files etc. it needs that are installed under /usr/development.
On the other hand, the output from ./configure does indicate that it is actually using the prefix and all the files seem to be installed properly.
Did I do something wrong or did I check out at a bad time?
Bob Jamison wrote:
http://www.gnu.org/software/autoconf/manual/html_node/Changed-Directory-Vari...
Can someone look at this and help sk1p fix it? Thanks.
By "fix", maybe at the bottom of configure.ac, checking both $datadir and $datarootdir before doing the AC_SUBST call.
participants (3)
-
Bob Jamison
-
Hans Nieser
-
Spyros Blanas