# Castle\_base and castle\_window problems with Lazarus

**URL:** https://forum.castle-engine.io/t/castle-base-and-castle-window-problems-with-lazarus/2148
**Category:** Bugs
**Created:** [May 3, 2026, 6:57pm UTC](https://forum.castle-engine.io/t/castle-base-and-castle-window-problems-with-lazarus/2148 "2026-05-03T18:57:18Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [May 4, 2026, 9:56pm UTC](https://forum.castle-engine.io/t/castle-base-and-castle-window-problems-with-lazarus/2148/2 "2026-05-04T21:56:08Z")

</div>

It seems you’re trying to use a really ancient Castle Game Engine 6.4 version, which results in error `Error: Duplicate identifier “PT”` – this comes from change in latest FPC versions, for which the engine 6.4 is not ready.

This possibly happened because you used OPM (Online Package Manager) to install CGE, which indeed includes now engine version 6.4 (confirmed by looking at [https://packages.lazarus-ide.org/](https://packages.lazarus-ide.org/) , it shows CGE version 6.4). We really, really should contact OPM managers to update Castle Game Engine definition there, so that OPM links to latest engine version:

- either [7.0-alpha.3](https://github.com/castle-engine/castle-engine/releases/tag/v7.0-alpha.3), latest “stable”,

- or just get code from `snapshot` branch of our GitHub repository, which is now at `7.0-alpha.3.snapshot`. This is the same thing as available in [GitHub downloads](https://github.com/castle-engine/castle-engine/releases/tag/snapshot) and [downloads on our webpage](https://castle-engine.io/download).

I realize that our “funny” version number, “7.0-alpha.3”, doesn’t help in our communication 🙂 Despite the “alpha” word in version name, it is the closest thing we have to “latest stable release”, and definitely more recommended than ancient 6.4. See also [my recent answer about it in this thread](https://forum.castle-engine.io/t/problems-installing-castle-game-engine-lazarus-2-0-2-and-later-lazarus-4-2-fpc-3-2-2-via-opm-and-fpcup/122/6). Any help with this is most welcome – if anyone wants to take care of updating OPM definition to link to latest stable, I’ll appreciate it. You can link to this forum post, and to [that one](https://forum.castle-engine.io/t/problems-installing-castle-game-engine-lazarus-2-0-2-and-later-lazarus-4-2-fpc-3-2-2-via-opm-and-fpcup/122/6), and of course I’m happy to help.

**The trivial solution right now** : Don’t use CGE from OPM. Download Castle Game Engine from [our downloads](https://castle-engine.io/download). Use “Register Lazarus Packages” button as documented here: [Lazarus | Manual | Castle Game Engine](https://castle-engine.io/lazarus) . And make sure you don’t have any leftover old engine versions on disk, to not confuse you 🙂 Building examples using Lazarus should work flawlessly then (it is automatically checked, so I’m certain it works 🙂 ). Note that even package names have changed, [we have packages like castle\_engine\_base, castle\_engine\_window (not castle\_base, castle\_window), see here for announcement](https://castle-engine.io/wp/2025/08/02/lazarus-packages-moved-renamed/).

---

_[View the full topic](https://forum.castle-engine.io/t/castle-base-and-castle-window-problems-with-lazarus/2148)._
