# Error compiling FMX Demo

**URL:** https://talk.remobjects.com/t/error-compiling-fmx-demo/33193
**Category:** Oxygene
**Tags:** delphi
**Created:** [April 8, 2026, 12:55pm UTC](https://talk.remobjects.com/t/error-compiling-fmx-demo/33193 "2026-04-08T12:55:10Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![henrique](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/h/ecb155/32.png) [@henrique](https://talk.remobjects.com/u/henrique)
#### Post date: [April 8, 2026, 12:55pm UTC](https://talk.remobjects.com/t/error-compiling-fmx-demo/33193/1 "2026-04-08T12:55:10Z")

</div>

I’m trying to compile a sample of FMX controls in Water IDE and it’s giving this error:

Cannot find type “Delphi.FMX.Controls.{System.Generics.Collections}TList\<FMX.Controls.TControl\>” from library “” referenced by “Delphi.fmx”

How I fix this?

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [April 9, 2026, 3:37pm UTC](https://talk.remobjects.com/t/error-compiling-fmx-demo/33193/2 "2026-04-09T15:37:18Z")

</div>

> [@henrique](#):
>
> Cannot find type “Delphi.FMX.Controls.{System.Generics.Collections}TList\<FMX.Controls.TControl\>” from library “” referenced by “Delphi.fmx”

Curious. Can i see the project, or a testcase that shows this?

---

<div class="post-metadata">

### Author: ![henrique](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/h/ecb155/32.png) [@henrique](https://talk.remobjects.com/u/henrique)
#### Post date: [April 9, 2026, 5:00pm UTC](https://talk.remobjects.com/t/error-compiling-fmx-demo/33193/3 "2026-04-09T17:00:24Z")

</div>

I’m using the demo repository from Embarcadero: [GitHub - Embarcadero/RADStudio13Demos: Delphi and C++Builder Demos for Embarcadero RAD Studio version 13 · GitHub](https://github.com/Embarcadero/RADStudio13Demos.git)

Inside the repository in the path “Object Pascal\Multi-Device Samples\User Interface\ControlsDesktop” I open the project an try to compile.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [April 9, 2026, 5:30pm UTC](https://talk.remobjects.com/t/error-compiling-fmx-demo/33193/4 "2026-04-09T17:30:57Z")

</div>

> [@henrique](#):
>
> I’m using the demo repository from Embarcadero: [GitHub - Embarcadero/RADStudio13Demos: Delphi and C++Builder Demos for Embarcadero RAD Studio version 13 · GitHub](https://github.com/Embarcadero/RADStudio13Demos.git)
> 
> Inside the repository in the path “Object Pascal\Multi-Device Samples\User Interface\ControlsDesktop” I open the project an try to compile.

thanx! i imported this myself, and after some tweaks to the project (and some improvements i just made to the importer, related to those tweaks), i donm;t see the above error, i only see what boils down to three errors that I cannot explain right now (will log a ticket to investigate), and one missing .res file (which really isn’t there)…

I’m attaching my project, for reference:

[ControlsDemo.elements](https://talk.remobjects.com/uploads/short-url/q77cfGBgPrLSdLIdAiXlmnVhcJ9.elements) (3.0 KB)

The errors i see are:

```auto
Windows: ctrlsdemofrm.pas, line 24 — (E26) Unknown namespace "System.Rtti" in uses list
Windows: ctrlsdemofrm.pas, line 430 — (E62) Type mismatch, cannot assign "Int32" to "-20 .. 20"
macOS: ctrlsdemofrm.pas, line 369 — (E400) No overloaded constructor with 1 parameter for type "TTask"
macOS: ControlsDemo.dpr, line 20 — Resource file 'C:\Users\Public\Documents\Embarcadero\Studio\37.0\Samples\Object Pascal\Multi-Device Samples\User Interface\ControlsDesktop\ControlsDemo.res' does not exist

```

(the E62 and E400 repeat a few times).

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [April 9, 2026, 5:32pm UTC](https://talk.remobjects.com/t/error-compiling-fmx-demo/33193/5 "2026-04-09T17:32:34Z")

</div>

Logged as [bugs://E27624](https://www.remobjects.com/portal/bugs/?id=E27624): Delphi Compatibility: cannot pass integer literal to range parameter

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [April 9, 2026, 5:37pm UTC](https://talk.remobjects.com/t/error-compiling-fmx-demo/33193/6 "2026-04-09T17:37:12Z")

</div>

Logged as [bugs://E27625](https://www.remobjects.com/portal/bugs/?id=E27625): Island/Delphi: cannot create TTask with closure (“no such constructor”)

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [April 9, 2026, 5:43pm UTC](https://talk.remobjects.com/t/error-compiling-fmx-demo/33193/7 "2026-04-09T17:43:11Z")

</div>

(The System.Rtti issue was ecaise i was building for Windows/arm64; seems thats not supported there). Windows/arm64 support isn’t really functional yet.

---

<div class="post-metadata">

### Author: ![henrique](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/h/ecb155/32.png) [@henrique](https://talk.remobjects.com/u/henrique)
#### Post date: [April 9, 2026, 5:50pm UTC](https://talk.remobjects.com/t/error-compiling-fmx-demo/33193/8 "2026-04-09T17:50:32Z")

</div>

How I compile the Win32 version of this project?

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [April 9, 2026, 7:40pm UTC](https://talk.remobjects.com/t/error-compiling-fmx-demo/33193/9 "2026-04-09T19:40:00Z")

</div>

> [@henrique](#):
>
> How I compile the Win32 version of this project?

It should automatically pick the best architecture for your system. But if you’re on an Wndows/arm64, you can force it to x86\_64 or i386 in the dropdown box at the top right:

 ![image](https://talk.remobjects.com/uploads/default/original/3X/1/a/1ae79ac2dffdf2f1140b23fa3e527c171a9eaf0d.png)  
or by changing the architecture(s) in the project settings:

 ![image](https://talk.remobjects.com/uploads/default/original/3X/c/3/c3e2689d04f70af2a9988dadca68ffece80b19fd.png)

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [May 18, 2026, 12:51pm UTC](https://talk.remobjects.com/t/error-compiling-fmx-demo/33193/10 "2026-05-18T12:51:49Z")

</div>

[bugs://E27624](https://www.remobjects.com/portal/bugs/?id=E27624) was closed as fixed.
