Redland on windows
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.
April 22nd, 2005 at 10:01 pm
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
April 22nd, 2005 at 10:40 pm
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!
April 22nd, 2005 at 11:13 pm
initRedland is defined as SWIG_init in Redland_wrap.c. The body of the function is defined line 5399 in the same file.
April 24th, 2005 at 3:20 pm
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).
April 25th, 2005 at 7:43 am
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.
April 28th, 2005 at 12:17 pm
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?
April 28th, 2005 at 12:34 pm
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.