<div dir="ltr"><div><div><div>Hello Pauli,<br><br></div>what distribution are you using? I'm on Fedora, and for me, using the distro provided cmake-mingw32<br></div>script worked out of the box when compiling physfs from source (just needed to remove some<br>unused variables since warnings are treated as errors). So it's definitely possible.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-13 15:02 GMT+02:00 Pauli Jokela <span dir="ltr"><<a href="mailto:pauli.jokela@didstopia.com" target="_blank">pauli.jokela@didstopia.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Thanks Jonas,</div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">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.</div><span class="HOEnZb"><font color="#888888"> <br> <div><div style="font-family:helvetica,arial;font-size:13px">-- <br>Pauli Jokela, Didstopia</div></div></font></span><div><div class="h5"> <br><p style="color:#000">Päällä 13. kesäkuuta 2015 klo 14.48.44, Jonas Thiem (<a href="mailto:jonasthiem@googlemail.com" target="_blank">jonasthiem@googlemail.com</a>) kirjoitti:</p> <blockquote type="cite"><span><div bgcolor="#FFFFFF" text="#000000"><div></div><div>







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.<br>
<br>
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.<br>
<br>
I had to do the same when cross-compiling Box2D because again,
cmake. Gladly, SDL still maintains autoconf..<br>
<br>
<div>On 06/13/2015 12:05 PM, Pauli Jokela
wrote:<br></div>
<blockquote type="cite">
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
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.</div>
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<br></div>
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
So far I haven’t succeeded. At all.</div>
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<br></div>
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
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.</div>
<div>
<div></div>
</div>
<br>
<div>
<div style="font-family:helvetica,arial;font-size:13px">
-- <br>
Pauli Jokela, Didstopia</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
physfs mailing list
<a href="mailto:physfs@icculus.org" target="_blank">physfs@icculus.org</a>
<a href="http://icculus.org/mailman/listinfo/physfs" target="_blank">http://icculus.org/mailman/listinfo/physfs</a>
</pre></blockquote>
<br>


_______________________________________________<br>physfs mailing list<br><a href="mailto:physfs@icculus.org" target="_blank">physfs@icculus.org</a><br><a href="http://icculus.org/mailman/listinfo/physfs" target="_blank">http://icculus.org/mailman/listinfo/physfs</a><br></div></div></span></blockquote></div></div></div><br>_______________________________________________<br>
physfs mailing list<br>
<a href="mailto:physfs@icculus.org">physfs@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/physfs" rel="noreferrer" target="_blank">http://icculus.org/mailman/listinfo/physfs</a><br>
<br></blockquote></div><br></div></div>