Difference between revisions of "Install IDE packages without the IDE"

From Lazarus wiki
Jump to navigationJump to search
(New page: ==Overview== To install a package in the IDE you need the following * all required packages must be setup and compiled * the .lpk file must be registered * setup the $HOME/.lazarus/static...)
 
Line 9: Line 9:
 
==Compile and register the required packages==
 
==Compile and register the required packages==
  
Do recursively the steps on this package until only the base lazarus packages are needed.
+
Do recursively the steps on this page until only the base lazarus packages are needed.
  
 
==Register the .lpk file==
 
==Register the .lpk file==

Revision as of 20:56, 19 August 2007

Overview

To install a package in the IDE you need the following

  • all required packages must be setup and compiled
  • the .lpk file must be registered
  • setup the $HOME/.lazarus/staticpackages.inc file
  • setup $HOME/.lazarus/idemake.cfg

Compile and register the required packages

Do recursively the steps on this page until only the base lazarus packages are needed.

Register the .lpk file

The IDE must find the .lpk file for a packagename. It searches the .lpk file in the following places:

  • In the $HOME/.lazarus/packagefiles.xml file
  • In the <lazarus_path>/packager/globallinks/

Setup the $HOME/.lazarus/staticpackages.inc file

Create this file, if it does not exist. Add the packagename plus a comma to this file. For example this file can look like this:

 Printer4Lazarus,
 RunTimeTypeInfoControls,
 H2PasWizard,

setup $HOME/.lazarus/idemake.cfg

The idemake.cfg contains the compile parameters. The easiest way to create this file is to install the package in a IDE and then copy the file to the target machine and adapt the file paths.