Windres.exe: can't open file 'Tform1' lazarus / 13-General ---------------------------------------------------------------------- BrainChemistry · 2008-03-01 17:34 When compiling my Lazarus project I get: QuoteC:\FPC\2.2.0\bin\i386-win32\windres.exe: can't open file `TForm1': No such file or directory uAcropolis.pas(159,1) Error: Error while linking I looked in the internet and searched here but didn't solve this problem yet. Actually I don't know what the message means since TForm1 is neither a file nor a directory but an object. Maybe someone can enlighten me a bit. ---------------------------------------------------------------------- OnixJr · 2008-03-01 18:56 What do you want? The correct syntax of windres is: windres.exe -i inputfile -o outputfile example: windres.exe -i unit1.lfm -o unit1.lrs Thanks, Júnior ---------------------------------------------------------------------- OnixJr · 2008-03-01 18:58 Or maybe do you are converting a Delphi program Search for "{$R *.dfm}", If you find it, comment them... Lazarus use lfm/lrs files and not dfm as Delphi... Are you using Lazarus Conversion Tool??? ---------------------------------------------------------------------- Zaher · 2008-03-01 21:10 I have the same problem when my form in a deferent folder of my project. ---------------------------------------------------------------------- BrainChemistry · 2008-03-01 21:31 Quote from: "OnixJr"Or maybe do you are converting a Delphi program Search for "{$R *.dfm}", If you find it, comment them... Lazarus use lfm/lrs files and not dfm as Delphi... Thanks. This solved the problem ! ---------------------------------------------------------------------- OnixJr · 2008-03-01 22:27 QuoteI have the same problem when my form in a deferent folder of my project. Please, get the steps to reproduce the problem and send a issue on bug tracker. Thanks, Júnior ---------------------------------------------------------------------- Zaher · 2008-03-02 22:19 In small sample it worked, but with my real project the windres cannot find lrs, i moved the form to the project folder to resolve this problem, but i will try again to reproduce it. After that believeme Lazarus work like a charm for me ---------------------------------------------------------------------- guest21098 · 2008-03-20 15:06 I have a simmilar problem, i am old in Delphi 1, 2, 4, but new in Lazarus, its my first try: I started a new projekt with a empty form, it compiled. Then i added a mainmenu with two entrys, a printerdialog and a button. Now i get: "Failed to execute windres -v C:\lazarus\Projekte\Test1\Test01.rc C:\lazarus\Projekte\Test1\Test01\Test01.res: 2" Has somebody any idea? ---------------------------------------------------------------------- OnixJr · 2008-03-20 15:21 QuoteI started a new projekt with a empty form, it compiled. Then i added a mainmenu with two entrys, a printerdialog and a button. Now i get: "Failed to execute windres -v C:\lazarus\Projekte\Test1\Test01.rc C:\lazarus\Projekte\Test1\Test01\Test01.res: 2" Has somebody any idea? I couldn't reproduce this with WindowsXP... Maybe, can you upload an example? Or maybe post this bug on bug tracker? Regards ---------------------------------------------------------------------- guest21098 · 2008-03-20 17:29 Quote from: "OnixJr"QuoteI started a new projekt with a empty form, it compiled. Then i added a mainmenu with two entrys, a printerdialog and a button. Now i get: "Failed to execute windres -v C:\lazarus\Projekte\Test1\Test01.rc C:\lazarus\Projekte\Test1\Test01\Test01.res: 2" Has somebody any idea? I yust could locate the misteke: Started a new projekt with a empty form, copiled: ok, then in projektsettings i switched on "versioninformation", F9: the same mistake. i think, its good for bug tracker? ---------------------------------------------------------------------- Leledumbo · 2008-03-24 05:09 Yes, include version information AFAIK isn't fixed yet, but I'm not sure whether it's been reported or not. ---------------------------------------------------------------------- OnixJr · 2008-03-24 22:34 Bug Tracker is down now... I will search this thread as soon as possible...