[Xapian-devel] Xapian-devel Digest, Vol 66, Issue 2

Charlie Hull charlie at juggler.net
Fri Jun 4 09:59:04 BST 2010


On 04/06/2010 09:38, wan jianbang wrote:
> Hi Charlie,
> This is my php settings.
> I installed wamp(with php5.3.0 in it), and download the source code for
> php5.3.0.

Ah - there are some issues with PHP 5.3.0 - the PHP developers have seen 
fit to change the way external modules work, and we haven't yet found a 
way to build Xapian for PHP 5.3.0 on Windows (there's a bug tro track 
this at http://trac.xapian.org/ticket/459). Is there any way you can use 
an earlier version, say 5.2.x ?

> I use vs2008 to compile xapian code after change config files according to
> http://www.flax.co.uk/xapian/120/readme.txt.

OK

> The 2 lib files: php5ts_debug.lib & php5ts.lib, i found them from
> google, and copy them to corresponding folders according to above
> reference url.

You can't just download them from Google, you need to get them from the 
correct place. php5ts.lib is part of the PHP binary package, 
php5ts_debug.lib is build as part of the PHP sources - but you shouldn't 
need the latter if you're only building a non-debug version (see the 
part of config.mak below that starts with:
  !if "$(DEBUG)"=="1"
)

Charlie

PS I've reposted this to the xapian-devel list, so others can benefit 
from our discussion.


