fp can't find the correct libraries

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

fp can't find the correct libraries

Joep L. Blom
I sent Wednesday this request also but perhaps it wasn't seen.
I was able to launch fp and read in the example progralm HelloWorld.
 However, this program (and any other program) will compile as the error
is:
Fatal: Can't find unit System
But when I look in fpc.cfg the path for units is correct:
# searchpath for units and other system dependent things
-Fu/usr/lib64/fpc/2.0.0/units/$fpctarget
-Fu/usr/lib64/fpc/2.0.0/units/$fpctarget/*
-Fu/usr/lib64/fpc/2.0.0/units/$fpctarget/rtl
#-Fu~/fpc/packages/base/*/units/;~/fpc/fcll/units/;~/fpc/rtl/units/
Well, my unit directory is /usr/lib64/fpc/2.0.0/units/x86_64-linux/....
but I don't know where the variable fpctarget is initialised, I assume
in fp but cant find it. I have tried to set the path directly (in
options) however with no effect.
The system is: AMD64 3000+ (1 GB mem, 80 GB disks) FC4 2.6.12.

Another problem is that Lazarus complains:
 fpc = 2.0.1-050923 is needed by lazarus-0.9.10-0.i386
 fpcsrc = 2.0.1-050923 is needed by lazarus-0.9.10-0.i386
and of course it's correct (fpc version is 2.0.0. and I haven't found
fpcsrc-2.0.0 ).
So my questions are:
1.      Where is fpctarget initialised ? (or how can nudge fpc to run at
least "helloworld")
2.      Which lazarus version is available for version 2.0.0-x86_64 (or
is
there 2.0.1-050923-x86_64 version).
3.      Why do I need fpcsrc (I assume it's the source of fpc) to use
lazarus? (I didn't find it in wiki but maybe I didn't know where to
look)
I hope somebody can give me the answers to my questions.
Thanks in advance,
Joep

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: fp can't find the correct libraries

Marco van de Voort
> I sent Wednesday this request also but perhaps it wasn't seen.
> I was able to launch fp and read in the example progralm HelloWorld.
>  However, this program (and any other program) will compile as the error
> is:
> Fatal: Can't find unit System
> But when I look in fpc.cfg the path for units is correct:
> # searchpath for units and other system dependent things
> -Fu/usr/lib64/fpc/2.0.0/units/$fpctarget
> -Fu/usr/lib64/fpc/2.0.0/units/$fpctarget/*
> -Fu/usr/lib64/fpc/2.0.0/units/$fpctarget/rtl
> #-Fu~/fpc/packages/base/*/units/;~/fpc/fcll/units/;~/fpc/rtl/units/
> Well, my unit directory is /usr/lib64/fpc/2.0.0/units/x86_64-linux/....

Put that in the "unit directory" path in " options -> directories"  and have
the asterisk behind it (so like the second -Fu line above) .

IOW, the IDE has its own settings (_AND_ its own compiler, it is built in),
and fpc.cfg is irrelevant inside the IDE.

> but I don't know where the variable fpctarget is initialised, I assume
> in fp but cant find it. I have tried to set the path directly (in
> options) however with no effect.

The compiler expands it to the actual target.

> 1.      Where is fpctarget initialised ? (or how can nudge fpc to run at
> least "helloworld")

> 2.      Which lazarus version is available for version 2.0.0-x86_64 (or
> is there 2.0.1-050923-x86_64 version).

No idea.

> 3.      Why do I need fpcsrc (I assume it's the source of fpc) to use
> lazarus? (I didn't find it in wiki but maybe I didn't know where to
> look I hope somebody can give me the answers to my questions.

Lazarus needs it for its codetools. They can't use the precompiled units
yet for this.
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal