From: techtonik <tec...@tu...> - 2005-10-29 09:44:00
|
||*()*|| [\..konnichi wa, ogenki desu ka, Jost../] >> I've tried to compile PHP myself from CVS, but failed. JB> Which errors specifically? Something about PCRE, but the problem was in CVS version of PHP4. I downloaded 4.4.0 sources and compiled them successfully, but failed to build bridge. According to INSTALL "Compiling a CGI binary on Windows" > 1. Install the source code of PHP 4.3.x or higher. > > 2. Install RedHat's Cygwin (PHP needs autoconf). > > 3. Delete the java sub-directory from php-4.3.x\ext. Copy the > php-java-bridge directory to the php-x.y.z\ext directory and > rename it to java. Update the "m4_include" paths in > php-x.y.z\ext\java\config.m4 so that they start with "ext/java/": > > m4_include(ext/java/tests.m4/function_checks.m4) > m4_include(ext/java/tests.m4/java_check_broken_stdio_buffering.m4) > ... > m4_include(ext/java/tests.m4/java_check_broken_gcc_installation.m4) > > 4. Invoke autoconf to register our java module within the PHP build > tree: > > buildconf.bat --force > BTW, there is not .bat, but "./buildconf --force" launches ok. > Instead of running "buildconf" you can also use autoconf directly: > > autoconf Also tried this way. > Then configure and compile php as usual: > > .\configure --with-java=%JAVA_HOME% After some time this stops with error. ---cut--- ... checking for Ingres II support... no checking for InterBase support... no checking for IRCG support... no ./configure: line 45991: syntax error near unexpected token `ext/java/tests.m4/function_checks.m4' ./configure: line 45991: `m4_include(ext/java/tests.m4/function_checks.m4)' UIUST@uiust /cygdrive/d/DeveloperSpace/InProjects/php-src/php-src $ ---cut--- Whole java-bridge 2.0.8 src directory content is located at ext/java and function_checks.m4 exists. $ ls -gGa ext/java/tests.m4/ total 28 drwxr-xr-x 2 0 Oct 24 10:46 . drwxr-xr-x 11 0 Oct 24 10:44 .. -rw-r--r-- 1 753 Sep 19 19:52 function_checks.m4 -rw-r--r-- 1 1712 Sep 19 19:52 java_check_abstract_namespace.m4 -rw-r--r-- 1 775 Sep 19 19:52 java_check_broken_gcc_installation.m4 -rw-r--r-- 1 2131 Sep 19 19:52 java_check_broken_stdio_buffering.m4 -rw-r--r-- 1 2286 Sep 19 19:52 java_check_struct_ucred.m4 -rw-r--r-- 1 4747 Sep 19 19:52 threads.m4 > make >> I want to try mix of Java and PHP in >> standalone application. JB> I didn't think this is possible. PHP is missing JB> features which are essential for desktop applications. JB> For example it doesn't have threads; it relies on the JB> web server to provide an "execution environment". Isn't it possible for Java application to provide execution environment and call PHP interpretator for script processing? JB> There are other environments which support the PHP JB> programming language for example a php -> CIL compiler JB> exists for the MONO project. No, thanks, I'd like to find a way how can I use PHP scripting capabilities from Java. =) JB> Okay. I think it is possible to split the zip file JB> into a "documentation" zip and a zip file which JB> contains the php_java.dll, the php.ini and a short JB> readme. Would be nice, but I've already bogged down in compilation. >> README is very long and contains a lot of information. >> Read 25k just to find command line options (especially if >> there are not any) is a waste of time. I thought it should >> be good for an application to react on help/unknown cmd >> parameters to be user-friendly. JB> Sorry, the parameters are documented in the JB> INSTALL.WINDOWS document only. The README is indeed a JB> little bit unix centric; unix users usually start the JB> bridge via the php-java-bridge.service script or via JB> the php-java-bridge command. Well, I just thought it would be nice for javabridge to spill usage info if garbage was passed in command line parameters. This also help to detect errors in launching scripts configuration. WBR.techtonik -- (B)uilding, (A)ntenna, (S)pan and (E)arth * terminal velocity - 54m/s, 305m * |