Recent

Author Topic: Tutorial: Install Lazarus to Raspberry Pi  (Read 4204 times)

ottod

  • Newbie
  • Posts: 2
Re: Tutorial: Install Lazarus to Raspberry Pi
« Reply #45 on: October 31, 2019, 07:06:46 am »
I wrote this on the wiki: https://wiki.freepascal.org/Build_current_FPC_and_Lazarus_for_Raspbian
Which tonight resulted on this: https://app.box.com/s/7g54gml6p9bfn10157go430oyputw2au
Lazarus 2.0.6 for Raspbian Buster.
My Box account has only so much bandwidth so tell me if someone can host the files somewhere else.
« Last Edit: October 31, 2019, 07:35:56 pm by marcov »

dbannon

  • Hero Member
  • *****
  • Posts: 787
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Tutorial: Install Lazarus to Raspberry Pi
« Reply #46 on: November 02, 2019, 05:02:39 am »
I wrote this on the wiki: https://wiki.freepascal.org

Nice work ottod.

But I am a bit surprised how you went about it. I was under impression that Buster had has fpc 3.0.4 in its repos ?  I have not tried but would see no reason why that could not be used to build lazarus from source, would simplify things. But, as I said, have not tried it !

Nice how you went go on to build debs !

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

ottod

  • Newbie
  • Posts: 2
Re: Tutorial: Install Lazarus to Raspberry Pi
« Reply #47 on: November 04, 2019, 07:04:32 pm »
I also use an Ubuntu 64 PC. Even if Ubuntu also has current FPC/Lazarus packages I still prefer the ones provided at https://lazarus-ide.og. Why? Debian packaged Lazarus has many permission related problems while rebuilding the IDE, because Debian recommends a certain directory structure and specific user rights to them. This works with "typical" packages that get their functionality from installing piece by piece. Lazarus gets its features by recompiling the IDE on demand according to user needs. Debian/Ubuntu does not like this because resulting binaries have to be installed to system directories, to which a regular user has not enough rights. All of this does not happen with packages from the Lazarus team. That's why I wanted to build debs from sources like the ones from Lazarus team, but for armhf.

dbannon

  • Hero Member
  • *****
  • Posts: 787
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Tutorial: Install Lazarus to Raspberry Pi
« Reply #48 on: November 05, 2019, 12:23:44 am »
...Even if Ubuntu also has current FPC/Lazarus packages I still prefer the ones provided at https://lazarus-ide.og. Why? Debian packaged Lazarus has many permission related problems while rebuilding the IDE,......

In practice, the rebuilding issues don't apply to FPC/FPC-src. Yours is a very good argument when applied to Lazarus. And there are several more good reasons to keep Lazarus in user space. My recommended approach is to install FPC/FPC-src from debs and download Lazarus source into user space and build it there.

The practicability of editing and recompiling FPC or its scr is questionable in my humble opinion. But absolutely, you really need that level of access with Lazarus. Its important to realise that FPC and Lazarus are different products.  Right now, we are lucky, the various distros almost all have FPC304 in their repos, when we finally see FPC320 released, we will certainly need to use the sourceforge ones for some time.

Davo

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

Linkat

  • New Member
  • *
  • Posts: 16
Re: Tutorial: Install Lazarus to Raspberry Pi
« Reply #49 on: November 28, 2019, 02:09:37 pm »
Hi ottod,
that's exactly what I wanted. In your  post from 31-10-19, the second link giude you to the 3 debian packages:
fpc-laz_3.0.4_armhf.deb,
fpc-src_3.0.4_armhf.deb,
lazarus-project_2.0.6-0_armhf.deb

I just installed it on my Raspberrry Pi 4 without any modifications (swap etc.). It works fine.
It's a great job!!!!

It would be nice, if these packages could be found at the lazarus-ide.org download page.

Thank you very much again.

tkramer3

  • New Member
  • *
  • Posts: 16
Re: Tutorial: Install Lazarus to Raspberry Pi
« Reply #50 on: December 01, 2019, 06:15:26 pm »
Hello All,

I compiled the Lazarus debs following the tutorial of Ottod, tested them and they work great, and put them on my site on the following URL

tkramer3.info.tm

Hope this helps anyone, best regards,

Theo