Starting with FPC version 2.5.1 lazarus and FPC allow to save forms in lfm format without the need of LRS files.
This change make even easy migrate code from Delphi to Lazarus.
Prereqs:
Lazarus trunk version.
FPC trunk version (tested with version 2.5.1, don't know which is the minimal version required).
(Edited: minimal version required is FPC Version 2.4.0. Thanks Paul!)
The steps are:
1) Go to project options, tab miscellaneous and select fpc resources.
2) Copy dfm file to lfm file.
3) Open pas file on lazarus.
4) search your dfm reference and replace it for
{$IFDEF LCL}
{$R *.lfm}
{$ELSE}
{$R *.dfm}
{$ENDIF}
5) Search the include for lrs file at inicialization section and remove it.
6) HIT F12 (to see the lfm file).
7) You can safely ignore warnings about properties non presents in lazarus. That is true for the most of cases, but like you are a serious programmer will always read the warning messages to evaluate importance of the message, right? ;)
Save
8) Build. Done!
As always, don't forget to add need uses clauses in header of units ( i mind LclType, LResources,etc).
Enjoy!
Wednesday, December 23, 2009
Thursday, September 24, 2009
Zeos Libs dont work on 64 bits systems
Yes, i know. Please don't cry.
If you are a utopia code writer, thinking you can develop a terrific database system using lazarus + FPC + zeoslib on a 64 bits system, you are a dreamer!
I discover yesterday , 3 AM, in the hardest way, after ending migrating a Remobjects/DatAbstract server. It compile excellent, but ZEOS have a lot of bugs in 64 bits world.
So, my friend, keep dreaming theres a better world, or take the zeos code and bring it to the 64 bits universe (i'm checking right now how to help, and make it happens!)
After so many years with 64 bits on the market, you always will get a rock in the middle of your way, sadly.
Namaste.
If you are a utopia code writer, thinking you can develop a terrific database system using lazarus + FPC + zeoslib on a 64 bits system, you are a dreamer!
I discover yesterday , 3 AM, in the hardest way, after ending migrating a Remobjects/DatAbstract server. It compile excellent, but ZEOS have a lot of bugs in 64 bits world.
So, my friend, keep dreaming theres a better world, or take the zeos code and bring it to the 64 bits universe (i'm checking right now how to help, and make it happens!)
After so many years with 64 bits on the market, you always will get a rock in the middle of your way, sadly.
Namaste.
Monday, May 18, 2009
New repo for FPC Stable version
Now you can select one of two options:
deb http://www.petrobox.net/lazarus/ lazarus-stable universe
having fpc 2.2.4 and lazarus 0.9.27
or
deb http://www.petrobox.net/lazarus/ lazarus-testing universe
having fpc 2.3.1 and lazarus 0.9.27
I have some troubles using fpc 2.3.1 , solved when downgrade to 2.2.4. If is your case, now you have a easy solution.
Namaste.
deb http://www.petrobox.net/lazarus/ lazarus-stable universe
having fpc 2.2.4 and lazarus 0.9.27
or
deb http://www.petrobox.net/lazarus/ lazarus-testing universe
having fpc 2.3.1 and lazarus 0.9.27
I have some troubles using fpc 2.3.1 , solved when downgrade to 2.2.4. If is your case, now you have a easy solution.
Namaste.
Tuesday, May 12, 2009
Saturday, April 25, 2009
Lazarus Ubuntu Repo updated x86 and AMD64 binaries
New prebuild debds available.
fpc 2.3.1 build 13026
lazarus 0.9.27 build 19581
Enjoy!
Namaste.
fpc 2.3.1 build 13026
lazarus 0.9.27 build 19581
Enjoy!
Namaste.
Subscribe to:
Posts (Atom)