<div dir="ltr"><div>I use Slackware, which has good multilib support, so I can compile 32/64 bit binaries on the same system without trouble, and it doesn't have the nuisance of separate -dev packages either. I'm not aware of any Slackware packages that don't support multilib.<br></div><div>Due to the very different design of the Debian package manager it has these incompatibilities. I read that they have put a lot of work into increasing the supported packages but apparently aren't there yet.</div><div><br></div><div>I found the bug report for the libxkbcommon problem, and it seems to be fixed in version 0.8.0-2. <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893855">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893855</a></div><div>The sdl 1.2 problem seems to be here <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=932372">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=932372</a> but it's not fixed.</div><div><br></div><div>But yes, no harm in separate Docker images; this seems like just the problem that Docker was intended to solve.</div><div><br></div><div><div>mxe is a cross-compiler only for Windows (mingw-w64) although the documentation hints they used to, or at least had the ambition to, target other platforms too.</div></div><div><br></div><div>I was considering that perhaps we should use SDL 1.2 for 32-bit Linux builds (at least from Distribute Game), and SDL 2 for 64-bit Linux, same as Mac. Since anyone who is using a 32-bit distro is probably on an older linux installation. And I was planning to mark the 32-bit Linux Distribute Game options as for obsolete OSes.<br></div><div>On the other hand if we are going to at some point start including sdl/sdl_mixer in tarballs anyway then we would want to use sdl2/sdl2_mixer always because it has more features.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 29 Dec 2020 at 14:47, James Paige <<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Okay, since wine will be needed for other stuff, I should probably focus on a headless wine for the windows build env.</div><div><br></div><div>Question: Have you been able to compile both Linux 32 and 64 bit binaries on the same system? And if so, was mxe involved?</div><div><br></div><div>I see that I cannot have libsdl1.2-mixer-dev and libsdl-1.2-mixer-dev:i386 installed at the same time, they don't support multilib. Also libsdl2-dev and libsdl2-dev:i386 support multilib, but they depend on libxkbcommon-dev which does not support multilib.</div><div><br></div><div>I'm okay with just having separate docker images for 32 bit and 64 bit Linux builds. I already know it works :)</div><div><br></div><div>---</div><div>James Paige</div><div><br></div><div><br></div><div><br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 28, 2020 at 8:02 PM Ralph Versteegen <<a href="mailto:teeemcee@gmail.com" target="_blank">teeemcee@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 28 Dec 2020 at 15:05, James Paige <<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I can successfully cross-compile game.exe and custom.exe from this docker container with</div><div><pre>scons target=i686-w64-mingw32.static</pre></div></div></blockquote><div>Great!<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I haven't actually tried running them yet, but I'll get there :D</div><div>I noticed that I cannot compile speak the same way:</div><div><pre>scons target=i686-w64-mingw32.static hspeak</pre></div><div>This just results in compiling hspeak for linux.</div></div></blockquote><div><br></div><div>Right, scons doesn't support cross-compiling hspeak. I'd forgotten that hiccup. I don't know whether it is even possible to build an euc that can cross-compile, but I'll try it and report back, since we're already compiling FB anyway. I know that a euphoria build can only target a single platform which is why we need separate copies of euphoria for x86 and x86_64 linux. <br></div><div>Alternatively, we could run euc under wine, since we unfortunately need wine anyway for scons pdb=1 builds<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>To get everything compiling (after all the needed -dev libs were installed) I ended up adding CFLAGS="-g -DDISABLE_FFI" for the 32 and 64 bit Linux targets, since I could not figure out the Linux equivalent of the `$TARGET-pkg-config libffi --cflags`" thing that worked for TARGET="i686-w64-mingw32.static"</div><div><br></div><div>I guess I just need to read the docs and figure out what the right $TARGET is for 32 and 64 bit Linux</div></div></blockquote><div><br></div><div>I would expect it would be `pkg-config libffi --cflags`, since that's not a crosscompile, although I see I also have a x86_64-slackware-linux-gnu-pkg-config on my machine.<br></div><div>But I've never needed to use pkg-config for libffi on Linux (and it prints nothing for --cflags), and you mustn't have either, when you previously compiled fbc to target android. I wonder what's different about the Docker environment.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Anyway, that is enough for today. I'm going to bed. :)<br></div><div><br></div><div>---</div><div>James Paige<br></div><div><br></div><div><br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 27, 2020 at 9:00 PM <<a href="mailto:subversion@hamsterrepublic.com" target="_blank">subversion@hamsterrepublic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">james<br>
2020-12-27 18:00:12 -0800 (Sun, 27 Dec 2020)<br>
114<br>
Dockerfile for bobthehamster/ohrrpgce-mxe-build-env now works, and is capable of compiling game.exe and custom.exe<br>
---<br>
U   wip/docker/ohrrpgce-mxe-build-env/Dockerfile<br>
<br>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div></div>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div>