[physfs] Compiling with MinGW on Linux

Pauli Jokela pauli.jokela at didstopia.com
Sat Jun 13 11:50:32 EDT 2015


Ubuntu 12.04. I don’t have issues compiling for the same platform that I’m building on (ie. compiling on Linux, for Linux), only when compiling for Windows, while building from Linux.

Either way, I can confirm that the custom Makefile seems to have fixed the issue.

-- 
Pauli Jokela, Didstopia

Päällä 13. kesäkuuta 2015 klo 18.48.51, Jonas Kulla (nyocurio at gmail.com) kirjoitti:

Hello Pauli,

what distribution are you using? I'm on Fedora, and for me, using the distro provided cmake-mingw32
script worked out of the box when compiling physfs from source (just needed to remove some
unused variables since warnings are treated as errors). So it's definitely possible.

2015-06-13 15:02 GMT+02:00 Pauli Jokela <pauli.jokela at didstopia.com>:
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

_______________________________________________
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/e358d5a3/attachment.html>


More information about the physfs mailing list