* * *

Author Topic: Fatal: Cannot find lazcontroldsgn used by Lazarus.  (Read 952 times)

Chronos

  • Full Member
  • ***
  • Posts: 190
    • PascalClassLibrary
Fatal: Cannot find lazcontroldsgn used by Lazarus.
« on: October 26, 2017, 10:49:24 pm »
After upgrade to Xubuntu 17.10 amd64. Even removed previous packages and purged configuration and installed cleanly default packages without help.
Lazarus version: 1.8.0~rc4+dfsg-1
FPC version: 3.0.2+dfsg-5ubuntu1
Removed ~/.lazarus directory.

Still Build Lazarus IDE with Normal profile fails:
Quote
lazarus.pp(1,1) Fatal: Cannot find lazcontroldsgn used by Lazarus. Check if package LazControlDsgn creates lazcontroldsgn.ppu, check nothing deletes this file and check that no two packages have access to the unit source..

What is best way to resolve this issue?

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3302
  • I like bugs.
Re: Fatal: Cannot find lazcontroldsgn used by Lazarus.
« Reply #1 on: October 26, 2017, 11:23:08 pm »
What is best way to resolve this issue?
Just install package components/lazcontrols/design/lazcontroldsgn.

Chronos

  • Full Member
  • ***
  • Posts: 190
    • PascalClassLibrary
Re: Fatal: Cannot find lazcontroldsgn used by Lazarus.
« Reply #2 on: October 27, 2017, 07:51:35 am »
Problem is that this package is already "installed". It is listed in menu Package - Install/Uninstall packages... on left side.
If I open this package manually and click to Use - Install, then same error appears. If I click to Compile package, then it compiles itself.
Then if I click to package Use - Install or Tools - Build Lazarus then it compiles ok. But after lazarus restarts itself, the problem is there again. So something is bad.
Also I checked version in About dialog and reported date is 2017-10-23 and not today. So I am not sure if correct version is started. Probably yes, just date is incorrect. I see new compiled version in ~/.lazarus/bin/lazarus
Lazarus is started from main menu using: startlazarus-1.8.0 %f

But if it isn't problem with ~/.lazarus directory then what else can affect lazarus configuration.

Chronos

  • Full Member
  • ***
  • Posts: 190
    • PascalClassLibrary
Re: Fatal: Cannot find lazcontroldsgn used by Lazarus.
« Reply #3 on: October 28, 2017, 11:27:44 pm »
Somebody probably messed up lcl packages for Ubuntu. Because according idemake.cfg there should be directory -Fu/usr/lib/lazarus/1.8.0/components/lazcontrols/design/lib/x86_64-linux/gtk2 but such directory doesn't exist.
Even required file lazcontroldsgn.ppu doesn't exist anywhere in apt database:
apt-file search lazcontroldsgn.ppu returns none such package.

Question is why Lazarus is not able to recompile such package by itself inside ~/.lazarus/units/x86_64-linux/gtk2 ? In fact if I compile package manually it is generated to ~/.lazarus/lib/LazControlDsgn/lib/x86_64-linux/gtk2/ Then new line is added to idemake.cfg as -Fu~/.lazarus/lib/LazControlDsgn/lib/x86_64-linux/gtk2 but this remains only for one IDE compilation. Next run it disappears and error comes back.

jerrylaz

  • Newbie
  • Posts: 1
Re: Fatal: Cannot find lazcontroldsgn used by Lazarus.
« Reply #4 on: November 28, 2017, 04:00:23 am »
Hi All,

I am having the same problem as Chronos.
I am using Ubuntu ver 17.10 running lazarus installed from repo...

EDIT:

PROBLEM SOLVED!!
And thanks goes to Martin_fr from another thread http://forum.lazarus.freepascal.org/index.php?topic=32779.0

You need to install the  package lazcontroldsgn.lpk from /lazarus/components/lazcontrols/design.
« Last Edit: November 28, 2017, 04:28:07 am by jerrylaz »

Chronos

  • Full Member
  • ***
  • Posts: 190
    • PascalClassLibrary
Re: Fatal: Cannot find lazcontroldsgn used by Lazarus.
« Reply #5 on: November 28, 2017, 09:40:47 am »
Hi All,
PROBLEM SOLVED!!
And thanks goes to Martin_fr from another thread http://forum.lazarus.freepascal.org/index.php?topic=32779.0

You need to install the  package lazcontroldsgn.lpk from /lazarus/components/lazcontrols/design.

No, unfortunately this doesn't solve problem permanently but just for one rebuild. The issue is still valid after next restart of Lazarus.
Any other idea how to solve it?

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus