First, after the
... else ifeq($(TARGERPLATFORM), android) OBJ += $(OBJDIR)/as_callfunc_arm_gcc.o
I added:
else OBJ += $(OBJDIR)/as_callfunc_arm_gcc.o
Since the RPi is ARM based, and since I´m using gcc, this looked like the right thing to do.
I also had to add -DAS_NO_THREADS to avoid getting some "unreferences".
The Tutorial and Game examples build fine with this setup, but in the tutorial project I´ve found some problems. When running it, the program outputs this:
---
Received: 1000, 1000
System has been running for 1000 seconds.
---
The script function returned: 8.53973
So as you can see, the received values are wrong. (Interestingly enough, the value returned at the end is correct).
I have the same problem with an application I made. Everything seems to be working fine as long as I use ints or string within my scripts, but as soon as I use floats or doubles the values get corrupted. (I haven´t tested the game project enough, BTW).
If I build the library with -DAS_MAX_PORTABILITY then the tutorial project build ok and works as expected:
---
Received: 3.14159, 2.71828
System has been running for 3.89004e+06 seconds.
---
The script function returned: 8.53973
Any ideas on what could be the problem or what to look for in order to find a solution?
Thanks!

Find content
Male