[Lazarus] Error while compiling resources
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue Apr 17 22:57:42 CEST 2012
On Tue, 17 Apr 2012 22:51:48 +0200
Dave Coventry <dgcoventry at gmail.com> wrote:
> On 17 April 2012 18:21, patspiper <patspiper at gmail.com> wrote:
> > Did you check the project source (Radmin.lpr) for the $R directive (click
> > Project/View project source)? Usually, the culprit is something like:
> > {$IFDEF WINDOWS}{$R foobar.rc}{$ENDIF}
>
> 8< 8< 8< 8< 8<8< 8< Radmin.lpr 8< 8< 8< 8< 8<
> program Radmina;
>
> {$mode objfpc}{$H+}
>
> uses
> {$IFDEF UNIX}{$IFDEF UseCThreads}
> cthreads,
> {$ENDIF}{$ENDIF}
> Interfaces, // this includes the LCL widgetset
> Forms, radminunit
> { you can add units after this };
>
> {$R *.res}
>
> begin
> Application.Initialize;
> Application.CreateForm(TForm1, Form1);
> Application.Run;
> end.
> 8< 8< 8< 8< 8<8< 8< 8< 8< 8<8< 8< 8< 8< 8<8<
>
> > You can also check hidden messages by right clicking the messages window and
> > selecting 'copy all shown and hidden messages to clipboard'
>
> Hint: Start of reading config file C:\lazarus\fpc\2.6.0\bin\i386-win32\fpc.cfg
> Hint: End of reading config file C:\lazarus\fpc\2.6.0\bin\i386-win32\fpc.cfg
> Free Pascal Compiler version 2.6.0 [2012/03/14] for i386
> Copyright (c) 1993-2011 by Florian Klaempfl and others
> Target OS: Win32 for i386
> Compiling Radmina.lpr
> Compiling radminunit.pas
> radminunit.pas(32,29) Hint: Parameter "Sender" not used
> Compiling resource
> Z:\Projects\Delphi\Workflow\Revision\RevAdmin\lib\i386-win32\Radmina.or
> Radmina.lpr(19,1) Error: Error while compiling resources
> Linking Radmina.exe
> Fatal: Compilation aborted
>
> I start a new Project: Project->New Project->Application->OK
>
> I run the New Project. It compiles without error.
It is saved to your temp directory and compiled there.
> I save the project to project1.lpi and unit1.pas
>
> I now run it again. It fails with "project1.lpr(19,1) Error: Error
> while compiling resources".
>
> Hint: Start of reading config file C:\lazarus\fpc\2.6.0\bin\i386-win32\fpc.cfg
> Hint: End of reading config file C:\lazarus\fpc\2.6.0\bin\i386-win32\fpc.cfg
> Free Pascal Compiler version 2.6.0 [2012/03/14] for i386
> Copyright (c) 1993-2011 by Florian Klaempfl and others
> Target OS: Win32 for i386
> Compiling project1.lpr
> Compiling unit1.pas
> Compiling resource
> Z:\Projects\Delphi\Workflow\Revision\RevAdmin\test\lib\i386-win32\project1.or
> project1.lpr(19,1) Error: Error while compiling resources
> Linking project1.exe
> Fatal: Compilation aborted
Can you compare the two directories (temp and saved) and tell where the
difference is?
Mattias
More information about the Lazarus
mailing list