Forum > Linux
Can't compile project : Error : cant't find unit INTERFACES
Vincent Snijders:
If you don't have a system unit, you can't compile anything. So let us confirm that. Create this progam test.pas:
--- Code: ---program test;
begin
end.
--- End code ---
and compile it from the command line:
/usr/lib64/fpc/1.9.5/ppcx64 test.pas
If this fails too, make sure you have a system.ppu and system.o file on your computer and that the paths in /etc/fpc.cfg or ~/.fpc.cfg are setup correctly.
If this works, try to compile this program in lazarus. Use Create Project, Custom Program.
If you want lots of information about the compiling process, goto the Project Menu, Compiler Options and click the test button.
I hope this helps, but I am very skeptical, the more because I think the LCL is not 64 bit ready (some casts of pointer to longint for example).
If you want a working lazarus, you might be better of using ppc386 and setting a correct linker (not the 64 bits assembler/linker).
Neo:
OK, almost done here.
I managed to install a 32 bits linker and the error is gone.
The last problem I now have is the message : cannot find -lgdk
I install all possible gdk packages I could find, 32 bits as well as 64 bits.
Which RPM file contains the libs I need ?
I also forgot to mention that I added -Fl/opt/gnome/lib into /etc/fpc.cfg as indicated in the FAQ for SuSE. This didn't solve it.
Vincent Snijders:
I don't know the rpm, but I do have a couple of questions. :wink:
did you install 32 bits development packages for gdk?
do you have a libgdk.so installed? Is it 32 bits?
try adding the path to it to the Libaries path in the compiler options. If that works, edit your /etc/fpc.cfg accordingly, so you don't need to set the path always.
I hope this will get you there.
Marc:
The "Can't find unit system" message usually indicates that the fpc-rtl version is different that the version of the compiler.
Make sure that you are using the system.ppu (and all other fpc units) belonging to the version of your compiler.
Make suere that there is not an old version of the compiler (posibly in /usr/bin or /usr/local/bin or ~/bin)
Neo:
Version are both the same.
I think I tried every possible option available.
Tried the 64 bits compiler which doesn't work at all with lazarus because it can't use the unit System. When I try to rebuild lazarus it fails again on another unit.
I then removed every package and installed the 32 bits version of fpc, fpcsrc and lazarus but this one cannot work together with my linker which is 64 bits.
Problem is that I cannot install the 32 bits linker. If I do so lazarus still doens't work because he flips on in the lgtk thing which I cannot solve at all even if all files necessary exists.
Not only that but because I installed the 32 bits linker it has overwritten my 64 bits version which has as result that I can no longer compile software packages from source on the command line.
So you see, I fall from one problem into another and it just doesn't work.
As long as there is no full 64 bits version of fpc, fpcsrc and Lazarus it will never work.
I gave up.
Navigation
[0] Message Index
[*] Previous page