Welcome, Guest
Username: Password: Remember me
Lab CT Version, news, test results, new features request and suggestions

TOPIC:

CT LAB ver 5.90 8 years 1 month ago #10046

  • usbdoo
  • usbdoo's Avatar
  • Visitor
  • Visitor
How close to integrate the Pandroid to CodeTyphon?
What prepares or planning CT about apk JVM FPC?

Please Log in or Create an account to join the conversation.

Last edit: by usbdoo.

CT LAB ver 5.90 8 years 1 month ago #10047

  • Bram van Vliet
  • Bram van Vliet's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 0
Hello Sternas,

Thanks for the quick response, problem solved! It was indeed a naming conflict.

I pre pended the package name ending with a underscore to the bmp names (should have done that when i ported the package from Delphi7 as standard practice) and made a .res instead of lrs (deprecated) of it to be future proof.

Maybe useful for others, i extended my fpc.cfg to crosscompile to arm (Beaglebone and RPi) under linux from the IDE by conditionally setting the searchpath for libraries.

# searchpath for libraries
#IFDEF CPUARM
#IFDEF Raspbian2
-Fl/usr/local/codetyphon/binLibraries/arm-linux-Raspbian2
#ESLSE
-Fl/usr/local/codetyphon/binLibraries/arm-linux-Beagleboard
#ENDIF
#ELSE
-Fl/usr/lib64
-Fl/usr/lib/x86_64-linux-gnu
-Fl/usr/lib/gcc/x86_64-linux-gnu/4.9
-Fl/usr/lib/gcc/x86_64-linux-gnu/4.8
-Fl/usr/lib/gcc/x86_64-linux-gnu/4.7
-Fl/usr/lib/gcc/x86_64-linux-gnu/4.6
-Fl/usr/lib/gcc/x86_64-linux-gnu/4.2.3
-Fl/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.7.4
-Fl/usr/lib/gcc/x86_64-redhat-linux/4.8.2
-Fl/usr/lib64/gcc/x86_64-suse-linux/4.8/
-Fl/usr/lib/gcc/x86_64-redhat-linux/4.8.3
#ENDIF

Since i mostly cross compile for the Beaglebone i opted for a extra ifdef for RPi. For cross compiling to RPI just add -dRaspbian2 to custom options in your rpi target build mode.

Again thanks!

Please Log in or Create an account to join the conversation.

CT LAB ver 5.90 8 years 1 month ago #10048

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Thanks Sir
have fun...
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

CT LAB ver 5.90 8 years 1 month ago #10077

  • Vitaly
  • Vitaly's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0

Avra wrote:


Please add mORMot. All the FPC and Lazarus RTTI integration is already done at newpascal.org


+1

Please Log in or Create an account to join the conversation.

CT LAB ver 5.90 8 years 1 month ago #10103

  • Klaus Riesterer
  • Klaus Riesterer's Avatar
  • Visitor
  • Visitor

Vitaly wrote:

Avra wrote:


Please add mORMot. All the FPC and Lazarus RTTI integration is already done at newpascal.org


+1


Mormot is already good documented but has no ready support for Linux and needs Delphi partially (See Synopse-Homepage). tiOPF is really working fine on Windows, Mac and Linux with FPC but is less documented.

Please Log in or Create an account to join the conversation.

CT LAB ver 5.90 8 years 4 weeks ago #10108

  • Vitaly
  • Vitaly's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0
I don't know about Linux support, because I use win and my target is windows server (what is this? synopse.info/files/html/Synopse%20mORMot...201.18.html#TITL_142)

Delphi-needing: it' s true, I use delphi, but only for generating missing interface RTTI (delphi 6 totally enough). In other cases, like classic mORMot client-server, I don't need delphi at all.

tiOPF obviously good, but (as I understood) it is only ORM without any web-services abilities for example.
I work with mORMot (with CT) for less than month and didn't work with tiOPF at all. So, I admit that I can be wrong. Still I don't see how tiOPF can replace mORMot for me.

Please Log in or Create an account to join the conversation.

CT LAB ver 5.90 8 years 4 weeks ago #10112

  • Klaus Riesterer
  • Klaus Riesterer's Avatar
  • Visitor
  • Visitor
