Error compiling FMX Demo

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?

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

I’m using the demo repository from Embarcadero: GitHub - Embarcadero/RADStudio13Demos: Delphi and C++Builder Demos for Embarcadero RAD Studio version 13 · GitHub

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 (3.0 KB)

The errors i see are:

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).

Logged as bugs://E27624: Delphi Compatibility: cannot pass integer literal to range parameter

Logged as bugs://E27625: Island/Delphi: cannot create TTask with closure (“no such constructor”)

(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.

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:


or by changing the architecture(s) in the project settings: