Sign in Join

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

Mailing lists / lazarus / 2011-07

Error calling fpcres

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Hans-Peter Diettrich

I just tried to install Lazarus (trunk) on Ubuntu 10.4, and came across errors with fpcres.

First the path was missing the ~/bin directory, which should be mentioned properly in the wiki. Instead of

export PATH=~/lib/fpc/2.5.1:$PATH

the bashrc entry should read

export PATH=~/lib/fpc/2.5.1:~/bin:$PATH

After this modification fpcres can be invoked in the console, but "make all" still results in:

lazarus.pp(137,1) Error: Can't call the resource compiler
"/home/dodi/bin/fpcres", switching to external mode
lazarus.pp(137,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted

What's wrong?

DoDi

Reply by email

Marco van de Voort
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote
the bashrc entry should read export PATH=~/lib/fpc/2.5.1:~/bin:$PATH

It should only contain ~/bin and in ~/bin there should be symlinks to various ppc* binaries in ~/lib/fpc/version. Cross or not.

Show quoted text 9 lines
After this modification fpcres can be invoked in the console, but "make all" still results in: lazarus.pp(137,1) Error: Can't call the resource compiler "/home/dodi/bin/fpcres", switching to external mode lazarus.pp(137,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted What's wrong?

Does it have execute permissions? Is the ~/bin directory in the PATH expanded?

Reply by email

Hans-Peter Diettrich
to Marco van de Voort: It should only contain ~/bin and in ~/bin there should be symlinks to various ppc*…
Show quoted text 19 lines
On Tue, Jul 26, 2011 at 12:42:28AM +0100, Hans-Peter Diettrich wrote: > the bashrc entry should read > > export PATH=~/lib/fpc/2.5.1:~/bin:$PATH It should only contain ~/bin and in ~/bin there should be symlinks to various ppc* binaries in ~/lib/fpc/version. Cross or not. > After this modification fpcres can be invoked in the console, but "make > all" still results in: > lazarus.pp(137,1) Error: Can't call the resource compiler > "/home/dodi/bin/fpcres", switching to external mode > lazarus.pp(137,1) Fatal: There were 1 errors compiling module, stopping > Fatal: Compilation aborted > > What's wrong? Does it have execute permissions?

Yes, it runs when invoked in the console.

Is the ~/bin directory in the PATH expanded?

Expanded?

This error may be related to missing output directories, see my other message. At least the fpcres error disappeared after restarting Linux, dunno what I tried before.

DoDi

Reply by email