Forum > Unix

How to configure fp? (it doesn't see any unit)

(1/2) > >>

pik33:
I have fpc/Lazarus built from sources on Raspberry Pi. The Lazarus works OK; the console fp IDE is not configured.

Example:

program test;
uses crt;
begin
end.

cannot compile because it cannot find unit crt.

How to tell the this IDE where these units are? Source directory is /usr/local/fpc/trunk (as read from Lazarus settings)

molly:
The fp ide has all kind of menu's and windows you can invoke.

One of the menu's is called options, see also here.

Just as the command-line counterpart there's need to configure the built-in compiler and tell fp where it can find your units etc.

Unfortunately is was unable to find a visual guide which shows all the windows and options inside fp-ide for you.

Leledumbo:

--- Quote from: molly on September 10, 2015, 10:41:08 pm ---Unfortunately is was unable to find a visual guide which shows all the windows and options inside fp-ide for you.

--- End quote ---
Here's one

pik33:
Thank you, it works now

For the Raspberry Pi it was /usr/local/lib/fpc/3.1.1/units/arm-linux/*


Edit.. it ALMOST works. Run... Ctrl-F9 - nothing.

It cannot see ctrl+Fn... why? To run something I have to use the mouse.
And there is no debugger (config again?)

But at least it can compile something. It was many years ago when I programmed in text environment (Turbo Pascal) last time...

molly:
Thank you Leledumbo.

@pik33:
It might be that the arm version of FP ide does not support creating a fresh shell in order to run the produced executable (or the path is wrong ?)

AFAIK there are no special settings in fp-ide that could aid you in solving the problem (do note the afaik).

Perhaps someone with more experience/knowledge could shed a light ?

Navigation

[0] Message Index

[#] Next page

Go to full version