[fpc-pascal] Workaround for fpcres requiring absolute path

Russ russeld.lists at gmail.com
Tue Jun 28 06:01:37 CEST 2022


Hi,

I use windres on Windows and Linux 32 and 64 bit (via mingw), but that 
doesn't work on ARM Linux - so I thought I would try using fpcres on 
Lazarus 2.3.0 and FPC 3.31 using the -FF option, but found that fpcres 
seems to require an absolute path whereas windres can use a relative path.

Given the line in the resource file:
    TEMPLATE_UTILS_HEADER   RCDATA  "./resources/utils.h"

fpcres returns 'Error: Unable to open file "./resources/utils.h": No 
such file or directory.'

I can of course use an absolute path in the resource list, but is there 
any way to use a relative path so that the project can be moved?

Is this perhaps a Lazarus issue and not fpcres?

Regards
Russ


More information about the fpc-pascal mailing list