Recent

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

ottod

  • New member
  • *
  • Posts: 5
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: 1149
    • 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

  • New member
  • *
  • Posts: 5
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: 1149
    • 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


dpaulc

  • Newbie
  • Posts: 3
Re: Tutorial: Install Lazarus to Raspberry Pi
« Reply #51 on: April 11, 2020, 03:52:15 pm »
Hello,

I tried installing the deb packages Ottod created today. fpc-laz and fpx-src installed fine, but lazarus-project failed. It seems two packages it depends on are no longer available.

I got the following errors:

W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/i/icu/icu-devtools_63.1-6_armhf.deb
  404  Not Found [IP: 93.93.128.193 80]

W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/i/icu/libicu-dev_63.1-6_armhf.deb
  404  Not Found [IP: 93.93.128.193 80]

I'm guessing it is a version issue, but not expert enough to fix it.

Can anyone help?

Thanks!
Paul

dpaulc

  • Newbie
  • Posts: 3
Re: Tutorial: Install Lazarus to Raspberry Pi
« Reply #52 on: April 11, 2020, 04:02:12 pm »
A bit more info,,,
A dpkg install states:

dpkg: dependency problems prevent configuration of lazarus-project:
 lazarus-project depends on libgtk2.0-dev (>= 2.6.0); however:
  Package libgtk2.0-dev is not installed.

Apparently, libgtk2.0-dev depends on the two packages mentioned previously.

Thanks
Paul

dpaulc

  • Newbie
  • Posts: 3
Re: Tutorial: Install Lazarus to Raspberry Pi
« Reply #53 on: April 11, 2020, 04:28:57 pm »
Resolved!

I'm not sure what exactly solved this issue, but I did the following and lazarus is now installed.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libgtk2.0-dev


JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3827
  • I like bugs.
Re: Tutorial: Install Lazarus to Raspberry Pi
« Reply #54 on: April 11, 2020, 08:12:02 pm »
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.
+1
Exactly! I don't know why people confuse these 2 projects so badly.
@ottod, dbannon asked you why FPC 3.0.4 could not be used from the distro's repository. You started to explain Lazarus issues. Why?
The best way to get a recent Lazarus is to build from sources using the FPC provided by your distro. Building and installing FPC from sources is difficult. Building Lazarus from sources is easy. No installation is needed.
Once FPC is there, just do: "svn co ..." (either Lazarus fixes or trunk), then "make". And that's it.
Using external .deb packages is unfortunately a source of continuous problems. This forum has seen hundreds of threads about installing those packages for Ubuntu, Mint and other Debian derivatives.
Mostly Lazarus trunk on Manjaro Linux.

ottod

  • New member
  • *
  • Posts: 5
Re: Tutorial: Install Lazarus to Raspberry Pi
« Reply #55 on: April 18, 2020, 07:22:41 am »
Updated Lazarus 2.0.8 for Raspberry Pi.
https://app.box.com/s/7g54gml6p9bfn10157go430oyputw2au
UNOFFICIAL packages built from modified official sources, according to this updated wiki article: https://wiki.freepascal.org/Build_current_FPC_and_Lazarus_for_Raspbian

DO NOT ASK FOR SUPPORT IN THIS FORUM.
Use at your own risk.

hansotten

  • Jr. Member
  • **
  • Posts: 53
Re: Tutorial: Install Lazarus to Raspberry Pi
« Reply #56 on: April 18, 2020, 12:16:44 pm »
Thank you ;)

donagin

  • Newbie
  • Posts: 1
Re: Tutorial: Install Lazarus to Raspberry Pi
« Reply #57 on: May 23, 2020, 12:09:05 am »
@RVK - Thanks on the script.  It really saved my bacon.

-Don

Fred vS

  • Hero Member
  • *****
  • Posts: 1838
    • StrumPract is the musicians best friend
Re: Tutorial: Install Lazarus to Raspberry Pi
« Reply #58 on: May 23, 2020, 02:46:09 am »
Alas BGRA controls indeed fail. I grant you that. But it is not part of the default distribution and I already (amongst others) complained about that it does not work.
Some cynicism is always allowed on this forum, btw... Otherwise I do a Trexit... O:-)

There are better options, though, since the OpenGL stuff works OK since buster came out.
As it stands BGRA * should be excluded for armhf as incompatible.

Just don't use BGRA *. It is not the Holy Grail but just nice to have....
(If the maintainers of BGRA need a Raspberry Pi I will send them one, for free)

Huh, BGRABitmap and BGRAControls work perfectly on the RPi.

There is even a Raspbian binary release of LazPaint, done with them:

https://github.com/bgrabitmap/lazpaint/releases
« Last Edit: May 23, 2020, 02:57:07 am by Fred vS »
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

jcdammeyer

  • Jr. Member
  • **
  • Posts: 67
  • Embedded System Developer
    • Automation Artisans Inc.
Re: Tutorial: Install Lazarus to Raspberry Pi
« Reply #59 on: July 13, 2020, 07:33:48 am »
Is there an easy way like apt-get install lazarus 2.010 for Stretch?  I just tried the write one compile anywhere concept with an application that runs on both WIN-7 and WIN-10 and I'm running into issues with the Lazarus 1.6.  At the moment I've got too much stuff installed on this Pi3 so I don't really want to start over with a new OS.  Although I guess I might have to.

Granted the reason I have a WIN-10 laptop now is because the latest version of Embarcadero Studio 10.4 no longer will run on WIN-7.  But I've always thought the Linux world wouldn't create those sort of stunts.

So shouldn't an apt-get install Lazarus be able to install the latest version or will it just not run on Stretch? 

Alternatively maybe I should try and install Lazarus 1.6 on Windows, rebuild the project to compile and run on that and then it should work on both the Pi and the Beaglebone.

I kind of need the software to have a life of more than 6 months to a year before it needs to be totally rebuilt because everything changes.

 

TinyPortal © 2005-2018