Ah, yes, setting TARGET_ARCH wasn't sufficient. Here is my config.mk.
I am using a Slackware64 14.0 multilib system. I haven't edited
anything else:

ENABLE_PREFIX=1
CFLAGS := -Wfatal-errors -O2 -I/usr/lib/libffi-3.0.11/include/ -g -m32
TARGET_ARCH=x86
prefix=/home/ralph/local/fbc-0.90
V=1

Linking with libffi is optional: you can add -DDISABLE_FFI.

On 17 May 2013 04:10, Seth Hetu <[email protected]> wrote:
> While compiling this on a 64-bit system, it seems that setting TARGET_ARCH
> is not sufficient. In particular:
>     * gcc will freak out regarding assembly functions and "operand type
> mismatch" errors.
>     * gcc won't find libffi (on Ubuntu), as it's in a special
> "i686-linux-gnu" directory inside "/usr/include".
>
> To get around this, I just hacked the makefile, changing:
>
> ALLCFLAGS := -Wall -Werror-implicit-function-declaration
>
> ..to:
> ALLCFLAGS := -Wall -Werror-implicit-function-declaration -m32
> -I/usr/include/i686-linux-gnu
>
> If you got this working on a 64-bit system some other way, let me know (I'm
> really bad at makefiles).
>
> -->Seth
>
>
> On Fri, May 10, 2013 at 5:53 PM, Ralph Versteegen <[email protected]>
> wrote:
>>
>> I did some work on the Android port today, and got to the point of
>> being able to compile everything, create an .apk, and install it. It
>> currently crashes almost instantly with only the following error
>> message (an earlier version at least managed to initialise everything
>> except the native code).
>>
>> D/dalvikvm( 9355): Trying to load lib
>> /data/app-lib/com.hamsterrepublic.ohrrpgce.game-1/libapplication.so
>> 0x41f5cdf0
>> I/ActivityManager(  495): Process com.hamsterrepublic.ohrrpgce.game
>> (pid 9355) has died.
>>
>> Instructions are here:
>> http://rpg.hamsterrepublic.com/ohrrpgce/Compiling_for_Android
>>
>> I've automated all the drudgery. Now the hard work remains: debugging,
>> platform and device differences, Android-specific OHR modifications,
>> touch input, and lots of customisations to all the stuff in the SDL
>> port. For example I'm not very happy with the way that emulated
>> keyboard input works. we will want per-game settings without having to
>> recompile.
>>
>> However I'm taking a break for a while. I have too much else to do.
>> _______________________________________________
>> Ohrrpgce mailing list
>> [email protected]
>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
>
>
> _______________________________________________
> Ohrrpgce mailing list
> [email protected]
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to