MenTaLguY <mental@...3...> writes:
On Mon, 2004-06-14 at 17:58, Colin Marquardt wrote:
It is still a painful thing to compile - starting with the autogen.sh run. Do you want me to report all things I encounter step by step?
Yes, please. Keep documenting this on the Wiki also, of course.
Okay, here we go:
,---- | if ! $ACLOCAL $ACLOCAL_FLAGS; then `----
as used in autogen.sh seems to be a bashism. Using bash in the shebang line, I get:
$ ./autogen.sh --prefix=/home/foo/Tools/ --includedir=/home/foo/Tools/include CPPFLAGS=-I/home/foo/Tools/include
I am testing that you have the required versions of libtool, autoconf, automake, glib-gettextize and intltoolize. This test is not foolproof, so if anything goes wrong, see the file HACKING for more information...
checking for autoconf >= 2.52 ... yes (version 2.59) checking for automake >= 1.7 ... yes (version 1.8.3) checking for glib-gettextize >= 2.0.0 ... yes (version 2.4.2) checking for intltool >= 0.17 ... yes (version 0.30) /home/foo/Tools//share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal /home/foo/Tools//share/aclocal/libart.m4:11: warning: underquoted definition of AM_PATH_LIBART src/Makefile.am:35: library used but `RANLIB' is undefined src/Makefile.am:35: src/Makefile.am:35: The usual way to define `RANLIB' is to add `AC_PROG_RANLIB' src/Makefile.am:35: to `configure.in' and run `autoconf' again. ./autogen.sh: libtoolize: command not found Copying file po/Makefile.in.in
Please add the files codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4 progtest.m4 from the /home/foo/Tools//share/aclocal directory to your autoconf macro directory or directly to your aclocal.m4 file. You will also need config.guess and config.sub, which you can get from ftp://ftp.gnu.org/pub/gnu/config/.
Looks like a unified context diff. done
(I pruned the reporting stuff.)
That looked fairly okay so far, and I ran configure.
Isn't there a way to easily compile without intltool? I get ,---- | configure: error: XML::Parser perl module is required for intltool `----
and installing additional Perl modules is a pain here (especially if the installed Perl version is old).
I got around it by commenting out
,---- | intltoolize --copy --force --automake `----
in autogen.sh and
,---- | AC_PROG_INTLTOOL(0.22) `----
in configure.in.
Ah, and this left some line like "@INTLTOOL_...@" near the end of the Makefile which I commented out too.
Next thing was:
[...] rm -f libinkpre.a ar cru libinkpre.a arc-context.o attributes.o color.o desktop-affine.o desktop.o desktop-events.o desktop-handles.o desktop-snap.o dir-util.o document.o document-undo.o draw-context.o dropper-context.o dyna-draw-context.o event-context.o extract-uri.o file.o geom.o help.o inkscape.o inkscape-stock.o interface.o knot.o knotholder.o marker-status.o mod360.o node-context.o nodepath.o object-edit.o object-ui.o path-chemistry.o prefix.o prefs-utils.o print.o rect-context.o rubberband.o satisfied-guide-cns.o select-context.o selection-chemistry.o selection.o select-toolbar.o seltrans.o selcue.o seltrans-handles.o shortcuts.o slideshow.o sp-anchor.o sp-animation.o sp-chars.o sp-clippath.o sp-cursor.o sp-defs.o sp-ellipse.o sp-gradient.o sp-guide.o sp-image.o spiral-context.o sp-item.o sp-item-group.o sp-item-notify-moveto.o sp-item-rm-unsatisfied-cns.o sp-item-transform.o sp-item-update-cns.o sp-line.o splivarot.o sp-marker.o sp-mask.o sp-metrics.o sp-namedview.o sp-object.o sp-object-gro up .o sp-object-repr.o sp-offset.o sp-paint-server.o sp-path.o sp-pattern.o sp-polygon.o sp-polyline.o sp-rect.o sp-root.o sp-shape.o sp-spiral.o sp-star.o sp-symbol.o sp-text.o sp-typeset.o sp-typeset-layout.o sp-typeset-kplayout.o sp-typeset-utils.o sp-use.o star-context.o streams-gzip.o streams-handles.o streams-zlib.o streams-jar.o style.o svg-view.o text-context.o toolbox.o tools-switch.o uri.o uri-references.o verbs.o version.o view.o zoom-context.o libinkpre.a /bin/bash: ./libinkpre.a: Permission denied gmake[2]: *** [libinkpre.a] Error 126 gmake[2]: Leaving directory `/home/foo/Tools/inkscape-20040612_patched/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/home/foo/Tools/inkscape-20040612_patched' gmake: *** [all] Error 2
Looked in the Makefile, and it seems like $RANLIB is empty (as it said in the autogen.sh run). I just uncommented AC_PROG_RANLIB, reran all this again, and it worked. Any ideas why it's not picking up ranlib?
Next thing:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/home/foo/Tools/include/gtk-2.0 -I/home/foo/Tools//lib/gtk-2.0/include -I/home/foo/Tools//include/atk-1.0 -I/home/foo/Tools//include/pango-1.0 -I/home/foo/Tools//include -I/home/foo/Tools//include/freetype2 -I/usr/openwin/include -I/home/foo/Tools//include/glib-2.0 -I/home/foo/Tools//lib/glib-2.0/include -I/home/foo/Tools/include/libxml2 -I/home/foo/Tools//lib/sigc++-1.2/include -I/home/foo/Tools//include/sigc++-1.2 -I/home/foo/Tools//include/gtkmm-2.4 -I/home/foo/Tools//lib/gtkmm-2.4/include -I/home/foo/Tools//include/glibmm-2.4 -I/home/foo/Tools//lib/glibmm-2.4/include -I/home/foo/Tools//include/gdkmm-2.4 -I/home/foo/Tools//lib/gdkmm-2.4/include -I/home/foo/Tools//include/pangomm-1.4 -I/home/foo/Tools//include/atkmm-1.6 -I/home/foo/Tools//include/sigc++-2.0 -I/home/foo/Tools//lib/sigc++-2.0/include -I/home/foo/T ools/include -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.cpp; \ then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi main.cpp: In function `int main(int, const char**)': main.cpp:180: error: `bind_textdomain_codeset' undeclared (first use this function) main.cpp:180: error: (Each undeclared identifier is reported only once for each function it appears in.) main.cpp:230: error: `fpresetsticky' undeclared (first use this function) main.cpp: In function `int sp_main_gui(int, const char**)': main.cpp:251: error: `bind_textdomain_codeset' undeclared (first use this function) main.cpp: In function `int sp_main_console(int, const char**)': main.cpp:335: error: `bind_textdomain_codeset' undeclared (first use this function) gmake[2]: *** [main.o] Error 1 gmake[2]: Leaving directory `/home/foo/Tools/inkscape-20040612_patched/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/home/foo/Tools/inkscape-20040612_patched' gmake: *** [all] Error 2
I just defined bind_textdomain_codeset on my own (also had to do it in inkview.cpp). Is this resulting from my crude intltool surgery?
I just uncommented the fpresetsticky line and the one after it.
Unfortunately I think we do want to use AM_CONFIG_HEADER in this case. Have to look further into why it's not working out here.
Hmm, I don't see this error now... maybe it was a bashism too? Though I cannot see why/how... Need to check.
Cheers, Colin