On Tue, 22 Sep 2009 21:07:43 +1000 Peter Williams <pew...@gmail.com> wrote:
> Hi All Fellow Lazarus ppl,n > > I am working on porting a Delphi 5 project to Lazarus. I used the > Lazarus tool to convert the Delphi projects to Lararus project. The > project compiles OK but when I run it I get the following run time > error: > > File Not Found > No program file > "/home/peter/Lazarus_source_code/wumpuz/delphi_code/wumpuz" found > [Cancel] > > Note that Lazarus appears to be looking in the wrong folder e.g. Check Project / Project Options / Application / Output / Target File name and Project / Compiler Options / Paths / Unit output directory and Project / Compiler Options / Other / Custom Options > correct folder is > > /home/peter/Lazarus_source_code/wumpuz/lazarus_code/ > > Any suggestions on what I need to do to correct this error will be > appreciated. > > Lazarus version 0.9.26-4 beta > > ----------------------------------------- > {%RunWorkingDir /home/peter/Lazarus_source_code/wumpuz/lazarus_code/} This line is from the "Run file". Maybe you setup things in "Run / Configure Run File"? "Run File" is for simple test programs. Projects dont need that. Check "Run / Configure Run File" and disable it. > program wumpuz; > > {$MODE Delphi} > > uses > Forms, > main_unit in 'main_unit.pas' {main_form}, > arrow_unit in 'arrow_unit.pas' {arrow_form}, > map_unit in 'map_unit.pas' {map_form}, > move_unit in 'move_unit.pas' {move_form}, > quit_unit in 'quit_unit.pas' {Quit_form}; > > {$R *.res} > > begin > Application.Initialize; > Application.Title := 'Hunt the Wumpuz'; > Application.CreateForm(Tmain_form, main_form); > Application.Run; > end. Mattias -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus