Automatic generation of .res lazarus / 13-General ---------------------------------------------------------------------- MarkMLl · 2021-06-30 09:09 Running on Debian Linux x86_64 with Lazarus trunk... I deleted non- essential files before creating a local svn repo but then found that I had to create the project's .res file using lazres manually. Should the .res file be rebuilt reliably by the IDE, or should it be considered an essential file like the .lfm files from which it's derived? Are there any other ambiguous files, e.g. ico? MarkMLl ---------------------------------------------------------------------- Martin_fr · 2021-06-30 09:35 Afaik, you either need windres, or you need a self build fpcres from trunk and pass special flags to it. So, res files are currently part of pre-build files. Also, sources in the IDE are set up, so they do not trigger a rebuild, but require the prebuild res. To have them build from the rc file, find any {$R name.res}  and replace it by {$R name.rc} ---------------------------------------------------------------------- MarkMLl · 2021-06-30 10:31 Thanks for that Martin. lazres worked in the current case, but I interpret what you're saying as that the .res is best stored in the repo. MarkMLl ---------------------------------------------------------------------- marcov · 2021-06-30 10:41 Afaik the fpcres changes are in 3.2.2, the compiler just doesn't use it that way yet. The merge to 3.2.2 was deliberate so that we don't have to add windres/gorc to the next major release just for bootstrapping purposes. (since 3.2.2 already has a capable fpcres) ---------------------------------------------------------------------- PascalDragon · 2021-06-30 11:55 Quote from: Martin_fr on June 30, 2021, 11:35:37 amAfaik, you either need windres, or you need a self build fpcres from trunk and pass special flags to it. As marcov said, fpcres from FPC 3.2.2 already supports that as well. A special flag is only required if you want the compiler to use fpcres instead of windres or gorc (though you do need to specify the correct input format as an rc-file is kinda a "catch all") ---------------------------------------------------------------------- MarkMLl · 2021-06-30 16:49 Thanks everybody. As I've said elsewhere, I'm currently backing away from Trunk with my hands in sight so some of this stuff won't affect me for a while. MarkMLl