Recent

Author Topic: cannot complile project in lazarus  (Read 8207 times)

honzin

  • Newbie
  • Posts: 3
cannot complile project in lazarus
« on: June 23, 2004, 05:49:00 pm »
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

  • New Member
  • *
  • Posts: 33
cannot complile project in lazarus
« Reply #1 on: June 23, 2004, 08:19:26 pm »
i have interfaces in lazarus-path/lcl/interfaces

tonymaro

  • New member
  • *
  • Posts: 7
    • http://tony.maro.net
cannot complile project in lazarus
« Reply #2 on: June 23, 2004, 11:15:08 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
cannot complile project in lazarus
« Reply #3 on: June 23, 2004, 11:15:37 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
cannot complile project in lazarus
« Reply #4 on: June 23, 2004, 11:18:43 pm »
Quote from: "tonymaro"
As root, run "updatedb" and then "locate interfaces.pp"

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.

Anonymous

  • Guest
cannot complile project in lazarus
« Reply #5 on: June 25, 2004, 11:32:43 am »
thanks for advices but it seems that problem is elsewhere.
i tried to build lazarus manually (with make) and:
1st time it compiled everything but it stopped while linking - it switched to to external linker and gave an error. - error while linking but nothing more about error.
2nd time it switched to lcl directory and then hanged (it reacted only on ctrl+c)
i erased and copied lazarus source again and entered command make. it switched to lcl dir (already in the beginning) and hanged again.
i dont know whats wrong.

i have installed:
fpcsrc-1.9.3-040306
fpc-1.9.3-040306
etc. ...
lazarus-0.9.1.4-fpc_1.9.3_040529  (from rpm or source) i may try lazarus-0.9.1.2 but i dont know

honzin

  • Newbie
  • Posts: 3
cannot complile project in lazarus
« Reply #6 on: June 25, 2004, 11:35:16 am »
sorry, i have forgotten to log in. so that quest above is me - honzin.
and sorry for my english :(

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
cannot complile project in lazarus
« Reply #7 on: June 25, 2004, 12:43:31 pm »
If you install lazarus-0.9.1.4-fpc_1.9.3_040529, should install fpc and fpcsrc from that date too.  (29 May 2004).

If you build lazarus and get an error, maybe doing a 'make clean' at the top level helps. (I am not sure it helps in your case).

honzin

  • Newbie
  • Posts: 3
cannot complile project in lazarus
« Reply #8 on: June 25, 2004, 12:58:01 pm »
thx, it works now.
now i know that fpc-1.9.3 is not the same as fpc-1.9.3 :)

even unit crt works now (in 1.9.3-040306 didnt)

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
cannot complile project in lazarus
« Reply #9 on: June 25, 2004, 01:42:55 pm »
For more info on FPC version numbers see:
http://www.freepascal.org/faq.html#versions

 

TinyPortal © 2005-2018