> # -------------PHP settings-------------
> # PHP source folder
> PHP_SRC_DIR=E:\Software\xapian\php5.3.0
> PHP_INCLUDE_CPPFLAGS= \
> -I "$(PHP_SRC_DIR)" -I "$(PHP_SRC_DIR)\tsrm" -I "$(PHP_SRC_DIR)\Zend" -I
> "$(PHP_SRC_DIR)\main" -I "$(PHP_SRC_DIR)\regex"  \
> -D ZTS=1 -D ZEND_WIN32=1 -D PHP_WIN32=1 -D ZEND_WIN32_FORCE_INLINE -D
> HAVE_WIN32STD=1 \
> # PHP_EXE_DIR: Set this to the folder where the PHP executable is
> # PHP_LIB : Set this to the path to the PHP library
> !if "$(DEBUG)"=="1"
> PHP_EXE_DIR=D:\Program Files\wamp\bin\php\php5.3.0\Debug_TS
> PHP_LIB=$(PHP_EXE_DIR)\php5ts_debug.lib
> PHP_DEBUG_OR_RELEASE= /D "ZEND_DEBUG=1"
> !else
> PHP_EXE_DIR=D:\Program Files\wamp\bin\php\php5.3.0
> PHP_LIB=$(PHP_EXE_DIR)\dev\php5ts.lib
> PHP_DEBUG_OR_RELEASE= /D "ZEND_DEBUG=0"
> !endif
> #    PHP executable
> PHP_EXE=$(PHP_EXE_DIR)\PHP.exe
> # PHP 5.3.0 only -----------------
> # We need to build separate bindings for PHP 5.3.0 as the module API has
> changed
> # PHP source folder
> PHP_53x_SRC_DIR=E:\Software\xapian\php5.3.0
> PHP_53x_INCLUDE_CPPFLAGS= \
> -I "$(PHP_53x_SRC_DIR)" -I "$(PHP_53x_SRC_DIR)\tsrm" -I
> "$(PHP_53x_SRC_DIR)\Zend" -I "$(PHP_53x_SRC_DIR)\main" -I
> "$(PHP_53x_SRC_DIR)\regex"  \
> -D ZTS=1 -D ZEND_WIN32=1 -D PHP_WIN32=1 -D ZEND_WIN32_FORCE_INLINE -D
> HAVE_WIN32STD=1 \
> # PHP_EXE_DIR: Set this to the folder where the PHP executable is
> # PHP_LIB : Set this to the path to the PHP library
> !if "$(DEBUG)"=="1"
> PHP_53x_EXE_DIR=D:\Program Files\wamp\bin\php\php5.3.0\Debug_TS
> PHP_53x_LIB=$(PHP_53x_EXE_DIR)\php5ts_debug.lib
> PHP_53x_DEBUG_OR_RELEASE= /D "ZEND_DEBUG=1"
> !else
> PHP_53x_EXE_DIR=D:\Program Files\wamp\bin\php\php5.3.0
> PHP_53x_LIB=$(PHP_53x_EXE_DIR)\dev\php5ts.lib
> PHP_53x_DEBUG_OR_RELEASE= /D "ZEND_DEBUG=0"
> !endif
> #    PHP executable
> PHP_53x_EXE=$(PHP_53x_EXE_DIR)\PHP.exe
> # end PHP 5.3.0 only -----------------
> # ------------- end PHP settings-------------
>
> thanks for any opinions.
> Jaber
>
> 2010/6/4 Charlie Hull <charlie at juggler.net <mailto:charlie at juggler.net>>
>
>     On 04/06/2010 02:35, wan jianbang wrote:
>
>         Hi Charlie,
>         Thanks for your reply.
>         I've modified config.mak according to README. I just want to
>         output the
>         xapian dll for php, so i removed other config such python,
>         csharp, etc.
>
>
>     This worries me slightly - it's enough just to modify config.mak as
>     much as you need, if you're not building the other bindings you
>     don't need to change the sections relevant to them. Can you try
>     taking the original config.mak, making *only* the changes for PHP,
>     and rebuilding both xapian-core and the PHP bindings?
>
>
>         I download source code from php site & set the path in config.mak
>         accordingly. It still reports this error. I'm confused which
>         config i
>         missed.
>
>
>     Please post the PHP section of config.mak and I can try and work out
>     what's missing.
>
>     Charlie
>
>         Thanks.
>         Jaber
>
>
>
>
>
>         2010/6/3 <xapian-devel-request at lists.xapian.org
>         <mailto:xapian-devel-request at lists.xapian.org>
>         <mailto:xapian-devel-request at lists.xapian.org
>         <mailto:xapian-devel-request at lists.xapian.org>>>
>
>
>             Send Xapian-devel mailing list submissions to
>         xapian-devel at lists.xapian.org
>         <mailto:xapian-devel at lists.xapian.org>
>         <mailto:xapian-devel at lists.xapian.org
>         <mailto:xapian-devel at lists.xapian.org>>
>
>
>             To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.xapian.org/mailman/listinfo/xapian-devel
>             or, via email, send a message with subject or body 'help' to
>         xapian-devel-request at lists.xapian.org
>         <mailto:xapian-devel-request at lists.xapian.org>
>         <mailto:xapian-devel-request at lists.xapian.org
>         <mailto:xapian-devel-request at lists.xapian.org>>
>
>
>             You can reach the person managing the list at
>         xapian-devel-owner at lists.xapian.org
>         <mailto:xapian-devel-owner at lists.xapian.org>
>         <mailto:xapian-devel-owner at lists.xapian.org
>         <mailto:xapian-devel-owner at lists.xapian.org>>
>
>
>             When replying, please edit your Subject line so it is more
>         specific
>             than "Re: Contents of Xapian-devel digest..."
>
>
>             Today's Topics:
>
>                1. Re: problem for compiling xapian in windows xp
>         (Charlie Hull)
>
>
>
>           ----------------------------------------------------------------------
>
>             Message: 1
>             Date: Thu, 03 Jun 2010 08:59:55 +0100
>             From: Charlie Hull <charlie at juggler.net
>         <mailto:charlie at juggler.net> <mailto:charlie at juggler.net
>         <mailto:charlie at juggler.net>>>
>
>             Subject: Re: [Xapian-devel] problem for compiling xapian in
>         windows xp
>             To: Xapian Development <xapian-devel at lists.xapian.org
>         <mailto:xapian-devel at lists.xapian.org>
>         <mailto:xapian-devel at lists.xapian.org
>         <mailto:xapian-devel at lists.xapian.org>>>
>
>             Message-ID: <4C0760FB.9000604 at juggler.net
>         <mailto:4C0760FB.9000604 at juggler.net>
>         <mailto:4C0760FB.9000604 at juggler.net
>         <mailto:4C0760FB.9000604 at juggler.net>>>
>
>             Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>             On 01/06/2010 01:09, wan jianbang wrote:
>          > When I compile xapian in windows xp, the following error occurs.
>          >
>          > E:\Xapian>cd xapian-core-1.2.0
>          >
>          > E:\Xapian\xapian-core-1.2.0>cd win32
>          >
>          > E:\Xapian\xapian-core-1.2.0\win32>nmake
>          >
>          > Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
>          > Copyright (C) Microsoft Corporation.  All rights reserved.
>          >
>          > Building Xapian on Win32
>          >
>          >          if not exist  exit(1)
>          >
>          > NMAKE : fatal error U1077: 'if' : return code '0x1'
>          > Stop.
>          >
>          > E:\Xapian\xapian-core-1.2.0\win32>
>          >
>          >
>          > Please give some hint, thanks a lot.
>
>             Have you altered the paths in config.mak to match your
>         setup? There are
>             some other files that need altering as well, the README file has
>             details.
>
>             Charlie
>          >
>          >
>          >
>          > _______________________________________________
>          > Xapian-devel mailing list
>          > Xapian-devel at lists.xapian.org
>         <mailto:Xapian-devel at lists.xapian.org>
>         <mailto:Xapian-devel at lists.xapian.org
>         <mailto:Xapian-devel at lists.xapian.org>>
>
>          > http://lists.xapian.org/mailman/listinfo/xapian-devel
>
>
>
>
>             ------------------------------
>
>             _______________________________________________
>             Xapian-devel mailing list
>         Xapian-devel at lists.xapian.org
>         <mailto:Xapian-devel at lists.xapian.org>
>         <mailto:Xapian-devel at lists.xapian.org
>         <mailto:Xapian-devel at lists.xapian.org>>
>
>         http://lists.xapian.org/mailman/listinfo/xapian-devel
>
>
>             End of Xapian-devel Digest, Vol 66, Issue 2
>             *******************************************
>
>
>
>
>         _______________________________________________
>         Xapian-devel mailing list
>         Xapian-devel at lists.xapian.org <mailto:Xapian-devel at lists.xapian.org>
>         http://lists.xapian.org/mailman/listinfo/xapian-devel
>
>
>




More information about the Xapian-devel mailing list