<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 27 Dec 2020 at 10:04, 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 dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 23, 2020 at 9:53 AM 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 Thu, 24 Dec 2020 at 03:45, 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>Oh, sorry, I did write up instructions for compiling but didn't send them yet.<br></div><div><br></div><div>In order to compile a fbc that can target android you of course need to use <a href="https://github.com/rversteegen/fbc.git" target="_blank">https://github.com/rversteegen/fbc.git</a> which I have just merged upstream master into (and which therefore support emscripten too!) However this branch doesn't have the mac branch merged into it. That doesn't matter until we have a cross-compiler that targets Mac. At that point I can merge them. (Please ignore my androidmac branch, it's very old and I can't even remember what's going on in it.</div><div><br></div><div>Anyway, to target android it isn't necessary to build the rtlib or gfxlib2 for it, unlike other platforms, due to our hacky android build system.<br></div></div></blockquote><div><br></div><div>To clarify: I used my android branch and compiled linux 32/64-bit and windows libraries using it to get a multi-target FB installation.<br></div><div><br></div><div>Also, I forgot to mention that recently when I tried to compile ohrrpgce-game for Android I found it would crash when entering BROWSE(). I didn't figure out why yet. I wonder whether it's due to something that went wrong when I last merged upstream master into the android branch, back in June. I think I must have successfully compiled for Android more recently than that though. Would like to hear whether it works for you. I haven't tried again since doing the latest merge.<br></div></div></div></blockquote><div><br></div><div>I just tested the Android apk from last night's nightly build, and I was able to browse for RPG files with no problems. That was the 32-bit apk on an Android 9 phone.</div><div><br></div><div>I admit that I almost never test BROWSE() on Android, as I am almost always using apk files built for a specific RPG file.</div><div><br></div><div>However, today, for me, it works.<br></div></div></div></blockquote><div><br></div><div>The nightly build? But which fbc build does that use? Not a recent one?<br></div><div>(I notice SConscript doesn't print version info for android builds; I should change that)</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 class="gmail_quote"><div></div><div> <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 class="gmail_quote"><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> </div><div><br></div><span style="font-family:monospace">#!/bin/sh<br><br>cat <<EOF > <a href="http://config.mk" target="_blank">config.mk</a><br>prefix=$HOME/local/fbc-git<br>CFLAGS += -Wfatal-errors -g<br>#FBC := ~/local/fbc-1.05/bin/fbc<br><br># For some reason mxe puts ffi.h in a separate include dir, so it can't be found.<br># libffi is only needed for FB's ThreadCall operator, which we don't use, so just disable it.<br>CFLAGS += -DDISABLE_FFI<br><br>EOF<br><br># Compiler and includes<br>make compiler install-compiler install-includes -j6  || exit 1<br># Linux x86 libraries<br>make rtlib install-rtlib gfxlib2 install-gfxlib2 MULTILIB=32 -j6  || exit 1<br># Linux x86_64<br>make rtlib install-rtlib gfxlib2 install-gfxlib2 MULTILIB=64 -j6  || exit 1<br>make unit-tests  || exit 1<br># Note: make doesn't return false if any log-tests fail. A number do fail,<br># should doublecheck none are due to changes on the android branch.<br>#make log-tests  || exit 1<br># Windows x86 (using mxe; mxe's usr/bin must be in PATH)<br>make rtlib install-rtlib gfxlib2 install-gfxlib2 TARGET=i686-w64-mingw32.static -j6  || exit 1<br><br># The following are for compiling commandline Android test programs, but NOT needed for Game/Custom builds.<br># export PATH=$HOME/local/android-toolchain-r12b-api9-arm/bin:$PATH<br># export PATH=$HOME/local/android-toolchain-r12b-api17-x86/bin:$PATH<br># make rtlib install-rtlib TARGET=arm-linux-androideabi -j6  || exit 1<br># make rtlib install-rtlib TARGET=i686-linux-android -j6  || exit 1</span><br><br></div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 23 Dec 2020 at 09:38, 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>Right now this always fails in the step that does:<br></div><div><br></div><div><span style="font-family:monospace">RUN make TARGET=i686-w64-mingw32.static prefix=/usr/local/ rtlib gfxlib2 install-rtlib install-gfxlib2</span></div><div><br></div><div>It fails with this error message about ffi.h<br></div><div><br></div><div><span style="font-family:monospace">CC src/rtlib/obj/win32/sys_portio.o<br>CC src/rtlib/obj/win32/sys_rmdir.o<br>CC src/rtlib/obj/win32/sys_run.o<br>CC src/rtlib/obj/win32/sys_shell.o<br>CC src/rtlib/obj/win32/thread_call.o<br>src/rtlib/thread_call.c:33:17: fatal error: ffi.h: No such file or directory<br>compilation terminated.<br>makefile:554: recipe for target 'src/rtlib/obj/win32/thread_call.o' failed<br>make: *** [src/rtlib/obj/win32/thread_call.o] Error 1<br>The command '/bin/sh -c make TARGET=i686-w64-mingw32.static prefix=/usr/local/ rtlib gfxlib2 install-rtlib install-gfxlib2' returned a non-zero code: 2</span></div><div><br></div><div>libffi-dev is definitely installed, so i don't know what the problem is.</div><div><br></div><div>I tried skipping libffi with CFLAGS=-DDISABLE_FFI per the instructions in <a href="https://rpg.hamsterrepublic.com/ohrrpgce/Cross-compiling" target="_blank">https://rpg.hamsterrepublic.com/ohrrpgce/Cross-compiling</a> but that made no difference.</div><div><br></div><div>I also tried switching from <a href="https://github.com/freebasic/fbc.git" target="_blank">https://github.com/freebasic/fbc.git</a> to <a href="https://github.com/rversteegen/fbc" target="_blank">https://github.com/rversteegen/fbc</a> for the FBC sources, and that didn't help either (unless maybe I needed to use a specific branch?)</div><div><br></div><div>Anyway, I'll look at it more later. This was as far as I got today :D</div><div><br></div><div>---</div><div>James Paige<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 22, 2020 at 3:32 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-22 12:32:41 -0800 (Tue, 22 Dec 2020)<br>
158<br>
Docker: add a first-draft attempt at an mxe build environment in a docker container.<br>
<br>
This does not work yet, but will provide a base for further improvements<br>
---<br>
A   wip/docker/ohrrpgce-mxe-build-env/<br>
A   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>
</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></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>