Forum > Linux
Can't compile project : Error : cant't find unit INTERFACES
Neo:
When I try to compile a simple program I receive the following message :
/tmp/project1.lpr(1,1) Fatal: Can't find unit INTERFACES.
I checked the FAQ but it is not exactly the same error.
The FAQ says something about adding TLC to the project using the project inspector but this is already done and linked. Also the (1,1) doesn't correspond to the FAQ.
I'm usinng the 32bits rpm for lazarus and fpcsrc but I'm using the 64 bits snapshot of FPC.
The FAQ also says "Read the question" for this problem.
But what question ???
How can I solve this problem ?
Thanks.
Lightning:
I don't know how to solve this problem since i didn't have it, but it was discussed on these forums many times, maybe check the mailing list.
Vincent Snijders:
--- Quote ---I'm usinng the 32bits rpm for lazarus and fpcsrc but I'm using the 64 bits snapshot of FPC.
--- End quote ---
That is the cause of your problem: you are not using the same compiler (version) as used to (pre-)compile your LCL units.
If you want to use the 64 bits snapshot of FPC, you need to recompile the LCL with it.
Choose Tool, Configure Build Lazarus, and set Build LCL on build + clean. Everything else on none. Uncheck the clean all checkbox and the Restart checkbox (if available).
Close this dialog.
Choose Tool, Build Lazarus to rebuild the LCL.
This might very well fail, because I don't think any of the lazarus developers are using the 64 bit compiler yet.
Then you need to fix the compilation (send patches to the mailing list) or use the 32 bit compiler.
HTH,
Vincent.
Anonymous:
Ok, I'll try that this evening.
I already tried the whole 32 bits package, lazarus, FPC and FPCSRC but this doesn't work either.
I get the same error as already posted here on the forum :
--- Quote ---Linking ./lazarus
/usr/bin/ld: skipping incompatible /usr/lib/fpc/1.9.5/units/linux/rtl/cprt21.o when searching for /usr/lib/fpc/1.9.5/units/linux/rtl/cprt21.o
/usr/bin/ld: cannot find /usr/lib/fpc/1.9.5/units/linux/rtl/cprt21.o
lazarus.pp(97,1) Error: Error while linking
--- End quote ---
If I can't get it to work I'll switch back to Kylix with a linux32 emulator.
Neo:
--- Quote from: "Vincent" ---
--- Quote ---I'm usinng the 32bits rpm for lazarus and fpcsrc but I'm using the 64 bits snapshot of FPC.
--- End quote ---
That is the cause of your problem: you are not using the same compiler (version) as used to (pre-)compile your LCL units.
If you want to use the 64 bits snapshot of FPC, you need to recompile the LCL with it.
Choose Tool, Configure Build Lazarus, and set Build LCL on build + clean. Everything else on none. Uncheck the clean all checkbox and the Restart checkbox (if available).
Close this dialog.
Choose Tool, Build Lazarus to rebuild the LCL.
This might very well fail, because I don't think any of the lazarus developers are using the 64 bit compiler yet.
Then you need to fix the compilation (send patches to the mailing list) or use the 32 bit compiler.
HTH,
Vincent.
--- End quote ---
I did exactly what you asked but now I get the following :
/usr/share/lazarus/lcl/lclstrconsts.pas(242) : Error: Writing resource string Table File: units/x86_64/linux/lclstrconsts.rst
/usr/share/lazarus/lcl/lclstrconsts.pas(242) : Fatal : There were 1 errors compiling module, stopping.
:(
What to do next ??
Navigation
[0] Message Index
[#] Next page