Recent

Author Topic: SOLVED: Install package - Fatal: Can't find unit lclbase used by Lazarus  (Read 7313 times)

insmart

  • Newbie
  • Posts: 2
Version# 0.9.30.4-6
FPC 2.6.0
arm-linux-gtk-2

Clean install.   Can compile and run programs no problem.  Have not altered any config files.

http://wiki.freepascal.org/How_to_Write_a_Lazarus_Component

New package - Add - New Component tab - ancestor type TCheckBox.   Save as xx_checkbox - leave as is without modification
No search paths required to successfully compile the package.

Whenever you select Install - the package compiles again - then you are prompted to re-compile Lazarus and after selecting Yes this error is displayed:
Fatal: Can't find unit lclbase used by Lazarus

This is all out of the box simple stuff and should work.  No wonder people get frustrated with this kind of environment.  The error message provides no clues as to what part of the overall process the error relates to.  Is the error message from fpc or from Lazarus.  Does the error relate to the package or to the Lazarus IDE.  The lack of information in the error message is unacceptable and completely f@@kn useless.

Have tried adding lclbase and/or LCL as a required package but it feels to me like this dependency has nothing to do with how the package is compiled but rather how Lazarus is configured and it's own re-compile routine.

permissions and file locations are not mentioned in the component wikki but I am logged in as root so permissions and file locations should not be a problem.

Been through all the relevant wikki's and have spent hours trying to resolve this issue now at wits end any assistance appreciated!!

« Last Edit: May 18, 2015, 05:19:25 pm by insmart »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4715
  • I like bugs.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

coliv_aja

  • New Member
  • *
  • Posts: 38
Re: Install package - Fatal: Can't find unit lclbase used by Lazarus
« Reply #2 on: May 18, 2015, 01:46:55 am »
Usually if it's happen, I just recklessly remove folder "units" which contain compiled file under fpc/lazarus and rebuild all.

insmart

  • Newbie
  • Posts: 2
Re: Install package - Fatal: Can't find unit lclbase used by Lazarus
« Reply #3 on: May 18, 2015, 05:18:51 pm »
SOLVED:  I assumed apt-get would retrieve something half recent but the version I was using was very old.  I had to compile FPC and Lazarus to install the latest version.   Took me a day and a half but now everything works as expected !!!!

This is an excellent how to for building an arm version for the raspberry pi :
http://www.tweaking4all.com/hardware/raspberry-pi/install-lazarus-pascal-on-raspberry-pi-2/

 

TinyPortal © 2005-2018