Re: Extending PHP-Gtk2
| From: | Steph Fox | Date: | Tue, 07 Mar 2006 04:02:05 +0000 |
| Subject: | Re: Extending PHP-Gtk2 | ||
| References: | 1 2 3 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-2515@lists.php.net to get a copy of this message | ||
Didn't I say this already?
----- Original Message ----- From: "Andrei Zmievski" <andrei@gravitonic.com>
To: "Steph Fox" <steph@zend.com>
Cc: "Anant Narayanan" <anant@kix.in>; <php-gtk-dev@lists.php.net>
Sent: Tuesday, March 07, 2006 3:11 AM
Subject: Re: [PHP-GTK-DEV] Extending PHP-Gtk2
Didn't Tom have a custom generator for Scintilla? -Andrei On Mar 5, 2006, at 7:16 AM, Steph Fox wrote:Hi Anant, Tom Rogers wrote an implementation of the Scintilla extension for PHP-GTK 2 early last autumn - it wasn't ever added to the repository, but does (or did) work fine. I don't know _why_ it wasn't added to the repository - it's possible it just wasn't building under *nix-based systems, since Tom and I both use win32. Scintilla is _nothing_ like libglade internally (or in any other way!), so I'm not surprised you had problems looking into it that way! It's also a bit of a pig to build in the first place if I remember correctly. Might be an idea to mail Tom directly and see whether he has a version that works against current CVS HEAD? - Steph ----- Original Message ----- From: "Anant Narayanan" <anant@kix.in> To: <php-gtk-dev@lists.php.net> Sent: Friday, March 03, 2006 4:50 PM Subject: [PHP-GTK-DEV] Extending PHP-Gtk2__________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.comHi All! After battling with the 3rd alphabet of the English language for over 12 hours now, I have finally accepted defeat. All I wanted to do was to add an extension to PHP-Gtk2: some "source editor" that would provide advanced features that GtkTextBuffer/View doesn't have. Scintilla was an obvious choice, since it had already been implemented in PHP-Gtk1; and I had also come across GtkSourceView which also seemed pretty nice. First I had problems with sorting out the config.m4 and Makefile.frag files, the ext_skel script in the ext/ directory sadly does not provide a working copy of these files. After lots of imitation with the only extension currently implemented (libglade) I was finally able to ./configure successfully. Another few hours were spent in authoring minimal .def and .overrides files so that make does not fail. When "make" did not produce any errors I did a "make install". Just when I thought I had done it, I received errors when I actually ran php, what's more they were different for each extension that I enabled. Enabling GtkScintilla (./configure --enable-scintilla), gave me a "Segmentation Fault" when I ran PHP and enabling GtkSourceView (./configure --enable-sourceview) gave me "Undefined symbol: phpg_sourceview_register_constants". Yes, my C sucks :( Anyway, I committed my work files to the CVS tree (ext/scintilla and ext/sourceview), since it would not disrupt anything as the extensions have to manually enabled to be built. I have included ref.sourceview.defs, ref.sourceview.overrides, v1.scintilla.defs and v1.scintilla.overrides as reference in the same directories. If anybody would be so kind as to kindly point me in the right direction (What am I doing wrong, Why doesn't it work!), I would be more than happy to take these and more extensions all the way to the finish line. The existing libglade extension doesn't seem to be a good enough example for me to emulate. Thanks and Regards, -- Anant Find Freedom, Go Open Source! http://www.kix.in/ -- PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com-- PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php