[Lazarus] I can not crosscompile: linux to win32

Osvaldo TCF - Listas arquivostcf at gmail.com
Wed Oct 8 19:09:51 CEST 2008


lpr file:
================================================================
program crossp;

{$mode objfpc}{$H+}

uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Interfaces, // this includes the LCL widgetset
  Forms
  { you can add units after this }, ucr1;

begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.Run;
end.
================================================================

Ubuntu 8.04.1
Lazarus svn 0.9.27.16930 GTK2
FPC 2.2.3 (svn)

New application with a button and a bitbtnI get this errors/messages:

Note: No option inside /usr/lib/fpc/fpc-cross.cfg config file
crossp.lpr(17,1) Error: resource compiler not found, switching to
external mode
crossp.lpr(17,1) Error: Can't open object file: fpc-res.or
crossp.lpr(17,1) Fatal: There were 2 errors compiling module, stopping


Em Qua, 2008-10-08 às 21:33 +0800, Paul Ishenin escreveu:
> Osvaldo TCF - Listas wrote:
> > When i try crosscompile linux to win32 i have this error:
> > vsab.lpr(20,1) Error: resource compiler not found, switching to
external
> > mode
> >
> > The problem is with this:
> > {$IFDEF WINDOWS}{$R vsab.rc}{$ENDIF}
> >
> > I can't disable this!
> >   
> Try r16928.
> 
> Best regards,
> Paul Ishenin.
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus






More information about the Lazarus mailing list