[physfs] Compiling with MinGW on Linux

Edward Rudd urkle at outoforder.cc
Sat Jun 13 11:19:07 EDT 2015


> On Jun 13, 2015, at 07:16, Jonas Thiem <jonasthiem at googlemail.com> wrote:
> 
> Sadly, my experience with cmake is that it's horrible for cross-compiling, which is why I refuse to use it for any of my own projects.

Odd,  I've had nothing but success using Cmake for cross-compiling.   I use it in a project to tartget Windows (VC++ or MingW), Linux, Mac OS X, iOS, asm.js.  Most likely the issue here is that the packaged Cmake files are just plain badly written. (no offense ryan, but people don't use cmake 2.4 anymore:-D).    I'll work up some fixed cmake files and get them into physfs so it'll work more reliably.

> I have successfully compiled PhysFS for windows, and I can recommend to just hack your custom Makefile. Add all source files as object files, maybe try to guess or steal the -llinkedlibrary flags from a cmake run from a native linux box, and then just compile it using your own Makefile for things.
> 
> I had to do the same when cross-compiling Box2D because again, cmake. Gladly, SDL still maintains autoconf..
> 
> On 06/13/2015 12:05 PM, Pauli Jokela wrote:
>> I’ve tried for several days/weeks now to compile PhysFS on a Linux box, with MinGW, to product both 32- and 64-bit Windows builds.
>> 
>> So far I haven’t succeeded. At all.
>> 
>> Could someone either provide me with CMake files for MinGW, or point me in the right direction? Compiling with MinGW under Windows is not an option, as this has to be done on a Linux system.
>> 
>> -- 
>> Pauli Jokela, Didstopia
>> 
>> 
>> _______________________________________________
>> physfs mailing list
>> physfs at icculus.org <mailto:physfs at icculus.org>
>> http://icculus.org/mailman/listinfo/physfs <http://icculus.org/mailman/listinfo/physfs>
> 
> _______________________________________________
> physfs mailing list
> physfs at icculus.org <mailto:physfs at icculus.org>
> http://icculus.org/mailman/listinfo/physfs <http://icculus.org/mailman/listinfo/physfs>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/physfs/attachments/20150613/578b1b78/attachment-0001.html>


More information about the physfs mailing list