Compiling PHP_YAZ with PHP 5.3

From: Date: Tue, 29 Mar 2011 22:49:37 +0000
Subject: Compiling PHP_YAZ with PHP 5.3
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-30555@lists.php.net to get a copy of this message
Hi. I'm trying to compile PHP YAZ on Windows 7 32-bit with Visual Studio 2008 Express. I've seen some of people on this list were succesful, but archives seem to be missing some of crucial e-mails... Or maybe just the wiki.php.net :-(. Anyway from various manuals on the web I got the following. I have: * YAZ (4.1.7) - installed (full install with sources) to c:\Program Files\YAZ * PHP (5.3.6 TS) sources in c:\PHP\dev * PHP_YAZ (1.0.14 from Pecl page) in c:\PHP\dev\ext\yaz * bison and flex in c:\PHP\dev_extra * and of course Visual Studio Express 2008 installed I've changed c:\PHP\dev\ext\yaz\config.w32 so that it checks for yaz4.lib rather then yaz3.lib I run VC9 express console and run: cd c:\PHP\dev set PATH=%PATH%;c:\PHP\dev_extra set PHP_YAZ=c:\Program Files\YAZ\ buildconf.bat configure --disable-all --enable-cli --with-yaz=shared Still I get: Checking for yaz/yaz-version.h ... <not found> Checking for yaz/yaz-version.h ... <not found> I've tried setting PHP_YAZ=c:\Program Files\YAZ\include\, but that don't help either. It does help when I set: set INCLUDE=%INCLUDE%;c:\Program Files\YAZ\include\ But then it says: Problem reading true\yaz\yaz-version.h So then I change configure.js and manually set (just before file_get_contents(yaz_h...)): yaz_h = "c:\\Program Files\\YAZ\\include\\"; and set (just before CHECK_LIB("yaz4.lib"...)): PHP_YAZ = "c:\\Program Files\\YAZ\\lib\\"; And OK, then nmake works, but then again I know there just have to be a better way ;-). I'd like to make some step-by-step instructions on how to build YAZ for PHP 5.3 and this just seem to be a bit too much. Regards, Nux.

« previous php.windows (#30555) next »