Difference between revisions of "Install IDE packages without the IDE"
m |
(layout so it is clear that basically everything is old/obsolete) |
||
Line 18: | Line 18: | ||
* execute ''make idepkg'' | * execute ''make idepkg'' | ||
− | ==Quick== | + | ===Quick=== |
The easiest way is to install the package in the IDE, copy the needed files to the target directory/filesystem and adapt the filenames. | The easiest way is to install the package in the IDE, copy the needed files to the target directory/filesystem and adapt the filenames. | ||
− | ==Compile lazbuild== | + | ===Compile lazbuild=== |
Install FPC and lazarus - or do a make lazbuild. See . | Install FPC and lazarus - or do a make lazbuild. See . | ||
− | ==Compile and register the required packages== | + | ===Compile and register the required packages=== |
Do the steps on this page recursively until only the base Lazarus packages are needed. | Do the steps on this page recursively until only the base Lazarus packages are needed. | ||
− | ==Register the .lpk file== | + | ===Register the .lpk file=== |
The IDE must find the .lpk file for a packagename. It searches the .lpk file in the following places: | The IDE must find the .lpk file for a packagename. It searches the .lpk file in the following places: | ||
Line 36: | Line 36: | ||
* In the <lazarus_path>/packager/globallinks/ | * In the <lazarus_path>/packager/globallinks/ | ||
− | ==Setup the $HOME/.lazarus/staticpackages.inc file== | + | ===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: | 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: | ||
Line 43: | Line 43: | ||
H2PasWizard, | H2PasWizard, | ||
− | ==Setup $HOME/.lazarus/idemake.cfg== | + | ===Setup $HOME/.lazarus/idemake.cfg=== |
The idemake.cfg contains the compile parameters. | The idemake.cfg contains the compile parameters. | ||
Line 50: | Line 50: | ||
Please note that under Windows you need to place idemake.cfg into Lazarus directory (e.g. C:\Lazarus\) instead of your user profile directory. Note: May 2012 BigChimp: is this still true? I found it in my primary config path!! | Please note that under Windows you need to place idemake.cfg into Lazarus directory (e.g. C:\Lazarus\) instead of your user profile directory. Note: May 2012 BigChimp: is this still true? I found it in my primary config path!! | ||
− | ==Compile the package with lazbuild== | + | ===Compile the package with lazbuild=== |
<syntaxhighlight lang="bash">lazbuild path_to_package.lpk</syntaxhighlight> | <syntaxhighlight lang="bash">lazbuild path_to_package.lpk</syntaxhighlight> | ||
− | ==Execute ''make idepkg''== | + | ===Execute ''make idepkg''=== |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> |
Revision as of 09:27, 29 July 2014
Overview
With current Lazarus, it is possible to compile and install IDE packages using the lazbuild tool. See lazbuild
For completeness/reference, the old version of this article is presented below.
Old version/manual install
To manually install a package in the IDE you need the following
- compiled lazbuild (LCL, components, lazbuild)
- all required packages must be setup and compiled
- the .lpk file must be registered
- setup the $HOME/.lazarus/staticpackages.inc file (or corresponding file in your primary config path)
- setup $HOME/.lazarus/idemake.cfg (or corresponding file in your primary config path)
- compile the package with lazbuild
- execute make idepkg
Quick
The easiest way is to install the package in the IDE, copy the needed files to the target directory/filesystem and adapt the filenames.
Compile lazbuild
Install FPC and lazarus - or do a make lazbuild. See .
Compile and register the required packages
Do the steps on this page recursively 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.
Please note that under Windows you need to place idemake.cfg into Lazarus directory (e.g. C:\Lazarus\) instead of your user profile directory. Note: May 2012 BigChimp: is this still true? I found it in my primary config path!!
Compile the package with lazbuild
lazbuild path_to_package.lpk
Execute make idepkg
cd path_to_lazarus
make idepkg