Free Sample
+ Collection

Getting Started with Lazarus IDE

Roderick Person

Get to grips with the basics of programming, debugging, creating, and documenting projects with the Lazarus IDE
RRP $14.99
RRP $24.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781782163404
Paperback116 pages

About This Book

  • Creating new projects
  • Create components for use in Lazarus
  • Documenting Lazarus project

Who This Book Is For

This book is geared toward developers that have a familiarity with Delphi or Free Pascal and would like to start using the open source Lazarus Integrated Development Environment. You should have knowledge of creating a console and GUI applications as well as creating basic components. Example source code and projects are provided to help learn the differences between Delphi and Lazarus projects.

Table of Contents

Chapter 1: Installing and Configuring the Lazarus Development Environment
Why Lazarus?
Installing Lazarus in Linux
Installing under Windows
Installing under other OSes such as FreeBSD or Mac OS X
Configuring the Lazarus development environment
Chapter 2: Getting to Know the Lazarus IDE – a Quick Tour
The Object Inspector window
The Component Tree window
The Source Editor window
Chapter 3: Creating a Hello World Program
Hello World console application version
Hello World graphical user interface version
Expanding the Hello World application
Debugging commands
Other debugger features
Chapter 4: Converting Delphi
Differences between Lazarus and Delphi Components
Conversion methods
Chapter 5: Creating a Lazarus Component
Creating a new component package
Adding properties
Events with more parameters
Property editors
Component editors
Chapter 6: The Lazarus Documentation Editor
Building the LazDE tool
Examining existing source documentation
Documenting your code
Using FPDoc
Chapter 7: Rebuilding Lazarus with a GTK2 Interface
Rebuilding Lazarus interface on Windows

What You Will Learn

  • Install Lazarus on different platforms such as Linux or Windows
  • Learn the basics of the Lazarus IDE such as the menus, the Object Inspector, and the Source Code Editor
  • Create new projects with Lazarus such as console applications and GUI applications
  • Debug Lazarus projects
  • Convert an existing Delphi project to a Lazarus project
  • Create new components for use with Lazarus GUI applications
  • Document a Lazarus project using the LazDE tool
  • Rebuild Lazarus on the Windows platform using the GTK 2 widget set


In Detail

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.


Read More

Recommended for You