Book Image

Getting Started with Lazarus IDE

By : Roderick Person
1 (1)
Book Image

Getting Started with Lazarus IDE

1 (1)
By: Roderick Person

Overview of this book

A good integrated development environment can be the key to creating and delivering software on time and budget. Having a programming language and a development environment that runs on multiple platforms greatly eases and lessens the time taken on creating cross-platform applications. An IDE that is compatible with a legacy code base allows developers to leverage existing libraries in future applications."Getting Started with Lazarus" is a practical, hands-on guide that provides you with a number of clear step-by-step exercises, which will help you take advantage of the power of the Lazarus IDE and Free Pascal to develop software that can be created for cross-platform use."Getting started with Lazarus" discusses developing software with the open source cross platform integrated development environment and the Free Pascal language. We'll learn how to install Lazarus on various platforms such as Linux and Windows, as well as how to create new projects and convert existing Delphi projects to Lazarus projects by learning the differences between Delphi's Pascal syntax and Free Pascal's Object Pascal using a real world example project. We'll learn how to create custom components for use in Lazarus. We'll also learn the basics of documenting a Lazarus project using the Lazarus Documentation Editor. Finally we will learn that the IDE can be rebuilt using a different widget type, specifically GTK 2. Teach yourself the basics of programming with Lazarus and the open source IDE for the Free Pascal language.
Table of Contents (14 chapters)
Getting Started with the Lazarus IDE
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Why Lazarus?


Lazarus is an open source, cross-platform integrated development environment (IDE) for the open source Pascal compiler, Free Pascal (FPC). For the purpose of this book, it is to be assumed that when we say Lazarus, we are talking about Lazarus in conjunction with Free Pascal. Free Pascal offers a high degree of compatibility with Delphi's Object Pascal language, which includes many of the same libraries. The Lazarus Component Library (LCL) is, in many cases, equivalent to Delphi's VCL, including versions of many of the same controls used to create applications that have a graphical user interface. Just as with Delphi, Lazarus can also be used to create console applications, dynamic link libraries, or web applications.

With all the given similarities to Delphi, it is quite obvious that Lazarus along with Free Pascal can make a suitable open source replacement for Delphi. But, Lazarus is not limited to this. Lazarus can be used to develop Free Pascal applications that can be compiled and run on Linux-based smartphones. It is also possible to develop web applications with Lazarus using additional packages, such as Fpweb, FreeSpider, and Raudus. Compiled libraries can be created, which can be accessed by other programming languages, such as Python or C++.

Lazarus' greatest advantage is that it allows programmers to create cross-platform applications. Lazarus' technique for creating cross-platform applications is referred to as write once compile anywhere. This alludes to the fact that you can write applications on one platform, such as Linux, and compile it on different platforms, such as Apple's OS X or Microsoft's Windows operating systems. Currently, Lazarus supports Windows, WinCE, Mac OS X, iOS, Linux, and Android operating systems. In this book, we will focus on Linux and Windows as these are the largest current user bases in the Lazarus community.