Recent

Author Topic: Problem with rebuilding Lazarus on Debian/Raspbian 10  (Read 335 times)

pik33

  • Jr. Member
  • **
  • Posts: 63
Problem with rebuilding Lazarus on Debian/Raspbian 10
« on: July 29, 2019, 03:07:04 pm »
Trying to rebuild Lazarus on Debian10 I got an error: fpdebug not found.

Then I tried a workaround: I opened and compiled fpdebug's lpk

After this the lazarus didn't build due to lacking virtualtreeview.

I didn't manage to compile this package (another dependency error)

I checked what uses this virtualtreeview package, and it was "online package manager". After removing this from the package list the Lazarus can build itself.

This is Lazarus 2.0.0-dfsg-2 installed via apt-get to Debian 10 on AMDx64

I got exactly the same behavior on Raspbian Buster /Raspberry Pi and I used the same solution

(1) is it a known bug?
(2) is there a simpler solution instead of this crude workarounds?

Edit: I had also to copy the fpdebug precompiled stuff to /home/pi/.lazarus/units/....  :(
« Last Edit: July 29, 2019, 03:15:46 pm by pik33 »

devEric69

  • Full Member
  • ***
  • Posts: 137
Re: Problem with rebuilding Lazarus on Debian/Raspbian 10
« Reply #1 on: July 29, 2019, 03:21:26 pm »
I don't know if this information is still relevant with your current version of Lazarus and FPC (it's dated from May 4, 2015), but here ( https://www.framboise314.fr/lazarus-sur-le-raspberry-pi/ ), it is written ( translated with https://www.deepl.com ):

Quote
[SNIP] it is necessary to add the following line in administrator mode to the /etc/apt/sources.list file:
1
   
deb http://plugwash.raspbian.org/wsf wheezy-wsf main

then a simple apt-get update (which will take some time), then install lazarus without worrying about anything anymore, and return everything in order! [SNIP]
« Last Edit: July 29, 2019, 03:23:03 pm by devEric69 »
use: Ubuntu 18.04 + Laz. 1.8.5 + FPC 3.0.5 (64 bits).

Thaddy

  • Hero Member
  • *****
  • Posts: 8858
Re: Problem with rebuilding Lazarus on Debian/Raspbian 10
« Reply #2 on: July 29, 2019, 05:14:27 pm »
No, that's not relevant anymore: that was relating to a patched version (by the Raspberry Pi Raspbian team), but Florian made it work for all armhf platforms.
Most people that want to use threading should learn to patch their jeans first: use a needle.

pik33

  • Jr. Member
  • **
  • Posts: 63
Re: Problem with rebuilding Lazarus on Debian/Raspbian 10
« Reply #3 on: July 30, 2019, 09:13:37 am »
It seems the debian package is buggy.

If Lazarus is installed by svn checkout and then built by make, it works.