Yes you  are so right, its so much better to build them from scratch. If you get to build xdr on Windows that would be great. The Sun Xdr . I took mingw-portableXDR and modified it cos it is not 100% compatible with Sun XDR api which is used by XSD. Otherwise I can send you the code of the portableXDR modified by me and you can compile it.

2011/10/31 Sergio NNX <sfhacker@hotmail.com>
I did build xerces but not xdr. Should i try to build xdr on Windows box and see how it goes? I never download precompiled libraries. I build them myself from scratch.


Date: Mon, 31 Oct 2011 11:42:15 +0100

Subject: Re: [Mingw-users] [MinGW] portableXDR linking error
From: jc.fernandez.navarro@gmail.com
To: sfhacker@hotmail.com
CC: MinGW-users@lists.sourceforge.net

I cross compile it in Fedora. It should work under a windows box but I am not certainly sure about it. If you have all the libraries it needs it should compile but I remember xerces-c caused me troubles when I tried to cross compile it in a Windows box. Also the mingw-portablexdr that I attached you is for fedora so I don't think you can use it in Windows. I should send you the code so you can compile it in Windows. But I think that it is too annoying. Have you cross compiled applications with xerces-c and xsd using xdr before??

Jose

2011/10/31 Sergio NNX <sfhacker@hotmail.com>
Hi there.

I'm on a Windows box and i produce Native Windows binaries (e.g. gcc). Will that work when building your app?

Sergio.


Date: Mon, 31 Oct 2011 06:30:31 -0400
Subject: Re: [Mingw-users] [MinGW] portableXDR linking error
From: jc.fernandez.navarro@gmail.com
To: sfhacker@hotmail.com
CC: MinGW-users@lists.sourceforge.net


Hi Sergio,

Thanks for answering, I do appreciate your interest in helping me.

Well, the code of the app is available on my git hub :

jfnavarro/percolator

Assuming that you have mingw-boost, mingw-xercesc,mingw-pthread. You will need
the precompiled version of tokyocabinet which is included inside the app folder. You will also need the XSD binaries that can be downloaded from the website and you will need to specify the location of the XSD binaries when you call cmake to build. You will also need the mingw-portableXDR library that I modified. I'm attaching it to the email.

You can compile it like this : (NOTE THAT IS CONVERTERS THE APP THAT IM CROSS COMPILING) percolator has 3 different apps.

cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../percolator/src/converters/cmake/windows_converter/Toolchain-mingw32.cmake -DCMAKE_PREFIX_PATH="/home/fedora/percolator/percolator/libs/xsd-3.3.0-i686-linux-gnu/" -DMINGW=ON -DSTATIC=ON  ../percolator/src/converters

I think this all you need :)

Thanks again

Jose

2011/10/31 Sergio NNX <sfhacker@hotmail.com>
Ciao Jose.

I also use MinGW to build apps and I'm more than happy to help you. But i may need access to your app and/or libraries so i can test them here. I don't know if that's possible. One problem may be the order you specify ur libraries during linking process. Let me know.

Cheers.

Sergio.