* * *

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

torumyax

  • New member
  • *
  • Posts: 33
Re: Fatal: Cannot find lazcontroldsgn used by Lazarus.
« Reply #15 on: February 22, 2018, 12:32:30 am »
OK, I gave up and downloaded the official files from
https://www.lazarus-ide.org/

Code: Pascal  [Select]
  1. $ sudo apt install ./lazarus-project_1.8.0-1_amd64.deb
  2. $ sudo apt install ./fpc-src_3.0.4-2_amd64.deb
  3. $ sudo apt install ./fpc_3.0.4-2_amd64.deb

exit, start new terminal, and

$ startlazarus
« Last Edit: February 22, 2018, 04:28:19 am by torumyax »

torumyax

  • New member
  • *
  • Posts: 33
Re: Fatal: Cannot find lazcontroldsgn used by Lazarus.
« Reply #16 on: February 22, 2018, 12:41:54 am »
I hope this will be fixed soon because I've been advertising at my blog and somewhere else that this cool looking lazarus can be installed with just one line "sudo apt install lazarus".
« Last Edit: February 22, 2018, 12:50:10 am by torumyax »

Landslyde

  • Jr. Member
  • **
  • Posts: 91
Re: Fatal: Cannot find lazcontroldsgn used by Lazarus.
« Reply #17 on: April 08, 2018, 12:28:21 am »
I just installed the Lazarus 1.8.2 w/fpc 3.0.4 and I can't install packages either.

Some people may experience the problems because they start "lazarus" binary directly instead of using "startlazarus".
Lazarus is installed in a write protected directory, thus a new rebuilt binary is placed in the local config directory. Startlazarus uses it when it is available.
I used startlazarus and I still got the error and still couldn't install packages.
Linux Mint 18.3 64-bit
Lazarus 1.8.2
FPC 3.0.4

Landslyde

  • Jr. Member
  • **
  • Posts: 91
Re: Fatal: Cannot find lazcontroldsgn used by Lazarus.
« Reply #18 on: April 08, 2018, 03:34:52 am »
Here's some output that I hope helps the devs fix this issue:

Code: Pascal  [Select]
  1. slyde@slyde-HP-Pavilion-Desktop-PC-570-p0xx ~ $ sudo startlazarus
  2.  is a file
  3. TLazarusManager.Run starting /usr/lib/lazarus/1.8.2/lazarus ...
  4. Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/home/slyde/.lazarus"
  5. Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus"
  6. Looking for code tools config file:  "/home/slyde/.lazarus/codetoolsoptions.xml"
  7. NOTE: codetools config file not found - using defaults
  8. Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-gtk2 New=x86_64-linux-gtk2 FPC=True LCL=False
  9. TComponentTreeView.SetSelection: Updating component node values.
  10. TLazSourceFileManager.LoadLFM Creating designer for hidden component of /usr/lib/lazarus/1.8.2/components/rtticontrols/examples/examplegrid1.pas
  11. TLazSourceFileManager.InitOpenedProjectFile select form in designer: Form1:TForm1 TDesigner
  12. NOTE: Window with stalled focus found!, faking focus-out event
  13. NOTE: Window with stalled focus found!, faking focus-out event
  14. WARNING: TGtk2WidgetSet.InvalidateRect refused invalidating during paint message: TTreeView
  15. Hint: closing unneeded package "sqlite3laz"
  16. Note: (lazarus) renamed file "/usr/lib/lazarus/1.8.2/lazarus" to "/usr/lib/lazarus/1.8.2/lazarus.old"
  17. Info: (lazarus) Execute Title="Build IDE"
  18. Info: (lazarus) Working Directory="/usr/lib/lazarus/1.8.2/"
  19. Info: (lazarus) Executable="/usr/bin/make"
  20. Info: (lazarus) Param[0]="idepkg"
  21. Info: (lazarus) Param[1]="-w"
  22. TIDEFPCParser.ImproveMsgUnitNotFound FindUnitInAllUsesSections failed due to syntax errors or lazcontroldsgn is not used in /usr/lib/lazarus/1.8.2/ide/lazarus.pp

After starting Lazarus, I tried to add the sqlite3laz package and rebuild the IDE.
Linux Mint 18.3 64-bit
Lazarus 1.8.2
FPC 3.0.4

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3364
  • I like bugs.
Re: Fatal: Cannot find lazcontroldsgn used by Lazarus.
« Reply #19 on: April 08, 2018, 10:36:01 am »
I hope this will be fixed soon because I've been advertising at my blog and somewhere else that this cool looking lazarus can be installed with just one line "sudo apt install lazarus".
Yes I hope so, too, but this is a wrong forum to complain about it. With "sudo apt install ..." the packages come from the distribution's repository. Their packages are faulty. Complain in their forum please.

I just installed the Lazarus 1.8.2 w/fpc 3.0.4 and I can't install packages either.
Did you use packages provided by Lazarus project or by your distribution (Ubuntu or whatever)?

Quote
Here's some output that I hope helps the devs fix this issue: ...
If the packages are from your distribution's repository, how are Lazarus developers supposed to fix them?

BTW, the .deb packages provided by Lazarus project are not guaranteed to work in every distro version either because they come with different library and binutil etc. versions and the dependencies may not match.
In that case I recommend getting and building Lazarus from SVN. It is very easy once FPC is installed from the distro's repo.
« Last Edit: April 08, 2018, 10:46:40 am by JuhaManninen »

Laurie

  • New member
  • *
  • Posts: 17
Re: Fatal: Cannot find lazcontroldsgn used by Lazarus.
« Reply #20 on: May 19, 2018, 03:18:46 pm »
Lazarus and free pascal are great...I have them on a Windows machine as well as RPi.
But I have hit the same problem with Ubuntu 18.04: Lazarus IDE will not build. It dies with following error:

"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.."

This was on a clean install from bare metal ! This is what I did.
1. Reformatted and partitioned a new SSD.
2. Installed Ubuntu 18.04 LTS from CD by booting from CD on a Toshiba Laptop Tecra A9.
3. Downloaded lazarus_1.8.2+dfsg-3_all.deb and installed it. No problems.
4. Started Lazarus...no problems.
5. Immediately rebuilt the Lazarus IDE...error as outlined above.

I'm not sure where to go from here.
I don't wish to fiddle with a work around.
Perhaps I need to go back to Ubuntu 16 until a fix comes?
Any advice would be greatly appreciated.
Laurie

 

Recent

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