You're right, there is some linux support and I will test it soon. I think if mORMot is working with linux nativly it is the better solution. Also the documentation in mORMot is mutch better and complete. What I can't see is how to generate the RTTI interface for nativ Linux, when I have to use Delphi for that.
Thank you for the above link - I hadn't seen this.
There are web-services also in tiOPF but there is no json support in th moment (its in development)
I use tiOPF for some weeks now and I did not know all functions for now. The documentation is incomplete but there are many demo projects.

Bad News from Synopse on 2016-02-11:

'Sadly, we do not have full support of all FPC versions.
We would like perhaps to validate a particular version of FPC...

Any version of Delphi, since Delphi 6 would work just fine with mORMot.

Honestly, I did not have time lately to focus back on support of latest versions of FPC...
Since we do not use FPC here on production, and are implementing features on proprietary mORMot-based code using Delphi and (old) CrossKylix,'



There are warnings to not use mORMot on FPC for production purpose. (But many did this without any issues !)
There are also massive problems with string constants in FPC with mORMot. (may be it's a fpc problem in codepages)

(See mORMot forums)

If all problems are solved mORMot will be the better solution I think.

Why not implement both tiOPF and mORMot? Its not a great thing to do this ...

Please Log in or Create an account to join the conversation.

Last edit: by Klaus Riesterer.

CT LAB ver 5.90 8 years 4 weeks ago #10113

  • Vitaly
  • Vitaly's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0

Klaus Riesterer wrote: If all problems are solved mORMot will be the better solution I think.

Why not implement both tiOPF and mORMot? Its not a great thing to do this ...


That's why I posted "+1" on mORMot proposal :) I used CT for years (instead of Lazarus) and became too accustomed to get everything I need out of box at any time. [Many thanks to CT Team by the way, many!]
Now I use mORMot with CodeTyphon. There are some troubles, but they are all "overcomeable".
Therefore I'm sure that CT Team will solve all that and future problems while implementing mORMot. Of course, if they decide to do it ;)

You are right! I'm totally for implementing every single qualified library in CT. It will be only better for everybody.
For example, I didn't ever used even half of components, introduced in CodeTyphon. But I'm pleased to have an ability to use them, if I get such a need.

Please Log in or Create an account to join the conversation.

CT LAB ver 5.90 8 years 4 weeks ago #10114

  • Leslie
  • Leslie's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 66
  • Thank you received: 4
Vitaly,

Your information on mORMot is outdated. It supports and follows the FPC trunk. There is a contributor (Alf) who helped the Linux and Android development greatly. There are people actively developing Linux servers with FPC, me included. Delphi starter is available for free now. It is just one extra step to generate the necessary RTTI for interfaces. You can create a batch file for that. No biggy.

Please Log in or Create an account to join the conversation.

CT LAB ver 5.90 8 years 4 weeks ago #10115

  • Klaus Riesterer
  • Klaus Riesterer's Avatar
  • Visitor
  • Visitor

Leslie wrote: Vitaly,

Your information on mORMot is outdated. It supports and follows the FPC trunk. There is a contributor (Alf) who helped the Linux and Android development greatly. There are people actively developing Linux servers with FPC, me included. Delphi starter is available for free now. It is just one extra step to generate the necessary RTTI for interfaces. You can create a batch file for that. No biggy.


With some help in other forums I get mORMot running under Linux now. May be that my informations are outdated, but they are from official source.

To use Delphi in any form is not what I will do, either payed nor free. I have licences for Delphi as I used it for many years, but I will not do a new Setup on Windows - I use Linux.

Looking at the sample codes in the mORMot demo folder I decided to use tiOPF. Its - in my opinion - the better, more clear and structured solution and it is highly integrated in Lazarus, especially with fpGUI.
Please don't missunderstand, mORMot is also great and I will follow it's future! May be some day ...

Please Log in or Create an account to join the conversation.

Last edit: by Klaus Riesterer.

CT LAB ver 5.90 8 years 4 weeks ago #10116

  • Vitaly
  • Vitaly's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0

Leslie wrote: Vitaly,

Your information on mORMot is outdated. It supports and follows the FPC trunk. There is a contributor (Alf) who helped the Linux and Android development greatly. There are people actively developing Linux servers with FPC, me included. Delphi starter is available for free now. It is just one extra step to generate the necessary RTTI for interfaces. You can create a batch file for that. No biggy.


I didn't say that mORMot doesn't support fpc. Where did you see that?
In fact I wrote that I successfully use it with FPC (CT) in my current projects.

Please Log in or Create an account to join the conversation.

CT LAB ver 5.90 8 years 4 weeks ago #10117

  • Klaus Riesterer
  • Klaus Riesterer's Avatar
  • Visitor
  • Visitor
And I said I have mORMot running with fpc on Linux now ...

Please Log in or Create an account to join the conversation.

CT LAB ver 5.90 8 years 4 weeks ago #10123

  • Leslie
  • Leslie's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 66
  • Thank you received: 4
Guys, I am sorry, did not mean to offend anyone. :) I have not read the whole topic, but the over all impression was that mORMot with FPC is not ready for Linux.

