Difference between revisions of "Using the LCL without Lazarus"

From Free Pascal wiki
Jump to navigationJump to search
Line 10: Line 10:
  
 
Tested on Microsoft Windows XP SP3.
 
Tested on Microsoft Windows XP SP3.
 +
 +
=== Introduction ===
 +
 +
You aren't forced to use the Lazarus IDE if you want to develop with the LCL. You can use it directly from the Free Pascal Compiler.
 +
 +
=== The installation process ===
 +
 +
First download the Free Pascal 2.4.4 and the Lazarus 0.9.30 and install them.
 +
 +
Our FPC install directory will be this
 +
X:\FPC\2.4.4\
 +
'' "X" is the drive letter ''
 +
 +
The Lazarus install directory will be this
 +
X\Lazarus\
 +
 +
Then copy the ''lcl'' folder.
 +
 +
Copy this folder:
 +
X:\Lazarus\lcl
 +
 +
Paste it to this location:
 +
X:\FPC\2.4.4\units\i386-win32\lcl
 +
 +
Now you can remove the Lazarus from your computer.
 +
In the next section we'll informate the FPC that the LCL's been installed.
 +
 +
=== The settings ===
 +
 +
Start the FPC. Click on the ''Options'' menu and then the ''Directories'' menu item. Select the ''Units'' tab (default).
 +
 +
Add these directories:
 +
X:\FPC\2.4.4\units\i386-win32\lcl
 +
X:\FPC\2.4.4\units\i386-win32\lcl\units\i386-win32
 +
X:\FPC\2.4.4\units\i386-win32\lcl\widgetset
 +
X:\FPC\2.4.4\units\i386-win32\lcl\interfaces\win32
 +
 +
Then click on the ''Include files'' tab.
 +
 +
Add this directory:
 +
X:\FPC\2.4.4\units\i386-win32\lcl\include
 +
 +
Now, you should be able to use the LCL. In the next section we'll try out creating a form with a button on it.

Revision as of 11:01, 30 June 2011

How to use the LCL without the Lazarus IDE?


Requirements

Things you'll need:
 Free Pascal 2.4.4
 Lazarus 0.9.30

Tested on Microsoft Windows XP SP3.

Introduction

You aren't forced to use the Lazarus IDE if you want to develop with the LCL. You can use it directly from the Free Pascal Compiler.

The installation process

First download the Free Pascal 2.4.4 and the Lazarus 0.9.30 and install them.

Our FPC install directory will be this

X:\FPC\2.4.4\

"X" is the drive letter

The Lazarus install directory will be this

X\Lazarus\

Then copy the lcl folder.

Copy this folder:

X:\Lazarus\lcl

Paste it to this location:

X:\FPC\2.4.4\units\i386-win32\lcl

Now you can remove the Lazarus from your computer. In the next section we'll informate the FPC that the LCL's been installed.

The settings

Start the FPC. Click on the Options menu and then the Directories menu item. Select the Units tab (default).

Add these directories:

X:\FPC\2.4.4\units\i386-win32\lcl
X:\FPC\2.4.4\units\i386-win32\lcl\units\i386-win32
X:\FPC\2.4.4\units\i386-win32\lcl\widgetset
X:\FPC\2.4.4\units\i386-win32\lcl\interfaces\win32

Then click on the Include files tab.

Add this directory:

X:\FPC\2.4.4\units\i386-win32\lcl\include

Now, you should be able to use the LCL. In the next section we'll try out creating a form with a button on it.