# License for units?

**URL:** <https://forum.castle-engine.io/t/license-for-units/1877>\
**Category:** Uncategorized\
**Created:** [April 25, 2025, 8:12am UTC](https://forum.castle-engine.io/t/license-for-units/1877 "2025-04-25T08:12:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peardox](https://forum.castle-engine.io/letter_avatar_proxy/v4/letter/p/dec6dc/32.png) [@Peardox](https://forum.castle-engine.io/u/Peardox)\
**Post date:** [April 25, 2025, 8:12am UTC](https://forum.castle-engine.io/t/license-for-units/1877/1 "2025-04-25T08:12:31Z")

</div>

Writing my own FPC/Delphi Library + Apps

I’ve pinched dynlibs and a few trivial odds+sods (to make dynlibs stand-alone)

Project I’m writing is Pascal for Whisper.cpp (a shed-load of DLLs - hence dynlibs)

The fundamentals are working at [GitHub - WhisperBooks/PasWhisper](https://github.com/WhisperBooks/PasWhisper) - it needs the C/C++ libraries building to actually do anything though (experimenting with them a lot). Just got the Laz CLI working (FP Exceptions were killing it, didn’t need it in Delphi…). So far it only runs a benchmark - fun things to come…

So - what’s the license in regard to dynlibs (and a few bits?). Whisper.cpp is MIT, mine will be also.

When finished it’s got the ability to sort-of be game related. If the game involved you speaking to it that is. The main whisper.cpp site has Chess you can talk to (don’t think it plays, possibly just a web interface - not tried it)

---

<div class="post-metadata">

**Author:** ![Noscow](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/noscow/32/964_2.png) [@Noscow](https://forum.castle-engine.io/u/Noscow)\
**Post date:** [April 25, 2025, 9:54am UTC](https://forum.castle-engine.io/t/license-for-units/1877/2 "2025-04-25T09:54:26Z")

</div>

As I understand, Dynlibs is a part of `System` unit?  
If them included into FPC source code, license is GNU GPL.

> <https://github.com/fpc/FPCSource/blob/main/rtl/COPYING.FPC>

---

<div class="post-metadata">

**Author:** ![Peardox](https://forum.castle-engine.io/letter_avatar_proxy/v4/letter/p/dec6dc/32.png) [@Peardox](https://forum.castle-engine.io/u/Peardox)\
**Post date:** [April 25, 2025, 1:21pm UTC](https://forum.castle-engine.io/t/license-for-units/1877/3 "2025-04-25T13:21:47Z")

</div>

OK, typo - it’s dynlib.pas, not part of system, part of CGE

---

<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:** [April 25, 2025, 2:42pm UTC](https://forum.castle-engine.io/t/license-for-units/1877/4 "2025-04-25T14:42:27Z")

</div>

If you actually mean [CastleDynLib](https://castle-engine.io/apidoc/html/CastleDynLib.html), unit in our engine:

It’s part of the engine, so follow the license is as specified on [license page](https://castle-engine.io/license) 🙂 The engine units are covered by _LGPL with static linking exception_, which is the same license as used by FPC RTL and Lazarus LCL, and means that you can link them (statically or dynamically) with anything on any license (including proprietary), however you need to share (with anyone who gets your binary) the source code of your modifications to the engine units (so e.g. you need to show your modified version of `CastleDynLib.pas`).

Of course if the result of your work is on MIT license, which is even more permissive than _LGPL with static linking exception_, then everything is good.

---

<div class="post-metadata">

**Author:** ![Peardox](https://forum.castle-engine.io/letter_avatar_proxy/v4/letter/p/dec6dc/32.png) [@Peardox](https://forum.castle-engine.io/u/Peardox)\
**Post date:** [April 25, 2025, 3:12pm UTC](https://forum.castle-engine.io/t/license-for-units/1877/5 "2025-04-25T15:12:39Z")

</div>

Yeah, that one 🙂

Library, examples, docs etc MIT  
End User App(s) not MIT (maybe even commercial)

So similar in concept to CGE + TUS I guess  
Might even make a Voice controlled CGE game in the end 🙂
