I also thought it would be no problem, Especially because I have tested the components with a fresh project in which I placed one of each component on a form and cross compiled it to Win32 without any problems
No, I didn't used anything else and selected Win32 as the platform.
I just followed the instructions on:
www.pilotlogic.com/sitejoom/index.php/wiki?id=496
The name of the project is Windows (how original
the contents of windows.lpi is:
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="9"/>
<General>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
<Title Value="windows"/>
<ResourceType Value="res"/>
<UseXPManifest Value="True"/>
<Icon Value="0"/>
</General>
<i18n>
<EnableI18N LFM="False"/>
</i18n>
<VersionInfo>
<StringTable ProductVersion=""/>
</VersionInfo>
<MacroValues Count="2">
<Macro1 Name="LCLWidgetType" Value="win32"/>
<Macro2 Name="LCLWidgetType" Value="win32"/>
</MacroValues>
<BuildModes Count="1">
<Item1 Name="Default" Default="True"/>
<SharedMatrixOptions Count="2">
<Item1 ID="337804945045" Modes="Default" Type="IDEMacro" MacroName="LCLWidgetType" Value="win32"/>
<Item2 ID="791582428076" Modes="Default" Type="IDEMacro" MacroName="LCLWidgetType" Value="win32"/>
</SharedMatrixOptions>
</BuildModes>
<PublishOptions>
<Version Value="2"/>
</PublishOptions>
<RunParams>
<local>
<FormatVersion Value="1"/>
</local>
</RunParams>
<RequiredPackages Count="11">
<Item1>
<PackageName Value="pl_solutions"/>
</Item1>
<Item2>
<PackageName Value="pl_rx"/>
</Item2>
<Item3>
<PackageName Value="pl_KControls"/>
</Item3>
<Item4>
<PackageName Value="pl_jvcl"/>
</Item4>
<Item5>
<PackageName Value="pl_fzcontrols"/>
</Item5>
<Item6>
<PackageName Value="pl_exdesign"/>
</Item6>
<Item7>
<PackageName Value="pl_excontrols"/>
</Item7>
<Item8>
<PackageName Value="pl_eccontrols"/>
</Item8>
<Item9>
<PackageName Value="pl_cindy"/>
</Item9>
<Item10>
<PackageName Value="pl_bgracontrols"/>
</Item10>
<Item11>
<PackageName Value="LCL"/>
</Item11>
</RequiredPackages>
<Units Count="2">
<Unit0>
<Filename Value="windows.lpr"/>
<IsPartOfProject Value="True"/>
</Unit0>
<Unit1>
<Filename Value="unit1.pas"/>
<IsPartOfProject Value="True"/>
<ComponentName Value="Supply"/>
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
<UnitName Value="Unit1"/>
</Unit1>
</Units>
</ProjectOptions>
<CompilerOptions>
<Version Value="11"/>
<Target>
<Filename Value="windows"/>
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
<CodeGeneration>
<TargetCPU Value="i386"/>
<TargetOS Value="win32"/>
</CodeGeneration>
<Linking>
<Options>
<Win32>
<GraphicApplication Value="True"/>
</Win32>
</Options>
</Linking>
</CompilerOptions>
<Debugging>
<Exceptions Count="3">
<Item1>
<Name Value="EAbort"/>
</Item1>
<Item2>
<Name Value="ECodetoolError"/>
</Item2>
<Item3>
<Name Value="EFOpenError"/>
</Item3>
</Exceptions>
</Debugging>
</CONFIG>
The contents of windows.lpr is
program windows;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, Unit1, pl_bgracontrols, pl_excontrols, pl_exdesign, pl_kcontrols, pl_rx
{ you can add units after this };
{$R *.res}
begin
RequireDerivedFormResource:=True;
Application.Initialize;
Application.CreateForm(TSupply, Supply);
Application.Run;
end.