Re: [Forum] RH 8.0 og kompilering

From: Lars Clausen <lrclause@cs.uiuc.edu>
Date: Sun Jun 22 2003 - 14:15:52 CEST

On Wed, 18 Jun 2003, Torben Andersen wrote:
> Henrik Brix Andersen wrote:
>
>>>make[3]: Entering directory `/home/toran/nvclock0.6.2/src/gtk2'
>>>source='main.c' object='main.o' libtool=no \
>>>depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
>>>depmode=gcc3 /bin/sh ../../depcomp \
>>>gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../backend -c `test -f 'main.c' || echo './'`main.c
>>>main.c:10:21: gtk/gtk.h: No such file or directory
>>>In file included from main.c:12:
>>>callbacks.h:1:21: gtk/gtk.h: No such file or directory
>>>
>>
>>Du mangler givetvis at installere gtk2-devel pakken.
>>
>>./Brix
>>
> Jeg mener, at have installeret rub og stub:
>
> [root@0x50a12f39 toran]# rpm -qa |grep gtk |grep devel
> pygtk2-devel-1.99.12-7
> gtk+-devel-1.2.10-22
> gtk2-devel-2.0.6-8
> gtkhtml2-devel-2.0.1-2
> gtkhtml-devel-1.0.4-3
>
> og find viser:
>
> [root@0x50a12f39 toran]# find / -name "gtk.h"
> /usr/include/gtk-1.2/gtk/gtk.h
> /usr/include/gtk-2.0/gtk/gtk.h
>
> Så det er ikke det. Men ligger de der, hvor gcc forventer det eller
> skal gcc konfigureres ??

Placeringen bliver håndteret af pkg-config under GTK2. Prøv

pkg-config --cflags gtk+-2.0

og se om den giver det rette.

Det ser ikke ud som om den prøver at bruge GTK2 -- der skulle være mange
flere options til GCC. Hvad siger ./configure?

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?
Received on Sun Jun 22 14:15:54 2003

This archive was generated by hypermail 2.1.8 : Tue Jul 19 2005 - 16:04:50 CEST