Wednesday, January 19, 2011

Linux repositories compatibles with RemObjects

Sometimes is hard to have a updated version of lazarus and fpc working with remobjects version.

For this reason , im publishing and updating versions tested with remobjects latest stable release on my repos.

the stable version will be the tested with RO and the testing version will be the guarantee to compile ro packages.

Here are the instructions.

Repository Lazarus / testing FPC versions


Installation instructions:

open a console or terminal window on your ubuntu or debian based linux box.

Add the key GPG

gpg --keyserver hkp://pgp.mit.edu:11371 --recv-keys 63EF10AF

Add the key to APT system:

gpg --export 63EF10AF | sudo apt-key add -

Check whether the key was built:

sudo apt-key list

Add the repository to its list of repositories

You can use synaptic or edit /etc/apt/sources.list directly. Add the line:

deb http://www.petrobox.net/lazarus/ lazarus-stable universe

or

deb http://www.petrobox.net/lazarus/ lazarus-testing universe


remember, the tested version will be the STABLE version only.


Install Lazarus

from the same console windows type

sudo apt-get update

then

sudo apt-get install lazarus

that's all.

Enjoy!

Namaste.

Tuesday, May 18, 2010

Lazarus on OS X (short version)

Simple steps to have working lazarus on MAC OS X.

Is required Mac OS X 16.2

about_mac_os

1) Install full XCODE, download from apple orinstall from Mac OS X cd.

2) Install FPC from here .

mac_download_fpc

3)Download lazarus sources , build and use.

Steps to get and build

Open a terminal.

go to devs folder

cd /Developers

get source of lazarus

svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus

when finish, change to downloaded sources folder

cd /Developers/lazarus

build it...

make clean all

run it!

./startlazarus



Enjoy.

Sunday, February 21, 2010

DCPCrypt for 64 bits is here

The best library for encryption and decryption in delphi and lazarus is working in 64 bits now (Only in lazarus/fpc, while embarcadero don't release a 64 bits compiler).

Thanks to the amazing work of David Barton, library creator, we can get enc/dec at faster speeds using 64 bits.

You can download it here

Thanks David!

Enjoy!

Edited: The project is now hosted in lazarus-ccr project. a unique code builds on both,32 and 64 bits. I dont tested the lazarus-ccr code.

Sunday, January 3, 2010

Happy New Year! FPC 2.4.0 is here!

From the lazarus list, Marco van de Voort annouce:

"Happy New Year!

As a special present, we have placed a new major release of the Free Pascal
Compiler, version 2.4.0 on our ftp-servers.

Changes that may break backwards compatibility are documented at:
http://wiki.freepascal.org/User_Changes_2.4.0

Downloads are available at:

the main FTP server at

ftp://ftp.freepascal.org/pub/fpc/dist/2.4.0/

and

ftp://freepascal.stack.nl/pub/fpc/dist/2.4.0/"

Is the most delphi compatible version EVER! Great news for delphi developers needing Mac Os and Linux targets.

Enjoy!

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

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.