Please Log in or Create an account to join the conversation.

CT LAB ver 5.90 8 years 4 weeks ago #10124

  • Vitaly
  • Vitaly's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0

Leslie wrote: Guys, I am sorry, did not mean to offend anyone. :) I have not read the whole topic, but the over all impression was that mORMot with FPC is not ready for Linux.


That's ok ;)
Let me summarize our discussion: mORMot is good, worth and ready for implementing in CT build :)
I believe everybody will agree with that.

Please Log in or Create an account to join the conversation.

CT LAB ver 5.90 8 years 2 weeks ago #10174

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
We release Lab CodeTyphon ver 5.90 revision 005850 (RC)
This version has a lot of new things and many fixes/improvements
More at first post

Please, test this LAB CT release and report/suggest here
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

CT LAB ver 5.90 8 years 2 weeks ago #10175

  • usbdoo
  • usbdoo's Avatar
  • Visitor
  • Visitor
-FIX aarch64 (arm64) CrossBuild problems



Distributor ID: Debian 64bit
Description: Debian GNU/Linux 8.5 (jessie)
Release: 8.5
Codename: jessie



CT 5.9 64bits
[ERROR]: FPC64 Cross Element aarch64-android Param:xxxx NOT Exists
[ERROR]: FPC64 Cross Element x86_64-android Param:xxxx NOT Exists




Distributor ID: Debian 32bit
Description: Debian GNU/Linux 8.5 (jessie)
Release: 8.5
Codename: jessie

CT 5.9 32bits
[ERROR]: FPC64 Cross Element aarch64-android Param:xxxx NOT Exists
[ERROR]: FPC64 Cross Element x86_64-android Param:xxxx NOT Exists

Please Log in or Create an account to join the conversation.

CT LAB ver 5.90 8 years 2 weeks ago #10176

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Sir, just a moment to boot Debian...
testing...
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

CT LAB ver 5.90 8 years 2 weeks ago #10177

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
1)The problem is that FreePascal NOT support
aarch64-android and
x86_64-android yet..

FPC SVN Android possible targets CPU are: arm, i386 jvm and mipsel

2) The Lab CT 5.9 rev 005850, crossbuild scripts are OK
and give this error on aarch64-android
The installer encountered the following error:
Could not find unit directory for dependency package "rtl"
Makefile:1715: recipe for target 'all' failed
make[1]: *** [all] Error 1
make[1]: Leaving directory '/usr/local/codetyphon/fpcsrc/packages'
Makefile:2784: recipe for target 'packages' failed
make: *** [packages] Error 2

Which is correct, for 1) reason

so, we must wait .... for aarch64-android and x86_64-android

3) aarch64-Linux work OK
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

CT LAB ver 5.90 8 years 2 weeks ago #10178

  • usbdoo
  • usbdoo's Avatar
  • Visitor
  • Visitor
it's true

Problem is
aarch64-android and
x86_64-android

Please Log in or Create an account to join the conversation.

CT LAB ver 5.90 8 years 2 weeks ago #10183

  • Bram van Vliet
  • Bram van Vliet's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 0
Hello sir,

I just tested 02-11-2016 LAB CT 5.9.0 Revision 005850 [RC] on Ubuntu 16.04 x86-64 xfce and the source editor page remains invisible on the editor tab when the embedded form designer is disabled.

Steps to reproduce, in te ide menu go to "Tools > Options > General Extra" and disable "Use Embedded Form Designer" and restart the ide.

This happens in both docked and undocked modus. Switching between form and editor with F12 (classic key map) does focus the code editor tab but the editor remains invisible. In 04-10-2016 LAB CT 5.9.0 Revision 005840 [BETA 2] version the code editor is visible with the embedded form designer disabled.

* I can't use the embedded form designer because of custom mdi form hackery under gtk2...

Please Log in or Create an account to join the conversation.