Re: [fpc-pascal] SIGTERM problem
On 23 Nov 2010, at 22:01, Евгений Семенов (Evgeniy Semenov) wrote: Help me anybody, please. My program runs on arm-linux system and when it receive SIGTERM i can't handle this signal, program instantly terminate. Can someone suggest to me, what's the problem? May be it bug? Or where i can see rtl code which handle linux signals. Exact same program normally handle SIGTERM signal on i386- linux system. Which FPC version, which ARM-linux system (eabi, oabi), how was your compiler/rtl compiled? Jonas___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] SIGTERM problem
24.11.2010 12:25, Jonas Maebe пишет: On 23 Nov 2010, at 22:01, Евгений Семенов (Evgeniy Semenov) wrote: Help me anybody, please. My program runs on arm-linux system and when it receive SIGTERM i can't handle this signal, program instantly terminate. Can someone suggest to me, what's the problem? May be it bug? Or where i can see rtl code which handle linux signals. Exact same program normally handle SIGTERM signal on i386-linux system. Which FPC version, which ARM-linux system (eabi, oabi), how was your compiler/rtl compiled? fpc 2.4.0 eabi linux making crosscompiler make all OS_TARGET=linux CPU_TARGET=arm BINUTILSPREFIX=/home/sem/gcc/arm-none-linux-gnueabi/bin/ NOGDB=1 OPT='-O-' CROSSOPT='-Xd -CfSOFT -CaEABI -darm -dFPC_ARMEL -gl -O- -CpARMV5 -Fl/home/sem/gcc/arm-none-linux-gnueabi/libc/marvell-f/lib -Fl/home/sem/gcc/arm-none-linux-gnueabi/libc/marvell-f/usr/lib -Xr/home/sem/gcc/arm-none-linux-gnueabi/libc/marvell-f/lib' CROSSINSTALL=1 PREFIX=/usr i tried to test my program compiled with fpc 2.5.1, program immediately crash after start. same result with 2.4.2. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Working Free Pascal android JNI example
Because maybe requested of few, here is the complete source code of the android version of my BeRoXM mod/xm/wow player (which is also in the android market), where the mod/xm/wow playerengine is implemented in object pascal and compiled with freepascal, and the UI part stuff is in Java. The url is: http://rootserver.rosseaux.net/stuff/BeRoXMAndroidSrc.zip I hope it's a good start example now for these, who do want to mix object pascal code over the JNI bridge in their android app projects. And I'm working on OpenGL ES 2.0 android game in he moment, which contains 99% object pascal code and only 1% java code for "native objpas code JNI library loading"+"Android input event hooking and redirect to native code"+"OpenGL ES 2.0 context creation"+"Realtime-calculated-Audiobuffer-from-native-objpas-code-to-Android-Java-Audio-API-redirecting", but no more, so the remain of the code of my current android game project is pure object pascal, gne logic, opengl es 2.0 renderer, resource loading, threading (it has four threads, logic thread, render thread, audio thread and android UI event thread), networking, and so on. Regards, Benjamin 'BeRo' Rosseaux ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Working Free Pascal android JNI example
On Thu, Nov 25, 2010 at 6:35 AM, Benjamin Jan Alexander Rosseaux < benja...@rosseaux.com> wrote: > > Because maybe requested of few, here is the complete source code of the > android version of my BeRoXM mod/xm/wow player (which is also in the android > market), where the mod/xm/wow playerengine is implemented in object pascal > and compiled with freepascal, and the UI part stuff is in Java. > > The url is: http://rootserver.rosseaux.net/stuff/BeRoXMAndroidSrc.zip > > I hope it's a good start example now for these, who do want to mix object > pascal code over the JNI bridge in their android app projects. > > Benjamin, great to here, as long as I see there's no dedicated page about your experience with writing in Pascal for Android (only found your post in another forum: http://www.pascalgamedevelopment.com/showthread.php?5818-BeRoXM-The-first-android-app-with-object-pascal-code), I hope the admins will allow and you probably will have time to write some info at fpc wiki. Also I think that you as the developer who really did this, might add something useful to this sub-discussion: http://www.mail-archive.com/fpc-pascal@lists.freepascal.org/msg22483.html. Can you consider Android as the best mobile platform currently for a pascal developer? Max Vlasov ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] SIGTERM problem
Евгений Семенов (Evgeniy Semenov) wrote: 24.11.2010 12:25, Jonas Maebe пишет: On 23 Nov 2010, at 22:01, Евгений Семенов (Evgeniy Semenov) wrote: Help me anybody, please. My program runs on arm-linux system and when it receive SIGTERM i can't handle this signal, program instantly terminate. Can someone suggest to me, what's the problem? May be it bug? Or where i can see rtl code which handle linux signals. Exact same program normally handle SIGTERM signal on i386-linux system. Which FPC version, which ARM-linux system (eabi, oabi), how was your compiler/rtl compiled? fpc 2.4.0 eabi linux making crosscompiler make all OS_TARGET=linux CPU_TARGET=arm BINUTILSPREFIX=/home/sem/gcc/arm-none-linux-gnueabi/bin/ NOGDB=1 OPT='-O-' CROSSOPT='-Xd -CfSOFT -CaEABI -darm -dFPC_ARMEL -gl -O- -CpARMV5 -Fl/home/sem/gcc/arm-none-linux-gnueabi/libc/marvell-f/lib -Fl/home/sem/gcc/arm-none-linux-gnueabi/libc/marvell-f/usr/lib -Xr/home/sem/gcc/arm-none-linux-gnueabi/libc/marvell-f/lib' CROSSINSTALL=1 PREFIX=/usr i tried to test my program compiled with fpc 2.5.1, program immediately crash after start. same result with 2.4.2. Do you have an example program (as short as possible) that demonstrates this? I've got 2.4.2 etc. running here and would be interested to try it. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal