Re: GtkSourceView now works!
| From: | Anant Narayanan | Date: | Tue, 07 Mar 2006 17:10:18 +0000 |
| Subject: | Re: GtkSourceView now works! | ||
| References: | 1 2 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-2528@lists.php.net to get a copy of this message | ||
Dear Scott and Ivan,
> I updated from CVS, reconfigured, recompiled (with a make clean) and ran
> your test but I get the following:
>
> Fatal error: Class 'GtkSourceView' not found in
> /home/scott/playground/php-gtk/test.php on line 3
Funny, because it worked without any hitches on my system! While
configuring, make sure the following lines appear:
checking for sourceview support... yes
checking for gtksourceview-1.0 >= 1.2.0... yes
checking SOURCEVIEW_CFLAGS... -I/usr/include/gtksourceview-1.0
-I/usr/include/gtk-2.0 -I/usr/include/libxml2
..<snip>...
-I/usr/include/libart-2.0
checking SOURCEVIEW_LIBS... -Wl,--export-dynamic -lgtksourceview-1.0
-lgtk-x11-2.0 -lgnomeprint-2-2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
...<snip>...
This checks whether you really have gtksourceview-1.0 installed using
pkg-config. Same for GtkScintilla (try --enable-scintilla too!) Also
just try deleting the directory and trying a fresh cvs checkout, because
I notice that "make clean" doesn't quite do the job (The coverage
summary table does _NOT_ appear when I do make on an "unclean" directory).
You must get the coverage table summaries during make like:
http://www.kix.in/php-gtk2/gtksourceview.coverage
http://www.kix.in/php-gtk2/gtkscintilla.coverage
And some screen shots of both working on my system:
http://www.kix.in/php-gtk2/gtksourceview.png
http://www.kix.in/php-gtk2/gtkscintilla.png
Do let me know if you face any further trouble.
Thanks and Regards,
--
Anant
Find Freedom, Go Open Source!
http://www.kix.in/