building external libraries for binary distributtion

php.internals

joerg mauz

23 years ago
hi all, i work on building my own external library that should be usable within php using the //dl(.) command. so i read it the docs about how to write extension but i felt somehow low left alone, cause the docs only just describes how to create extensions that are shipped with the source for being able to build a complete new php (and the code the documents contain isn't working either !!!). so what i'm looking for is a mechanism to built my extension on my local php installation (full sourc of everything available) and then just only send the library file (myext.so) to the customer, that itself just puts the lib somewhere to be loaded by php's //dl(.) command are there any other docs / recources available than those from the php-manual: en/zend.creating.php thanks in advance . cu joerg

Michael Bretterklieber

23 years ago
Hi, On Wed, 28 May 2003, joerg mauz wrote:
> hi all, > > i work on building my own external library that should be usable within > php > using the //dl(.) command. so i read it the docs about how to write > extension > but i felt somehow low left alone, cause the docs only just describes > how to > create extensions that are shipped with the source for being able to > build a > complete new php (and the code the documents contain isn't working > either !!!). > so what i'm looking for is a mechanism to built my extension on my local > php > installation (full sourc of everything available) and then just only > send the library > file (myext.so) to the customer, that itself just puts the lib somewhere > to be loaded > by php's //dl(.) command > > are there any other docs / recources available than those from the > php-manual: en/zend.creating.php >
http://pear.php.net/manual/en/introduction.php#about-pecl - after you have written your config.m4 do this: - phpize - ./configure - make - make install then you get a .so, wich you can send to your customer. bye,
-- ------------------------------- ---------------------------------- Michael Bretterklieber - http://www.bretterklieber.com JAWA Management Software GmbH - http://www.jawa.at Tel: ++43-(0)316-403274-12 - GSM: ++43-(0)676-84 03 15 712 ------------------------------- ---------------------------------- "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972

Piotr Klaban

23 years ago
On Wed, May 28, 2003 at 09:56:08AM +0200, Michael Bretterklieber wrote:
> - after you have written your config.m4 do this: > - phpize > - ./configure
And one do not need to run ./configure with arguments ? ./configure --with-extension --enable-shared=extension Best regards,
-- Piotr Klaban

Derick Rethans

23 years ago
On Wed, 28 May 2003, joerg mauz wrote:
> hi all, > i work on building my own external library that should be usable > within php using the //dl(.) command. so i read it the docs about how > to write extension but i felt somehow low left alone, cause the docs > only just describes how to create extensions that are shipped with the > source for being able to build a complete new php (and the code the > documents contain isn't working either !!!). so what i'm looking for > is a mechanism to built my extension on my local php installation > (full sourc of everything available) and then just only send the > library file (myext.so) to the customer, that itself just puts the lib > somewhere to be loaded by php's //dl(.) command > > are there any other docs / recources available than those from the > php-manual: en/zend.creating.php
http://pres.derickrethans.nl/ze-ext slides 20 to the end Derick
-- "my other box is your windows PC" ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ -------------------------------------------------------------------------