Compilation of Gobject-introspection
- From: Dwijadas Dey <dwijad gmail com>
- To: gtk-devel-list gnome org
- Subject: Compilation of Gobject-introspection
- Date: Wed, 21 Sep 2011 18:46:12 +0530
Hi
list users
I am trying to compile gobject-introspection-0.6.2
in centOS 5.6 [Linux localhost.localdomain 2.6.39-4.el5.elrepo #1 SMP
PREEMPT Thu Aug 4 19:58:19 EDT 2011 i686 i686 i386 GNU/Linux]. When i
run ./configure it checks for all dependencies and run successfully
but when i run i got a error <gio/gio.h> not found. but in fact i have
set the GIO_UNIX_CFLAGS in the ./configure options. The configure
command is ->
./configure GIO_UNIX_CFLAGS="-I/usr/local/glib/include/gio-unix-2.0
-I/gio/usr/local/glib/include/glib-2.0
-I/usr/local/glib/lib/glib-2.0/include"
GIO_UNIX_LIBS="/usr/local/glib/lib"
GOBJECT_CFLAGS="-I/usr/local/glib/include/glib-2.0"
GOBJECT_LIBS="/usr/local/glib/lib"
I have compiled glib 2.18 in /usr/local/glib and the directory
structure's are like ->
/usr/local/glib
/usr/local/glib/bin
/usr/local/glib/include
/usr/local/glib/lib
/usr/local/glib/share
.....
.....
/usr/local/glib/include/gio-unix-2.0/gio
/usr/local/glib/include/glib-2.0/gio
.....
.....
The error is like->
make all-recursive
make[1]: Entering directory `/root/Downloads/gobject-introspection-0.6.2'
Making all in girepository
make[2]: Entering directory
`/root/Downloads/gobject-introspection-0.6.2/girepository'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/local/libffi/lib/libffi-3.0.8/include -fno-strict-aliasing
-Wsign-compare -Wcast-align -Wpointer-arith -Wnested-externs
-Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wall -g
-O2 -MT libgirepository_1_0_la-gdump.lo -MD -MP -MF
.deps/libgirepository_1_0_la-gdump.Tpo -c -o
libgirepository_1_0_la-gdump.lo `test -f 'gdump.c' || echo
'./'`gdump.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I..
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/local/libffi/lib/libffi-3.0.8/include -fno-strict-aliasing
-Wsign-compare -Wcast-align -Wpointer-arith -Wnested-externs
-Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wall -g
-O2 -MT libgirepository_1_0_la-gdump.lo -MD -MP -MF
.deps/libgirepository_1_0_la-gdump.Tpo -c gdump.c -fPIC -DPIC -o
.libs/libgirepository_1_0_la-gdump.o
gdump.c:25:21: error: gio/gio.h: No such file or directory
gdump.c:33: error: expected ‘)’ before ‘*’ token
gdump.c:54: error: expected ‘)’ before ‘*’ token
gdump.c: In function ‘invoke_get_type’:
gdump.c:75: error: ‘G_IO_ERROR’ undeclared (first use in this function)
gdump.c:75: error: (Each undeclared identifier is reported only once
gdump.c:75: error: for each function it appears in.)
gdump.c:76: error: ‘G_IO_ERROR_FAILED’ undeclared (first use in this function)
gdump.c: At top level:
gdump.c:85: error: expected declaration specifiers or ‘...’ before
‘GOutputStream’
gdump.c: In function ‘dump_properties’:
...........
..............
............
**************************************************************************************************
This is the configuration options
./configure GIO_UNIX_CFLAGS="-I/usr/local/glib/include/gio-unix-2.0
-I/gio/usr/local/glib/include/glib-2.0
-I/usr/local/glib/lib/glib-2.0/include"
GIO_UNIX_LIBS="/usr/local/glib/lib"
GOBJECT_CFLAGS="-I/usr/local/glib/include/glib-2.0"
GOBJECT_LIBS="/usr/local/glib/lib"
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for Win32... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for dlopen in -ldl... yes
checking for the suffix of shared libraries... .so
checking for GOBJECT... yes
checking for GTHREAD... yes
checking for GIO_UNIX... yes
checking for SCANNER... yes
checking for FFI... yes
checking for time_t... yes
checking size of time_t... 4
checking for GIREPO... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for working strtod... yes
checking for memchr... yes
checking for strchr... yes
checking for strspn... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoull... yes
checking for backtrace... yes
checking for backtrace_symbols... yes
checking whether Python support is requested... checking for a Python
interpreter with version >= 2.5... python2.5
checking for python2.5... /usr/local/bin/python2.5
checking for python2.5 version... 2.5
checking for python2.5 platform... linux2
checking for python2.5 script directory... ${prefix}/lib/python2.5/site-packages
checking for python2.5 extension module directory...
${exec_prefix}/lib/python2.5/site-packages
checking for headers required to compile python extensions... found
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gir/Makefile
config.status: creating girepository/Makefile
config.status: creating giscanner/Makefile
config.status: creating giscanner/config.py
config.status: creating m4/Makefile
config.status: creating tools/Makefile
config.status: creating tests/Makefile
config.status: creating tests/invoke/Makefile
config.status: creating tests/offsets/Makefile
config.status: creating tests/scanner/Makefile
config.status: creating tests/repository/Makefile
config.status: creating tests/everything/Makefile
config.status: creating gobject-introspection-1.0.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
****************************************************************************************************
By observing the make errors, its obvious that <gio/gio.h> is not
found which is in the directory /usr/local/glib/include/glib-2.0/gio
and set through GIO_UNIX_CFLAGS variable.
Looking forward for a response
Thanks
Dwdy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]