Date: Thursday, December 1, 2005 @ 18:44:45
  Author: gilles
    Path: /cvsroot/carob/carob/contrib/PHP

Modified: HOWTO-PHP-EXTENSION (1.3 -> 1.4)

Added a quick-build howto paragraph


---------------------+
 HOWTO-PHP-EXTENSION |    9 +++++++++
 1 files changed, 9 insertions(+)


Index: carob/contrib/PHP/HOWTO-PHP-EXTENSION
diff -u carob/contrib/PHP/HOWTO-PHP-EXTENSION:1.3 
carob/contrib/PHP/HOWTO-PHP-EXTENSION:1.4
--- carob/contrib/PHP/HOWTO-PHP-EXTENSION:1.3   Wed Oct 26 17:18:28 2005
+++ carob/contrib/PHP/HOWTO-PHP-EXTENSION       Thu Dec  1 18:44:45 2005
@@ -15,7 +15,16 @@
 - your PHP module has to be written in C++, but export C symbols to
   the PHP engine.
 
+Building the example
+====================
+Quick:
+  1) > phpize sample_carob_request.cpp
+     edit ./configure, replace "link_cmd='$(CC)" by "link_cmd='$(CXX)"
+  2) > ./configure
+  3) > export CAROB_INSTALL_DIR=<where_lib_carob_so_is>
+     > make EXTRA_LDFLAGS="-L${CAROB_INSTALL_DIR} -lcarobcpp -Wl,--rpath, 
-Wl,${CAROB_INSTALL_DIR}"
 
+Deeper:
 1) First there is a small bug in the phpize script, so you must
 slighty patch the "./configure" file generated. The .configure file
 correctly calls the C++ compiler to compile "your_php_module.cpp", but

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to