Compilation fails when using --with-python flag
Configure doesn't complains, but still inkscape building fail although I have python installed. Two versions exactly: 2.4.4 and 2.3.5. This is the error message:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/perl5/5.8.8/i686-linux/CORE -I/usr/include/python2.4 -I/usr/include/freetype2 -pthread -DORBIT2=1 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DRELAYTOOL_CRYPTO='static const int libcrypto_is_present = 1; static int __attribute__((unused)) libcrypto_symbol_is_present(char *m) { return 1; }' -DRELAYTOOL_SSL='static const int libssl_is_present = 1; static int __attribute__((unused)) libssl_symbol_is_present(char *m) { return 1; }' -DHAVE_SSL -I/usr/include/freetype2 -DPNG_NO_MMX_CODE -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -DPOTRACE="potrace" -DPNG_NO_MMX_CODE -pthread -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/atkmm-1.6 -I/usr/include/atk-1.0 -I/usr/include/libxml2 -I/usr/include/gtkspell-2.0 -I../cxxtest -Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -D_FORTIFY_SOURCE=2 -Wno-unused-parameter -g -O2 -MT extension/script/InkscapePython.o -MD -MP -MF "extension/script/.deps/InkscapePython.Tpo" \ -c -o extension/script/InkscapePython.o `test -f 'extension/script/InkscapePython.cpp' || echo './'`extension/script/InkscapePython.cpp; \ then mv -f "extension/script/.deps/InkscapePython.Tpo" "extension/script/.deps/InkscapePython.Po"; \ else rm -f "extension/script/.deps/InkscapePython.Tpo"; exit 1; \ fi extension/script/InkscapePython.cpp: In member function 'virtual bool Inkscape::Extension::Script::InkscapePython::interpretScript(const Glib::ustring&, Glib::ustring&, Glib::ustring&)': extension/script/InkscapePython.cpp:466: warning: unused variable 'line' make[2]: *** No rule to make target `extension/script/cxx/cxxextensions.c', needed by `extension/script/cxx/cxxextensions.o'. Stop. make[2]: Leaving directory `/home/vlada/inkscape/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/vlada/inkscape' make: *** [all] Error 2 localhost inkscape #
Vladimir Savic wrote:
Configure doesn't complains, but still inkscape building fail although I have python installed. Two versions exactly: 2.4.4 and 2.3.5. This is the error message:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/perl5/5.8.8/i686-linux/CORE -I/usr/include/python2.4 -I/usr/include/freetype2 -pthread -DORBIT2=1 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DRELAYTOOL_CRYPTO='static const int libcrypto_is_present = 1; static int __attribute__((unused)) libcrypto_symbol_is_present(char *m) { return 1; }' -DRELAYTOOL_SSL='static const int libssl_is_present = 1; static int __attribute__((unused)) libssl_symbol_is_present(char *m) { return 1; }' -DHAVE_SSL -I/usr/include/freetype2 -DPNG_NO_MMX_CODE -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -DPOTRACE="potrace" -DPNG_NO_MMX_CODE -pthread -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/atkmm-1.6 -I/usr/include/atk-1.0 -I/usr/include/libxml2 -I/usr/include/gtkspell-2.0 -I../cxxtest -Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsi gn-compare -Woverloaded-virtual -Wswitch -D_FORTIFY_SOURCE=2 -Wno-unused-parameter -g -O2 -MT extension/script/InkscapePython.o -MD -MP -MF "extension/script/.deps/InkscapePython.Tpo" \ -c -o extension/script/InkscapePython.o `test -f 'extension/script/InkscapePython.cpp' || echo './'`extension/script/InkscapePython.cpp; \ then mv -f "extension/script/.deps/InkscapePython.Tpo" "extension/script/.deps/InkscapePython.Po"; \ else rm -f "extension/script/.deps/InkscapePython.Tpo"; exit 1; \ fi extension/script/InkscapePython.cpp: In member function 'virtual bool Inkscape::Extension::Script::InkscapePython::interpretScript(const Glib::ustring&, Glib::ustring&, Glib::ustring&)': extension/script/InkscapePython.cpp:466: warning: unused variable 'line' make[2]: *** No rule to make target `extension/script/cxx/cxxextensions.c', needed by `extension/script/cxx/cxxextensions.o'. Stop. make[2]: Leaving directory `/home/vlada/inkscape/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/vlada/inkscape' make: *** [all] Error 2 localhost inkscape #
Vladimir,
I don't think that this has anything to do with your Python version.
Possibly your SVN checkout has a problem. Note that the directory in the error message is "cxx" while the actual directory is "CXX."
Possibly deleting the extension/script directory and doing an svn update to restore it from the server will give you a better copy of it.
bob
Possibly your SVN checkout has a problem. Note that the directory in the error message is "cxx" while the actual directory is "CXX."
Possibly deleting the extension/script directory and doing an svn update to restore it from the server will give you a better copy of it.
bob
Thanx for the fast reply!
I'm getting somewhere!
make[2]: Entering directory `/home/vlada/inkscape/src' if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/perl5/5.8.8/i686-linux/CORE -I/usr/include/python2.4 -I/usr/include/freetype2 -pthread -DORBIT2=1 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DRELAYTOOL_CRYPTO='static const int libcrypto_is_present = 1; static int __attribute__((unused)) libcrypto_symbol_is_present(char *m) { return 1; }' -DRELAYTOOL_SSL='static const int libssl_is_present = 1; static int __attribute__((unused)) libssl_symbol_is_present(char *m) { return 1; }' -DHAVE_SSL -I/usr/include/freetype2 -DPNG_NO_MMX_CODE -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -DPOTRACE="potrace" -DPNG_NO_MMX_CODE -pthread -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/atkmm-1.6 -I/usr/include/atk-1.0 -I/usr/include/libxml2 -I/usr/include/gtkspell-2.0 -I../cxxtest -Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -D_FORTIFY_SOURCE=2 -Wno-unused-parameter -g -O2 -MT extension/script/InkscapePython.o -MD -MP -MF "extension/script/.deps/InkscapePython.Tpo" \ -c -o extension/script/InkscapePython.o `test -f 'extension/script/InkscapePython.cpp' || echo './'`extension/script/InkscapePython.cpp; \ then mv -f "extension/script/.deps/InkscapePython.Tpo" "extension/script/.deps/InkscapePython.Po"; \ else rm -f "extension/script/.deps/InkscapePython.Tpo"; exit 1; \ fi In file included from extension/script/InkscapePython.cpp:19: extension/script/CXX/Extensions.hxx:48:28: error: CXX/WrapPython.h: No such file or directory extension/script/CXX/Extensions.hxx:49:27: error: CXX/Version.hxx: No such file or directory extension/script/CXX/Extensions.hxx:50:26: error: CXX/Config.hxx: No such file or directory extension/script/CXX/Extensions.hxx:51:27: error: CXX/Objects.hxx: No such file or directory In file included from extension/script/InkscapePython.cpp:20: extension/script/CXX/Objects.hxx:44:29: error: CXX/Exception.hxx: No such file or directory ...
I've found the file...
localhost inkscape # locate WrapPython.h /home/vlada/inkscape/src/extension/script/CXX/WrapPython.h
How's making mistake now? :)
Vladimir
participants (2)
-
Bob Jamison
-
Vladimir Savic