gtksourceview (win32)
| From: | xxoes | Date: | Wed, 24 May 2006 06:28:01 +0000 |
| Subject: | gtksourceview (win32) | ||
| Groups: | php.gtk.dev | ||
| Request: | Send a blank email to php-gtk-dev+get-2890@lists.php.net to get a copy of this message | ||
hi,
i have create a gtksourceview.lib and gtksourceview.dll from the gtksourceview-1.4.2 for win32.
I have changed many header files an the c source but now it works. (only printing support is not been implemented)
I can upload the source and lib/dll for php-gtk2.
Now i can use gtksourceview under win32 with php-gtk2.
Here is the config.w32 i have the same problem with the phpg_sourceview_register_classes and phpg_sourceview_register_constants like mozembed:
There is a bug in my config because the phpg_gtkmozembed_register_classes and phpg_gtkmozembed_register_constants seems to be wrong. I changed this manualy to phpg_mozembed_register_classes and phpg_mozembed_register_constants. The define COMPILE_DL_MOZEMBED musst be COMPILE_DL_MOZEMBED2 in php_mozembed.c. Why???ARG_WITH("sourceview", "sourceview support", "no"); if (PHP_GTK_SOURCEVIEW != "no" || PHP_GTK_ALL != "no") {
if (CHECK_LIB("gtksourceview.lib", "sourceview")) {
if (FSO.FileExists("win32\\temp.bat")) {
var temp = FSO.OpenTextFile("win32\\temp.bat", 8);
temp.WriteLine("php -q generator\\generator.php -l win32\\logs\\config_sourceview.log -o ext\\sourceview\\sourceview.overrides -p sourceview -r ext\\gtk+\\gtk.defs ext\\sourceview\\sourceview.defs > ext\\sourceview\\gen_sourceview.c");
temp.WriteLine('grep -h "^PHP_GTK_EXPORT_CE" ext\\sourceview\\gen_sourceview.c | sed -e "s/^/PHP_GTK_API extern /" > ext\\sourceview\\gen_sourceview.h');
temp.Close();
}
ADD_FLAG("CFLAGS_SOURCEVIEW", "/I ext\\sourceview /I ..\\ext\\sourceview /D HAVE_SOURCEVIEW=1");
EXTENSION("sourceview", "gen_sourceview.c php_sourceview.c", true); // always shared
AC_DEFINE("HAVE_SOURCEVIEW", 1, "sourceview enabled");
} else {
WARNING("sourceview not enabled; libraries and headers not found");
}
}
How can I print with php-gtk2 gtksourceview? I have no method found that can print with sourceview in the php-gtk2 overrides.
sorry for my english ;)
mfg xxoes