GNOME Bugzilla – Bug 570208
vte fails to build outside source tree
Last modified: 2009-02-02 15:09:17 UTC
When building vte outside source tree, the following error is found: - In python/, vtemodule.c fails to build, due to vtetypebuiltins.h and vteversion.h: ---8<--- gcc -DHAVE_CONFIG_H -I. -I/home/thep/vcs/gnome_svn/vte/python -I.. -I/home/gnome2/include/glib-2.0 -I/home/gnome2/lib64/glib-2.0/include -I/home/gnome2/include/pango-1.0 -I/home/gnome2/include/gtk-2.0 -I/home/gnome2/lib64/gtk-2.0/include -I/home/gnome2/include/atk-1.0 -I/home/gnome2/include/cairo -I/home/gnome2/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/python2.5 -I/usr/include/python2.5 -I/home/gnome2/include/pygtk-2.0 -I/home/gnome2/include/glib-2.0 -I/home/gnome2/lib64/glib-2.0/include -g -O2 -I/home/gnome2/include -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Waggregate-return -Wcast-align -Wimplicit -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wmissing-format-attribute -Wshadow -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -fno-common -Wno-switch-enum -MT vtemodule_la-vtemodule.lo -MD -MP -MF .deps/vtemodule_la-vtemodule.Tpo -c /home/thep/vcs/gnome_svn/vte/python/vtemodule.c -fPIC -DPIC -o .libs/vtemodule_la-vtemodule.o In file included from /home/thep/vcs/gnome_svn/vte/python/vtemodule.c:27: /home/thep/vcs/gnome_svn/vte/python/../src/vte.h:30:29: error: vtetypebuiltins.h: No such file or directory /home/thep/vcs/gnome_svn/vte/python/../src/vte.h:31:24: error: vteversion.h: No such file or directory make[2]: *** [vtemodule_la-vtemodule.lo] Error 1 make[2]: Leaving directory `/home/thep/build/gnome_svn/vte/python' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/thep/build/gnome_svn/vte' make: *** [all] Error 2 ---8<--- Both files are generated under $(top_builddir) root. So, additional -I CFLAGS is required to reach them.
Created attachment 127759 [details] [review] Add -I CFLAGS This patch allows non-source-dir build in my machine.
Fixed in svn.