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??


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?


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 :


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


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.