On Fri, 21 Mar 2008, Bill Janssen wrote:

Generating these libraries is quite easy, but the mechanism is
dependent on which compiler (gcc or msc) you are using.  I don't know
how to check for the compiler to set the appropriate link flags.

What is your question ? I'm not sure I understand...

Andi..

Just sharing state, which is that I'm stuck for the moment.  Next week.

Ok, I gave this a try on my windows setup which has MSVC 7 and I got it to work. I had to add some __declspec(dllexport) and __declspec(dllimport) in a few strategic places for the linker to create an import library for jcc.dll and for the _lucene extension to link properly.

I should be checking these in over the next few days, there is some cleanup I'd like to do there first.

I also had to manually install the import library created by the MSVC linker as setuptools doesn't seem to be doing that. This was the only manual step in the build, setuptools seems to know how to create jcc.dll without any problem.

I was able to build PyLucene with --shared and run it after adding the directory containing jcc.dll to PATH.

Maybe this can convince you to consider the MSVC compiler ?

Andi..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to