Wednesday, December 23, 2009

Lazarus(FPC) forms even more compatible with delphi.

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).

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!

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.

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.

Tuesday, May 12, 2009

Nominate Lazarus at Sourceforge 2009 awards

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.

Thursday, October 16, 2008

Repos lazarus testing version 0.9.27

Upgrade to repos and change of key

Add GPG key

gpg --keyserver hkp://pgp.mit.edu:11371 --recv-keys 46CC8C32

Add to APT:

gpg --export 46CC8C32 | sudo apt-key add -

Check if key is ok

sudo apt-key list

sudo aptitude update

sudo aptitude safe-upgrade.

Enjoy.

Namaste.

Friday, September 26, 2008

Using Logmein with Ubuntu 64 bits.

If you are a user of Ubuntu 64 and you need to acess logmein you will ahve a few problems because theres not java plugin for firefox working ok.

The open source plugins availables are incompatible with sun java or lack of functionalities.

On the other hand, Flash plugin work out of box in ubuntu hardy 64 bits.

After do a little research i found a simple method to get logmein working.

We will install a special version of swiftweasel, running 32 bits code inside a 64 bits OS.

1)Double check universe and multiverse repos are enabled, if dont just goto System -> Adminstration -> Software sources and enable them.

Pantallazo-Orígenes del software

2) Donwload that script, unzip and runit. More detailed instructions from the author here.

3) Choice your distro.

Pantallazo-germangentile@leslie-lx: ~-Documentos-Downloads-64 bits-ff32-3in1

4) Choice internet navigator.

Seleccionar navegador

5) Installing progress.

Instalando navegador Auto

6) Want install Flash? Is not a needed step, ubuntu install it rigth.

InstalarFlash

7) Install Java? Is required for use logmein.

Instalar Java

8) Install Mplayer Plugin? Recomended.

Instalar MPLAYER

9) The install scripts ask for your username

Pide tu usuario para poder instalar

10) Done. We have a 32 bits firefox running on our 64 bits system.

11) Install the logmein plugin for firefox.

Get it on the logmein web, labs section, aqui . Dont install the deb file, just save that.

Open a terminal , go to the place you save the deb file and type::

sudo dpkg -i --force-architecture logmein-client_1.0.387-1_i386.deb

Done, now you can enjoy using logmein in your 64 bits system.

Namaste