On Tuesday 24 July 2001 13:03, arro wrote:
> sorry , there was a little typing error ...i meant "glib.h" and i have the
> file , version 1.2 and 2.0 ..that is why i was wondering ...the file exists
> !!

Let's have a look at the compilation line in your original post:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -DVERSION=\"0.0.4\" 
-DPACKAGE=\"xmps-win32-plugin\" -I/usr/local/include -I../src -rdynamic -fPIC 
-D__WINE__ -Ddbg_printf=__vprintf -DTRACE=__vprintf 
-DWIN32_PATH=\"/usr/lib/win32\" -g -O2 -c win32_codec.c  -fPIC -DPIC -o 
.libs/win32_codec.lo

and look for the all the occurences of the -I switch. 
We see -I. -I.. -I/usr/local/include -I../src
which means that gcc will look for include files in ., .., /usr/local/incluce 
and ../src.

But glib.h is in /usr/include/glib-1.2/glib.h so it's no wonder gcc complains!
What is the easiest way to add -I/usr/include/glib-1.2 to that command line? 
Well, I'd be tempted to just do some copy and paste on the command line.
It's also an option to add that directory to the include path when you run 
./configure.
./configure --help gives you a list of all the switches.
I'd try:
./configure --includedir=/usr/include/glib-1.2/
or 
/configure --includedir=/usr/include/glib-2.0/ 
it that's where your 2.0 include files are.
Of course I've never compiled xmps or its plugins so I don't know if there 
are some more surprises lurking around the corner :-)

Narfi.

Reply via email to