Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-09

Runtime error -- File Not Found

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Peter Williams

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.

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/} 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.
-------------------------------------

Fond Regards,
Peter Eric (aka 'pew') WILLIAMS
from Hobart, Tasmania, Australia -- phone (03) 6236-9675

My free website is: http://pewtas.googlepages.com (or) http://tinyurl.com/yuyejs

(please visit my free website and let me know what you think about it.) -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20090922/6cb4370d/attachment.html>

Reply by email

Mattias Gaertner
to Peter Williams
Show quoted text 13 lines
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

Show quoted text 11 lines
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.

Show quoted text 20 lines
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

Reply by email