RE: [PHP-GTK] "Bundling gtk application". How to make them executewithout need for gtk libraries.?.
| From: | Nghia | Date: | Mon, 02 May 2005 22:24:08 +0000 |
| Subject: | RE: [PHP-GTK] "Bundling gtk application". How to make them executewithout need for gtk libraries.?. | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5823@lists.php.net to get a copy of this message | ||
If you can compile the phpgtk binary with the libraries statically linked,
then in theory you should be able to run it without GTK installed on the
other computer.
Unfortunately, it requires fiddling around with Makefiles. In the Makefile
you add the -static flag to say the CFLAGS line. It will compile and then
spew heaps of errors about missing functions. You usually then have to hunt
down the shared library that contains these functions and manually add them
to be linked. This is pretty much whatever comes from "ldd". So an example
would be:
gcc app.c -o app -static /home/users/mohanks/lib/libatk-1.0.so.0
/home/users/mohanks/lib/libgdk-x11-2.0.so.0
/home/users/mohanks/lib/libgtk-x11-2.0.so.0 ...
I haven't tried it with phpgtk though. I have with other open source apps.
Scott Mattocks wrote:
> mohan kumar wrote:
>
>> Can anyone tell me the right procedure to bundle my
>> gtk applications, so as to make them work
>> independently.
Sorry. I obviously didn't read your post we enough. My response was for
running without PHP. I don't know what to do to run without Gtk.
Scott
--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php