[physfs] Compiling with MinGW on Linux

Pauli Jokela pauli.jokela at didstopia.com
Sat Jun 13 09:02:58 EDT 2015


Thanks Jonas,

Although it was painful as heck, I managed to create a working Makefile. Well, I haven’t tested the final build yet, but at least it compiles.

-- 
Pauli Jokela, Didstopia

Päällä 13. kesäkuuta 2015 klo 14.48.44, Jonas Thiem (jonasthiem at googlemail.com) kirjoitti:

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.

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
http://icculus.org/mailman/listinfo/physfs

_______________________________________________
physfs mailing list
physfs at icculus.org
http://icculus.org/mailman/listinfo/physfs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/physfs/attachments/20150613/12265a3f/attachment.html>


More information about the physfs mailing list