Typo
[linux_from_scratch_hints.git] / OLD / gtk.txt
blob5ad7a90aacede14abcdb0bf7ae139096e2ce830f
1 TITLE:          GTK+ compilation problems
2 LFS VERSION:    any
3 AUTHOR:         unknown <unknown>
5 SYNOPSIS:
6         This addresses compilation problems in the 1.2.7 version of GTK+. (ed. note: this problem has been fixed in 1.2.8)
8 HINT:
9 One major blunder I think I found was when I tried to compile gtk+1.2.7.
10 I couldn't first but I found the solution and so here it is:
12 tar xfz gtk+1.2.7.tar.gz ; rm gtk+1.2.7.tar.gz
13 cd gtk+1.2.7 ( There is a gdk and a gtk directory in the main direcotory )
14 Thus: cd gtk 
15 rm Makefile ; rm Makefile.in
16 vi Makefile.am
17 Search for the following lines:
19 # GTK+ header files that don't get installed
20 gtk_private_h_sources = @STRIP_BEGIN    \
21 @STRIP_END@
23 If you don't put something in there and you try to compile it, you get the
24 following error message:
25  Insufficient number of arguments (0) to function `strip'.  Stop.
26 So I copied a header file from the gdk directory to the gtk directory and named
27 it dummy.h
28 cp gdk.h ../gtk/dummy.h. Put this dummy.h into the Makefile.am - Now it has an
29 argument, right?-: (don't forget the Tab's!)
31 # GTK+ header files that don't get installed
32 gtk_private_h_sources = @STRIP_BEGIN    \
33                 dummy.h         \
34 @STRIP_END@
35 Now you can do in the main directory an automake and compile it. make and make
36 install. voila.
37 It took me one whole day to figure this out, so I hope this will be usefull to
38 you when you get there.
39 I know it's not the best way, but it worked for me.