Sign in Join

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

Mailing lists / lazarus / 2015-05

*.lfm files in unit output directory?

6 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi

I just had a problem where the FPC compiler failed to compile a LCL project. The FPC compiler complained about the fact that it can't compile resources. I found the problem, it was *.lfm files in the unit output directory. The solution to my compiling problem was to clear out all unit output directories (many of them).

I just spoke to somebody else and they mentioned that Lazarus recently started copying LFM files to the unit output directory. I was wondering why that was decided (copying LFM files) and what it was supposed to solve? I'm using Lazarus 1.5 from 17 April with FPC 2.6.4.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Tony Whyman
to Graeme Geldenhuys

I thought that it had always done this, ever since the lfm format was used. If you don't link the lfm files in then how do you create forms?

Are you sure that your problem is not down to not being able to find "windres" on your system?

Graeme Geldenhuys wrote 16 lines
Hi I just had a problem where the FPC compiler failed to compile a LCL project. The FPC compiler complained about the fact that it can't compile resources. I found the problem, it was *.lfm files in the unit output directory. The solution to my compiling problem was to clear out all unit output directories (many of them). I just spoke to somebody else and they mentioned that Lazarus recently started copying LFM files to the unit output directory. I was wondering why that was decided (copying LFM files) and what it was supposed to solve? I'm using Lazarus 1.5 from 17 April with FPC 2.6.4. Regards, - Graeme -

Reply by email

Tony Whyman
to Tony Whyman

or "fpcres"

Tony Whyman wrote 30 lines
I thought that it had always done this, ever since the lfm format was used. If you don't link the lfm files in then how do you create forms? Are you sure that your problem is not down to not being able to find "windres" on your system? On 07/05/15 12:22, Graeme Geldenhuys wrote: > Hi > > I just had a problem where the FPC compiler failed to compile a LCL > project. The FPC compiler complained about the fact that it can't > compile resources. I found the problem, it was *.lfm files in the unit > output directory. The solution to my compiling problem was to clear out > all unit output directories (many of them). > > I just spoke to somebody else and they mentioned that Lazarus recently > started copying LFM files to the unit output directory. I was wondering > why that was decided (copying LFM files) and what it was supposed to > solve? I'm using Lazarus 1.5 from 17 April with FPC 2.6.4. > > Regards, > - Graeme - > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Giuliano Colla
to Tony Whyman: I thought that it had always done this, ever since the lfm format was used. If you don't…

Il 07/05/2015 13:47, Tony Whyman ha scritto:

I thought that it had always done this, ever since the lfm format was used. If you don't link the lfm files in then how do you create forms?

If I understand properly, the problem is not of having lfm files, but having them copied to the unit output directory from the source directory where they belong to, since the beginning of times.

Giuliano

Reply by email

Graeme Geldenhuys
to Giuliano Colla
Giuliano Colla wrote
If I understand properly, the problem is not of having lfm files, but having them copied to the unit output directory from the source directory where they belong to, since the beginning of times.

Exactly. The lfm files DO exist in the source directories where the related *.pas files live. I just don't understand why they need to be copied (by the IDE) at compile time to the unit output directory.

This last step is what seems to have caused FPC to finally fail to compile the project. I guess the two copies of the lfm files got out of sync or something.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Mattias Gaertner
to Graeme Geldenhuys
Show quoted text 12 lines
On 2015-05-07 13:06, Giuliano Colla wrote: > If I understand properly, the problem is not of having lfm files, but > having them copied to the unit output directory from the source > directory where they belong to, since the beginning of times. Exactly. The lfm files DO exist in the source directories where the related *.pas files live. I just don't understand why they need to be copied (by the IDE) at compile time to the unit output directory. This last step is what seems to have caused FPC to finally fail to compile the project. I guess the two copies of the lfm files got out of sync or something.

The .lfm files are copied by the compiler (not the IDE) to the output directory.
But if only the .lfm is changed and not the .pas then the compiler does not copy. I think there is already a bug report. I can't find it.

Mattias

Reply by email