R: [PHP-GTK] win32 build blues 1.0 && cvs
| From: | Dimitri Giardina | Date: | Fri, 09 Jan 2004 16:46:23 +0000 |
| Subject: | R: [PHP-GTK] win32 build blues 1.0 && cvs | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4350@lists.php.net to get a copy of this message | ||
>
> Hi , trying to build from cvs on win32 I get asked for
> zend_object_API.h and
> zend_default_classes.h none of which appear to exist in my 4.3.4 build.
>
> ..so grabbed the 1.0 src @gtk.php.net and after adding ..
> PHP_GTK_API extern PHP_GTK_EXPORT_CE(gdk_rectangle_ce);
> to php_gtk+.h (a total guess but got me a bit closer) as that was
> giving an
> error ,
>
> but maybe ***sing in the wind just makes it worse ;) as I end up with....
>
> Creating library Release_TS/php_gtk.lib and object Release_TS/php_gtk.exp
> gen_gtk.obj : error LNK2001: unresolved external symbol
> _php_gdk_rectangle_get
> gen_gtk.obj : error LNK2001: unresolved external symbol _gdk_rectangle_ce
> gen_gtk.obj : error LNK2001: unresolved external symbol
> _php_gdk_rectangle_new
> php_gtk+_types.obj : error LNK2001: unresolved external symbol
> _php_gdk_rectangle_new
> php_gtk+.obj : error LNK2001: unresolved external symbol
> _php_gdk_register_classes
> php_gtk+.obj : error LNK2001: unresolved external symbol
> _php_gdk_register_constants
> ../../win32/Release_TS/php_gtk.dll : fatal error LNK1120: 5 unresolved
> externals
>
> and an empty gen_gdk.c if thats relevant?
>
> any pointers appreciated
> Regards,
> Simon.
>
i've got some similar errors under slackware-9.1 compiling with the php from
the distro cd.
for errors like "*_ce" i think you can comment that line (overriding the
"holy codelines").
for errors like "register_classes",i found it replicated into all generated
code inside gen_* files inside the packages (like gtk+ gtkextras, etc. etc.)
commenting the register_classes functions clones in that files, and
commenting the understandeable gtk_object_ce, i've reached to compile
php-gtk-1.0 into slackware-9.1 without recompiling php from scratch. but i
don't know if i can package it and send it to linuxpackages.net.
Dimitri Giardina