Hi everyone, I'm not really into these discussionlists systems, and hope this message is received in good order. I've been trying for quite some while to get Xapian running on my Windows (2000) machine. I succesfully compiled Omega and Xapian-Core by using: - MingW - MSYS Started MSYS by the batch file, got the "console", and ran the ./configure, make install, make procedure as described in some manuals. After waiting a bit, I think everything compiled properly. I have about 20 exe files now. I hope the above might help some other one someday. I'm pretty new to compiling things using MingW. The only problem right now is the PHP bindings, which I really need. I have tried a lot, but just cannot get it to compile correctly. And the documentation is me a bit too vague on this subject. the ./configure --help as well. And I cannot find good information sources on the web either. I first tried: configure Which will do a lot and then eventually end with : config.status: executing depfiles commands *** Not found the tools to build any bindings! *** To point configure at tools not on PATH, see: ./configure --help *** You may need to install -dev or -devel packages to build bindings Then I started googling around a bit, and I *think* I need some extra parameters, like specifying the php path? I'm not sure. Make will give this: AnyOne@ATHLON64 /r/searchengine/xapian-bindings-0.9.9 $ make make all-recursive make[1]: Entering directory `/r/searchengine/xapian-bindings-0.9.9' make[2]: Entering directory `/r/searchengine/xapian-bindings-0.9.9' make[2]: Leaving directory `/r/searchengine/xapian-bindings-0.9.9' make[1]: Leaving directory `/r/searchengine/xapian-bindings-0.9.9' AnyOne@ATHLON64 /r/searchengine/xapian-bindings-0.9.9 $ make install make[1]: Entering directory `/r/searchengine/xapian-bindings-0.9.9' make[2]: Entering directory `/r/searchengine/xapian-bindings-0.9.9' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/r/searchengine/xapian-bindings-0.9.9' make[1]: Leaving directory `/r/searchengine/xapian-bindings-0.9.9' I'm quite clueless. I've seen so much information scattered around here and there, about PHP-dev distro's, lib files, that I have no idea where to start anymore. Can someone please shed some light on this? Many thanks, Almar
Olly Betts
2006-Nov-24 23:39 UTC
[Xapian-discuss] Compiling PHP bindings with MingW/Windows
On Thu, Nov 23, 2006 at 09:52:15PM +0100, Any One wrote:> I've been trying for quite some while to get Xapian running on my Windows > (2000) machine. I succesfully compiled Omega and Xapian-Core by using: > > - MingW > - MSYSYou're not the first to try building Xapian's PHP bindings using mingw: http://thread.gmane.org/gmane.comp.search.xapian.general/3276V But I don't know of anyone who has yet managed it I'm afraid. Although I don't really understand why, it seems using a pre-built version of PHP with mingw doesn't work. I assume it's some C++ related issue, perhaps static initialisers. And PHP itself seems to have a number of MSVC-specific assumptions in the source code (at least in PHP5), so rebuilding it with mingw isn't easy. Using MSVC should work (though I don't think anyone has reported success here). You can download a version of MSVC for free, but obvious it's only "free" as in "beer" not "speech", and I believe the licence puts restrictions on use of the compiled code and has some other obnoxious clauses. Sorry not to have better news. If you make any progress, do let us know! Cheers, Olly