Recent

Author Topic: Download of FPC 3.2 for Raspberry Pi does not work  (Read 5339 times)

AlanTheBeast

  • Sr. Member
  • ****
  • Posts: 348
  • My software never cras....
Re: Download of FPC 3.2 for Raspberry Pi does not work
« Reply #15 on: February 24, 2021, 10:50:24 pm »

To be clear Mi-Ki, di you succeed in getting FPC 3.2.0 on board?

Thanks.
Everyone talks about the weather but nobody does anything about it.
..Samuel Clemens.

Mi-Ki

  • Jr. Member
  • **
  • Posts: 74
Re: Download of FPC 3.2 for Raspberry Pi does not work
« Reply #16 on: February 02, 2024, 07:41:59 pm »
Hey. Hey.
I have a new raspberry.
How to download the new lazarus and install?
Thank you.

dbannon

  • Hero Member
  • *****
  • Posts: 2795
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Download of FPC 3.2 for Raspberry Pi does not work
« Reply #17 on: February 03, 2024, 07:08:29 am »
Hey, Hey.
Did you look on the wiki ?  https://wiki.freepascal.org/Installing_Lazarus_on_Linux#Build_Lazarus_from_Source

Assuming you did not choose anything silly for the OS, you will find that your OS (current Raspberian, current Debian etc) will have FPC 3.2.2 in its repo. So, install that (sudo apt install fpc) then download the Lazarus_3.0 source and compile it.

Davo

Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Mi-Ki

  • Jr. Member
  • **
  • Posts: 74
Re: Download of FPC 3.2 for Raspberry Pi does not work
« Reply #18 on: February 03, 2024, 08:18:08 am »
I don't know much linux
I've tried this.

sudo apt-get install fpc
git clone https://gitlab.com/freepascal.org/lazarus/lazarus.git lazarus-main
cd lazarus-main
make clean
make bigide
run  /home/pi/lazarus-main/lazarus

It's not good.
Everything is in the pi directory
It wants to install to /usr/local/

That was very good and it worked
https://forum.lazarus.freepascal.org/index.php/topic,53127.0.html
sudo mkdir /usr/local/lazarus
cd /usr/local/lazarus
sudo svn co http://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_8/ source
cd source
sudo make clean 
sudo make bigide
sudo make install OPT = -dFPC_ARMHF PREFIX = / usr / local
sudo ./lazarus

Why doesn't the link work?
http://svn.freepascal.org/svn/lazarus
Where to download?
« Last Edit: February 03, 2024, 10:20:28 am by Mi-Ki »

dbannon

  • Hero Member
  • *****
  • Posts: 2795
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Download of FPC 3.2 for Raspberry Pi does not work
« Reply #19 on: February 03, 2024, 10:20:10 am »
I don't know much linux
I've tried this.

sudo apt-get install fpc
git clone https://gitlab.com/freepascal.org/lazarus/lazarus.git lazarus-main
cd lazarus-main
make clean
make bigide
run  /home/pi/lazarus-main/lazarus
That looks good.

It's not good.
OK, interesting. Whats not good ?  Did you get an error message of some sort, you want help, you need to tell us what went wrong.

Everything is in the pi directory.
It wants to install to /usr/local/
Yes, in "out of the box", the Raspberry Pi OS makes a user account for you called "pi". Its silly but its what it does.

Do not run the Install for Lazarus, there is absolutely no point and it will only make things much harder for you. Leave it in where is was built, under your user name "pi", start it with the command you mentioned above, all good ! Only run Lazarus as a user, "pi" in your case.


That was very good and it worked
https://forum.lazarus.freepascal.org/index.php/topic,53127.0.html
sudo mkdir /usr/local/lazarus
cd /usr/local/lazarus
sudo svn co http://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_8/ source
cd source
sudo make clean 
sudo make bigide
sudo make install OPT = -dFPC_ARMHF PREFIX = / usr / local
sudo ./lazarus

Are you saying that block of commands worked now or some time in the past ?  Either way, it has a number of problems, including -
  • Don't install Lazarus in root space, its not necessary and only makes things harder later on.
  • Don't build Lazarus as root. Or any other app for that matter. In Unix, always build as an ordinary user and, if necessary use sudo or su to install. In the case of Lazarus, which needs to rebuild itself as you use it, you do not and should not, install.
  • Lazarus source is at gitlab now, not under a svn repo, so don't use svn.
  • Never build or run Lazarus as root, ie, using sudo, firstly its not necessary and secondly, its dangerous.
  • FPC does not need to be told to build ARMHF binaries, when building on any new Raspberry Pi, it will automatically and correctly select the default arch, that is probably AARCH64, thats 64bit. Your "ARMHF" parameter will force a 32bit build.
  • The prefix parameters you give will not work because you have spaces in there. But you don't need that anyway because you are not installing (or should not be).


So, overall, every line of of that block is wrong ! Thats a pretty good record.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018