Forum > Linux

cannot complile project in lazarus

(1/2) > >>

honzin:
i innstalled lazarus from rpms on fedora II and when i tried to compile some project, error message appeared:
cannot find unit interfaces

i looked into faq and checked it and anything seems to be all right (right fp version, correct fpc.cfg, all needed rpms installed etc. perhaps except last - i didnt find interfaces anywhere)
i tried to reinstall fp but nothing has changed

i dont know whats wrong.

fatg:
i have interfaces in lazarus-path/lcl/interfaces

tonymaro:
As root, run "updatedb" and then "locate interfaces.pp"

Is your path to the lazarus directory showing correctly in the environement variables?

Do you have read and write access to the Lazarus directory?

Just some ideas...

Vincent Snijders:
One possible cause is a mismatch between the compiler installed (See envirionment options,  paths) and the compiler used to (pre-) compile the lcl units. If after checking you still think you are using the compiler installed by the rpm (that is the fpc-xxx-.rpm), you can choose Configure Build lazarus and Clean+Build the LCL and the Build Lazarus from the Tools menu.

After that you should be able to compile your project.

Tip: Look into the FAQ and search the forums. It has happened before.

Vincent Snijders:

--- Quote from: "tonymaro" ---As root, run "updatedb" and then "locate interfaces.pp"

--- End quote ---

Don't look for interfaces.pp, but interfaces.ppu, because this unit should not be (re)compiled, when you compile a project. Interfaces.pp is compiled when you build the LCL.

Navigation

[0] Message Index

[#] Next page

Go to full version