Sign in Join
Wiki copytemporary

Install Packages: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Install Packages

OldNewLine
1+## Adding packages using the IDE
2+
3+### Adding known packages
4+
5+Open "Package -\> Install/Uninstall Packages". The list on the left shows already installed packages or packages marked for installation (which have a green plus sign in their icon). The list to the right shows packages that you can install. Simply double-click on a package in either list to move them to the other - and mark them for installation/uninstall.
6+
7+Finally, click "Save and Rebuild" to rebuild the IDE and the packages.
8+
9+You can also compile and install packages the IDE knows nothing about. See below.
10+
11+### Adding new packages
12+
13+The package should have come with a number of source files, especially one with a .lpk extension. To install this package one goes to "Package -\> Open Package File (.lpk)". Navigate to the folder containing the .lpk file and open it. If everything works out as planned you will see the Package Manager. The Package Manager shows a treeview with the files in the package and the required packages.
14+
15+If you don't want to install the component into the IDE, e.g. because it is a non graphical component, press **Compile**. Otherwise you should press **Use \>\>** and then choose **Install**. Next we get a warning about Lazarus only supporting static linked libraries and the question if you want to rebuild Lazarus. Just press Yes and sit back. Lazarus will be rebuilt, and depending on your configuration restarted.
16+
17+If the package was a graphical component, and you selected the **Use \>\>** option, you should now have a new tab in your IDE by which you can add that component to your project.
18+
19+### New versions
20+
21+When receiving a new source version of an already installed package, you must
22+
23+1. overwrite the previous source version with the new version
24+2. either open the new .lpk and press **Use \>\>** and then choose **Install** as above,\
25+ or rebuild the IDE using the menu "Tools" -\> "Build Lazarus with Profile \[...\]" if you want more control on how the package is compiled.
26+
27+## Compile an IDE with packages at command line
28+
29+You can use [[lazbuild]] to compile and install your package, and add --build-ide to rebuild the IDE.
30+
31+## Questions
32+
33+If you have any questions, go to the lazarus [forum](http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=index) or post it to the Lazarus mailing list.
34+
35+## See also
36+
37+- [[Lazarus Packages]]
38+- [[Install IDE packages without the IDE]]
39+
40+---
41+*From the Free Pascal wiki, page "Install Packages", as it stood on 2017-04-13 after a change by Russdirks, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
42+Category: Lazarus
43+Category: Tutorials

Back to history