[Lazarus] Lazarus without FPC plain bin dir in path: resource compiler "fpcres" not found - best solution?

Reinier Olislagers reinierolislagers at gmail.com
Fri Jan 24 12:44:57 CET 2014


I'm trying a bare metal fpcup install on Linux ARMHF (but this applies
to other platforms as well).

Things are starting to look good - I get FPC trunk and Lazarus trunk to
compile.

However, when recompiling Lazarus with selected packages I get the
fpcres resource compiler error not found - which is because the "plain
FPC bin dir", the dir above the architecture-dependent one where the fpc
executable is, and where fpcres resides in, is not in the PATH.

Questions:
1. On this and similar systems - where PATH is not set to a certain FPC
directory - e.g. perhaps when using the new secondary config option in
the Lazarus win installer or on pen drives etc - what to do?
- Write a batch/shell script that adds the "plain FPC bin dir" to the
path before starting Lazarus?
- Add yet another option to Lazarus?
- Change Lazarus to search in the directory above the compiler for
fpcres and other utilities?
... or is there something obvious that I've missed after messing with
paths and builds for so long?

2. Non-related: Lazarus options has "Compiler path (e.g. fpc)".
Wouldn'it it be *much* better to call this "Compiler (e.g. fpc.exe)
location"?
IMO, path normally implies a path/directory, while the setting wants an
actual directory+filename aka full path.
I know fpc.exe is a windowsism, but probably recognizable for other OS
users as the indicator for the compiler executable.
Alternative "Compiler executable location" perhaps?
I realize this would mean changing docs etc and TBH I know what the
option does so no problem if my rant is not followed up on ;)

Thanks,
Reinier




More information about the Lazarus mailing list