[lazarus] cant find unit interfacebase

LeVA leva at az.isten.hu
Fri Dec 19 13:46:26 EST 2003


LeVA írta:
> 
> 
> Ok! Thank you. Then I'll stop posting with this subject from now, and 
> I'll wait for the upcoming changes. Hope that will be working for me too.
> 
> Daniel
> 

Sorry but I can't stand :). I compiled fpc1.9.1 like this:

cd src/fpc
make clean
make all
export PREFIX=/home/leva/FreePascal/
make install
make BINUTILSPREFIX="i686-pc-mingw32-" OS_TARGET=win32 install

Now I have these dirs:

~/FreePascal/lib/fpc/1.9.1/units/linux
~/FreePascal/lib/fpc/1.9.1/cross/i386-win32/units
~/FreePascal/lib/fpc/1.9.1/cross/i386-win32/bin

Finally I have the win32 units compiled for 1.9.1. I could be happy :) 
but I'm not. After recompiling lazarus:

cd lazarus
make clean
make all OPT="-dUseFPImage"
cd lcl
make OS_TARGET=win32

I start lazarus, and create a brand new project. With a plain form. I 
set the TargetOS to win32, and the LCL type to win32. Run/Build All, and 
it says Succesfully compiled. Wow, it worked!

Now I set the TargetOS to linux, and the LCL type to gtk. Run/Build All, 
and it says:

[TCompiler.Compile] CmdLine="/home/leva/FreePascal/bin/ppc386  -Rintel 
-S2cgi -CD -Ch8000000 -OG1p1 -TLinux -gl -XD -vewnhi -l 
-Fu/home/leva/FreePascal/lazarus/lcl/units/ 
-Fu/home/leva/FreePascal/lazarus/lcl/units/gtk/ 
-Fu/home/leva/FreePascal/lazarus/packager/units/ -Fu. -dLCL 
/home/leva/tmp/project1.lpr"
TOutputFilter: "Hint: Start of reading config file /home/leva/.fpc.cfg"
TOutputFilter: "Hint: End of reading config file /home/leva/.fpc.cfg"
TOutputFilter: "Free Pascal Compiler version 1.9.1 [2003/12/19] for i386"
TOutputFilter: "Copyright (c) 1993-2002 by Florian Klaempfl"
TOutputFilter: "Hint: Path "/usr/lib/fpc/1.9.1/units/linux/" not found"
TOutputFilter: "Hint: Path "/usr/lib/fpc/1.9.1/units/linux/rtl/" not found"
TOutputFilter: "Target OS: Linux for i386"
TOutputFilter: "Compiling /home/leva/tmp/project1.lpr"
TOutputFilter: "Fatal: Can't find unit INTERFACEBASE"
[TMainIDE.DoOpenMainUnit] A ProjectLoading=FALSE MainUnitID=0


Can't find that interfacebase unit. But it's here:

~/FreePascal/lazarus/lcl/include/interfacebase.inc
~/FreePascal/lazarus/lcl/interfacebase.pp
~/FreePascal/lazarus/lcl/units/interfacebase.o
~/FreePascal/lazarus/lcl/units/interfacebase.ow
~/FreePascal/lazarus/lcl/units/interfacebase.ppu
~/FreePascal/lazarus/lcl/units/interfacebase.ppw

What else I need? The interfacebase unit is there, and lazarus or fpc 
can't find it. Finaly I got the fpc1.9.1 working with win32, and now I 
can not build my project to linux... :)

My ~/.fpc.cfg:

-Fu/home/leva/FreePascal/lib/fpc/$version/units/$target
-Fu/home/leva/FreePascal/lib/fpc/$version/units/$target/*
-Fu/home/leva/FreePascal/lib/fpc/$version/units/$target/rtl
#-Fu/home/leva/FreePascal/lazarus/lcl/units
#-Fu/home/leva/FreePascal/lazarus/lcl/units/*

#-Fu/home/leva/FreePascal/lazarus/lcl/units
#-Fu/home/leva/FreePascal/lazarus/lcl/units/gtk
#-Fu/home/leva/FreePascal/lazarus/lcl/units/win32

#ifndef VER1_0
#ifdef WIN32
-Fu/home/leva/FreePascal/lib/fpc/1.9.1/cross/i386-win32/units
-Fu/home/leva/FreePascal/lib/fpc/1.9.1/cross/i386-win32/units/*
-Fu/home/leva/FreePascal/lib/fpc/1.9.1/cross/i386-win32/units/rtl
-XPi686-pc-mingw32-
#endif
#endif


Can somebody help me?

Thanks!

Daniel


-- 
LeVA







More information about the Lazarus mailing list