#1 2015-10-08 20:15:53

AOG
Member
Registered: 2014-02-24
Posts: 490

mORMot on Android

Hello to all,

I have just added a mORMot sample for the very nice LAMW framework !

It can be found at: https://github.com/jmpessoa/lazandroidm … ORMotDemo1

Enjoy, Alfred.

Offline

#2 2015-10-08 20:20:15

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,183
Website

Re: mORMot on Android

Nice!

Some link to download the .apk?

Offline

#3 2015-10-09 07:48:41

AOG
Member
Registered: 2014-02-24
Posts: 490

Offline

#4 2015-10-09 09:37:55

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,183
Website

Re: mORMot on Android

@AOG

It's amazing.

Resulting .apk is small (when compared to Delphi+FMX, and I guess it could be smaller in release mode), and works just fine...
smile

Offline

#5 2015-10-10 08:01:27

AOG
Member
Registered: 2014-02-24
Posts: 490

Re: mORMot on Android

Yes, in real life, it should be much smaller.
But its just a proof-of-concept.

Addition of mORMot sample mentioned here: http://forum.lazarus.freepascal.org/ind … #msg189939

Next p-o-c will be an OpenGL just-for-fun version,
with floating menus and animations,
and high battery consumption,
using the PXL library: http://forum.lazarus.freepascal.org/ind … d73d1bfb4f

Offline

#6 2017-09-21 20:43:44

rtokyolivier
Member
Registered: 2011-08-20
Posts: 2

Re: mORMot on Android

Hi all,
I'm not able to compile the project with the current version of laz4android (lazarus 1.7 and fpc 3.1.1) and mOrmot (1.18) downloaded forme synapse.info website. Can you give me a hint please?

Offline

#7 2017-10-04 04:35:45

AOG
Member
Registered: 2014-02-24
Posts: 490

Re: mORMot on Android

Hint:
Use fpcupdeluxe to install FPC trunk and Lazarus.
(mORMot needs recent FPC trunk)
Use fpcupdeluxe to install cross-compiler for Android.
Install LAMW. You could also use fpcupdeluxe for that: install module LAMW.
Of you go !!

Offline

#8 2017-12-02 15:07:35

rtokyolivier
Member
Registered: 2011-08-20
Posts: 2

Re: mORMot on Android

Hi, I've tried to compile this demo but I can't. There are many errors. Can you share here wich source of mMormot have been used?

Offline

#9 2017-12-04 07:12:12

AOG
Member
Registered: 2014-02-24
Posts: 490

Re: mORMot on Android

rtokyolivier wrote:

Hi, I've tried to compile this demo but I can't. There are many errors. Can you share here wich source of mMormot have been used?

You take your time ... ;-)

But serious: you must give me more info (about the errors encountered) to allow me to be able to help you.

Offline

#10 2017-12-20 14:02:00

triguinhu
Member
From: Brazil
Registered: 2016-07-28
Posts: 27

Re: mORMot on Android

I receive that error message on compiling

Project checks, Hints: 3
Note: passing compiler option -M twice with different values
Note: passing compiler option -FU twice with different values
Note: passing compiler option -o twice with different values
Compile Project, OS: android, CPU: arm, Target: C:\DCUsOutFPC\mORMotOnAndroid: Exit code 1, Errors: 3
And_Jni.pas(553,0) Error: Can't create assembler file: output\And_Jni.s
And_Jni.pas(553,0) Error: Compilation raised exception internally
Fatal: I/O error: File not open

Offline

#11 2017-12-20 14:58:59

AOG
Member
Registered: 2014-02-24
Posts: 490

Re: mORMot on Android

@triguinhu

Again, I need more info to be able to help you !
What Lazarus and FPC version. How did you install FPC/Lazarus/LAMW. What Android version is your target. What Android SDK/NDK/Ant are you using.

Offline

#12 2017-12-20 15:46:14

triguinhu
Member
From: Brazil
Registered: 2016-07-28
Posts: 27

Re: mORMot on Android

Ok, thanks for your help

I use Lazarus 1.9.0 with FPC 3.1.1
I use fpcupdeluxe with lazarus and fpc trunk
I install LAMW and laz4droid modules by fpcupdeluxe too
I use JDK 1.7.0.80, SDK x86 Win update today, installed today too, NDK r9c and ANT 1.10.1

My OS is Windows 10 32 bits

Last edited by triguinhu (2017-12-20 15:52:59)

Offline

#13 2017-12-21 07:00:19

AOG
Member
Registered: 2014-02-24
Posts: 490

Re: mORMot on Android

I have looked at your error.
It is generated by this code inside FPC compiler sources:

Assign(outfile,owner.AsmFileName);
{$push} {$I-}
Rewrite(outfile,1);
{$pop}
if ioresult<>0 then
begin
    fioerror:=true;
    Message1(exec_d_cant_create_asmfile,owner.AsmFileName);
end;

This seems clear: the file cannot be created ... access permissions ?
https://www.freepascal.org/docs-html/user/userse66.html

Offline

#14 2017-12-22 15:38:27

triguinhu
Member
From: Brazil
Registered: 2016-07-28
Posts: 27

Re: mORMot on Android

Thanks for help!!!

I change access permissions to allow all for all users but the error persist
I change development environment to fpc 3.0.4 and lazarus 1.8.0, ndk for r14b
I pass, new sample project compile ok!
But on declare in uses Mormot i received that error:

mORMot.pas(60619,0) Error: Error while assembling exitcode 1

I think I'm doing something wrong but I need some help here :-)

How to post All verbose messages on compiling: file .txt ou on quoted text? code text?

{}s

Rodrigo

Offline

#15 2017-12-23 06:28:53

AOG
Member
Registered: 2014-02-24
Posts: 490

Re: mORMot on Android

To prevent a long conversation and long posts, I would like to suggest that you share your code somewhere.
And also the output (or screen-dumps) of your compile-efforts.
That would make life easier (for me), and increases the changes that we can help you !

Offline

Board footer

Powered by FluxBB