# Lazarus packages: moved, renamed

**URL:** https://forum.castle-engine.io/t/lazarus-packages-moved-renamed/1985
**Category:** News
**Created:** [August 2, 2025, 12:31pm UTC](https://forum.castle-engine.io/t/lazarus-packages-moved-renamed/1985 "2025-08-02T12:31:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)
#### Post date: [August 2, 2025, 12:31pm UTC](https://forum.castle-engine.io/t/lazarus-packages-moved-renamed/1985/1 "2025-08-02T12:31:08Z")

</div>

| [![lazarus-installnew-31](https://forum.castle-engine.io/uploads/default/original/2X/9/9698b11ad51052be582c3ff3201ccdeba491644f.png)](https://castle-engine.io/wp/wp-content/uploads/2025/08/lazarus-installnew-31.png "lazarus-installnew-31") |
| [![Installing Lazarus package with TCastleControl - 2](https://forum.castle-engine.io/uploads/default/original/2X/b/b0962c694355fdcffd8578188c4df320d62ff2f5.png)](https://castle-engine.io/wp/wp-content/uploads/2025/08/lazarus-installnew-32.png "Installing Lazarus package with TCastleControl - 2") |
| [![Installing Lazarus package with TCastleControl - 3](https://forum.castle-engine.io/uploads/default/original/2X/9/9879416c178db59bd6e3a71d4c3e340098b59583.png)](https://castle-engine.io/wp/wp-content/uploads/2025/08/lazarus-installnew-33.png "Installing Lazarus package with TCastleControl - 3") |
| [![Registering Lazarus packages](https://forum.castle-engine.io/uploads/default/original/2X/7/71756d3e363038acdaed9da1cb2192cef4e592da.png)](https://castle-engine.io/wp/wp-content/uploads/2025/08/cge_lazarus_registered_ok_2.png "Registering Lazarus packages") |

We did a few moves and renames to our [Lazarus](https://castle-engine.io/lazarus) packages.

After upgrading to the latest engine version, be sure to run again _“Register Lazarus Packages”_ button (from the _“Preferences -\> FPC and Lazarus”_ in our editor, as [documented in our Lazarus docs](https://castle-engine.io/lazarus)).

Note that the existing applications will continue to work even without you doing the above, because new packages _provide_ the old names too. But we advise to just use new names from now on.

The short version of the changes: Lazarus packages are now in the [packages/lazarus/](https://github.com/castle-engine/castle-engine/tree/master/packages/lazarus) subdirectory of the repository, with some better names.

Full list of changes and their reasons:

1. We moved Lazarus packages to subdirectory [packages/lazarus](https://github.com/castle-engine/castle-engine/tree/master/packages/lazarus).

Reason: This is consistent (sibling) to Delphi packages in [packages/delphi](https://github.com/castle-engine/castle-engine/tree/master/packages/delphi), and good for [TMS Smart Setup](https://github.com/castle-engine/castle-engine/issues/678#issuecomment-3000913493), and likely just more obvious to both _Lazarus_ and _Delphi_ users.

2. We rename packages to add `_engine`. So we have

3. We rename `castle_components` to `castle_engine_lcl`. So in addition to adding `_engine`, we change `components` -\> `lcl`.

Reason:

  - The `components` word there was confusing for a long time. Because this is not the only package with “components”, other packages (including `base`) also provide components (though they don’t register them now in Lazarus component palette, but they did in the past). However, this is the only package that depends on LCL and thus provides `TCastleControl` that uses LCL. This package may provide more LCL components in the future.
  - It also makes name of `alternative_castle_engine_window_based_on_lcl.lpk` more obvious. Now `alternative_castle_engine_window_based_on_lcl.lpk` depends on `castle_engine_lcl.lpk` — which looks obvious and natural.
  - We have planned to do this rename for quite a while now. We mentioned it in [TCastleControl docs](https://castle-engine.io/control_on_form) and packages README that “this should probably be renamed to `castle_lcl`” already.
  - This seemed to be a good moment to do this, as we go with rename/move anyway.

Note that the [packages/lazarus/README.md](https://github.com/castle-engine/castle-engine/tree/master/packages/lazarus/README.md) has been updated to reflect it all. We also updated [Lazarus docs](https://castle-engine.io/lazarus), [TCastleControl docs](https://castle-engine.io/control_on_form) and everything else we found.

---

<div class="post-metadata">

### Author: ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)
#### Post date: [August 2, 2025, 12:33pm UTC](https://forum.castle-engine.io/t/lazarus-packages-moved-renamed/1985/2 "2025-08-02T12:33:45Z")

</div>



---

<div class="post-metadata">

### Author: ![phomm](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/phomm/32/2827_2.png) [@phomm](https://forum.castle-engine.io/u/phomm)
#### Post date: [August 4, 2025, 11:43am UTC](https://forum.castle-engine.io/t/lazarus-packages-moved-renamed/1985/3 "2025-08-04T11:43:32Z")

</div>

not sure if I’m doing everything right, but when I tried new packages all looks fine and works ok, except for rebuilding editor with custom components (which I use for my game), and I get “cge/packages/castle\_base.lpk not found”, however I checked both folders (editor inside cge and my project folder) and I see no usage of it, I deleted the editor folder inside my project output folder, and also tried to launch compiling editor from lazarus and I even get it working (with working custom components) after compiling, but still menuitem to rebuild editor isn’t working ☹

---

<div class="post-metadata">

### Author: ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)
#### Post date: [August 4, 2025, 12:48pm UTC](https://forum.castle-engine.io/t/lazarus-packages-moved-renamed/1985/4 "2025-08-04T12:48:25Z")

</div>

> [@phomm](#):
>
> “cge/packages/castle\_base.lpk not found”

Hm, I tested now with example `examples/advanced_editor/custom_component/` and it works OK on my side. That is, opening the project offers me to rebuild the editor (and if I confirm, it goes OK). Once the project is open, I can use menu item _“Project → Restart Editor (With Custom Components)”_ also OK.

In the engine, nothing refers to the old name `castle_base` anymore, as you say. The only occurrence is that `castle_engine_base.lpk` _provides_ the name `castle_base` (so the new name should be considered by Lazarus a drop-in replacement for old name).

Hm, I see you already checked that your engine and your project don’t refer to `castle_base`, this was my first suggestion.

- Can you check `examples/advanced_editor/custom_component/` on your side? Does it also fail, or it works?

- Make sure you have 1 CGE installation, and the FPC/Lazarus version used (set in editor preferences, if you set it) is the one that should be used.

- Look at Lazarus config files. Their location depends on the installation way, if you used FpcUpDeluxe they are in a subdirectory `config_lazarus` of your FPC/Lazarus installation created by FpcUpDeluxe. See if removing them (move them like to `config_lazarus.backup`) fixes the issue – if yes, look inside for mentions of castle\_base that would explain the issue.

---

<div class="post-metadata">

### Author: ![phomm](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/phomm/32/2827_2.png) [@phomm](https://forum.castle-engine.io/u/phomm)
#### Post date: [August 4, 2025, 1:39pm UTC](https://forum.castle-engine.io/t/lazarus-packages-moved-renamed/1985/5 "2025-08-04T13:39:32Z")

</div>

Thanks I fixed that, I’ve updated engine fully, from releases (not only from git + rebuild) and seems that the castle-engine binary itself was the issue, as rebuild started working after overwrite of bin folder 👍
