Visions of Aestia

22 Apr 2005

Redland on windows

Filed under: PlanetRDF, Python — JBowtie @ 8:41 pm

OK, so I have successfully compiled librdf.dll, raptor.dll, and rasqal.dll on windows using the Visual C++ 7 compiler. I have almost compiled the Python bindings I need to verify that everything built correctly (I probably need another pass or two to figure out the right compile-time flags).

To compile the Python bindings, I’m using distutils + SWIG. However, I keep getting a LNK2001 error regarding initRedland. As soon as I can figure out where that function is defined (looks SWIG-related), I should have a successful compile. Then all I need to do is tweak compiler flags until the tests pass, and distribute. At which point I expect my server traffic to spike. :)

7 Responses to “Redland on windows”

  1. Danny Says:

    Bravo!

    I don’t know what kind of spike you’ll get, but having Python/Redland on Win32 should provide a marvellous inroad to this tech for folks who might otherwise not bother. (I’ve recently been playing with the Python bindings on Linux and found Python/Redland a real treat to work with). Once you’re done I suggest you write it up for xml.com (or one of the nearby O’Reilly bits), and make a couple of $$ for your trouble ;-)

  2. karsten Says:

    this is really ++great news! i’d count myself to this group of people danny is referring to… can’t (but will) wait to get my fingers dirty/red! :)

  3. Suzan Foster Says:

    initRedland is defined as SWIG_init in Redland_wrap.c. The body of the function is defined line 5399 in the same file.

  4. JBowtie Says:

    Hmmm…I wonder why VC++ thinks that it’s an external symbol. Thanks for that, Suzan; I’ll try compiling Redland_wrap.c manually on Tuesday (It’s ANZAC Day on Monday).

  5. Elias Torres Says:

    I had everything compiling in cygwin except for the python bindings w/o having to make any modifications at all to the makefiles. It was while compiling Redland_wrap.c for the python bindings that all went downhill (also SWIG-related). This of course was after a *few* hours of tinkering and getting all of the right components (flex,bison,automake,gettext,etc) so I gave up and I have not tried since. I’ll keep an eye out on your progress, good job and keep it up.

  6. dominic sisneros Says:

    I provided the initial wrapper for ruby and have been waiting for someone to get this working on windows so I could do more. This is great news! When you get it all going are you going to provide a patch to the redland code?

  7. JBowtie Says:

    That’s certainly my intention; some of the changes are somewhat hacky and will need to be fixed properly to avoid extra work for the maintainers.

Leave a Reply

Powered by WordPress