Do the Wiki instructions no longer work?
See: https://wiki.freepascal.org/Lazarus_on_Raspberry_Pi#Simple_installation_under_Raspbian
Hi Raspi user,Thanks for the effort, but it is not necessary, because there are supported .debs in the Rasbian repository that are created and maintained by Debian.
because in the past 6 years I had a lot of trouble to install the current stable Lazarus versions with all the differently methods to my raspis, I wrote this tutorial. I'm sure there will be problems in the future too. So please give me information about this problems and how to solve this problems, so I can work on this tutorial.
Hopefully you'll have success with the installation.
Yes, with the lazarus debian-packages you get the Lazarus 2.0.0 version. Not bad, but not good enough. If I work on my desktop with the 2.0.4 version, I would like to work with the current version on my raspi too.The point of my advice is to have a proper install first!.
In the internet (wiki etc.) you can find some descriptions, most of them are pretty old, and you will have some problems. So for me, to have a new and stable Lazarus version in the /usr directory is the way, I described in the tutorial above. Especially for beginners the installation should be easy.
For the Intel- and AMD- PC, nobody demands such a complicated installation. You have the deb- or rpm- packages for it.
But the best would be, if we had packages for raspian to install Lazarus.
The raspberry pi users would be glad to have an easy way to install Lazarus. I'm sure we'll find a lot of new lazarus-users with it.
Where are the people who can make these packages?
i use the best tool for installing 😊 fpcupdeluxe. so it is meaningless if i use windows, a linux on a pc or raspi. and i can handle more than one install or crosscpmpilers.Unfortunately it does not explain the swap size! nor does it work without a swap size >= 1 GB
....
I would recommend, though, to install just fpc 3.0.4, then check out lazarus fixes and do make all install. After lazarus is compiled start lazarus, add/remove the packages you want (like OPM and the two anchordocking) .
Subsequent re-compiles can be done with make clean all useride. Note you need to create a swap file with size 1024MB for this to work.
Fatal: (10022) Can't find unit system used by fcllaz
How to solve it to work without sudo?Don't run install.sh with sudo (as root).
However, it seems (http://www.raspberryconnect.com/raspbian-packages/29-raspbian-devel) that Buster now includes fpc 304, no need for the bootstrap compiler. So I think the best approach is to use Buster's fpc and then install and build Lazarus in the user's home directory (as you note).True. My next step would indeed be to use FPC 3.0.4 from the repositories. I haven't got around to that yet.
But because I also want the trunk version of FPC itself as end-result, I would only want to download FPC 3.0.4 with apt-get download and unpack the compiler and use that. In that case there are no lingering FPC files from an older version.
Yeah, I saw (with a dry-run) a whole lot of packages being installed too.But because I also want the trunk version of FPC itself as end-result, I would only want to download FPC 3.0.4 with apt-get download and unpack the compiler and use that. In that case there are no lingering FPC files from an older version.Ah, thats why you manually install the dependencies rather than let apt do it. Makes sense !
Very interesting.Yeah, I saw (with a dry-run) a whole lot of packages being installed too.But because I also want the trunk version of FPC itself as end-result, I would only want to download FPC 3.0.4 with apt-get download and unpack the compiler and use that. In that case there are no lingering FPC files from an older version.Ah, thats why you manually install the dependencies rather than let apt do it. Makes sense !
Just doing this gave me an ppcarm compiler (FPC) which should also just work fine as bootstrap compiler without all the other junk (I hope, didnt test yet).
Hi, this thread is an very good example, how a discussion shouldn't work.
With one thank you post, and about 20 posts missing the topic.
@rvk, why an installation of Lazarus as root is an absolutely no go? If you have more then one user, an installation in the home space is not very useful. For installing a program you almost do it as root.Every time you install a package, you rebuild lazarus. And the 'copy' of lazarus you are talking about is in a read only part of your hard disk. Hmm, how is that possible ? Because, behind the scenes, lazarus realises you are trying to do something a bit odd, it cleverly deflects all your rebuild and puts it in a hidden copy below your home dir. So, from very first rebuild, you are no longer using that copy you have installed in /usr. This is done to help people who install from binaries such as debs or rpms. Unnecessary complication and a total waste of diskspace if you are building your own however.
Why no lazarus-stable-deb package of the current version (like the deb- and rpm-packages for Intel/AMD) exists for the raspbian OS?
It would be very helpful for the beginners. And it would bring a lot of new users.
It's imho not a question to take to Debian or Raspian, the reason you already mentioned:Why no lazarus-stable-deb package of the current version (like the deb- and rpm-packages for Intel/AMD) exists for the raspbian OS?
Please see http://www.raspberryconnect.com/raspbian-packages/29-raspbian-devel
There you will that there are (Buster) debs for fpc304 and Lazarus200. So, if you are happy with the limitations of using them, why not just use them ?
[...]
Its impossible for any timed release disro to have all the uptodate versions of all packages. Anyway, thats a question you should take to Debian or Raspian, not here.
I see it the same as Linkat, for a non-experienced user the best way would be up-to-date fpc/Lazarus packages provided from official side, i.e. on lazarus-ide.org. And even for experienced users this could mean a smoother/quicker installation.Hi kupferstecher, we'll have to disagree there. As I said in above very long winded post, in my opinion by far the best Lazarus install for most users is to build from source in user's home directory. Its not much harder than a binary install and is much more usable. Its only four commands !
By the way, the fpc binaries are available, but not the Lazarus ones: https://freepascal.org/download.htmlThats not a deb install you realise ? Right now we are lucky, Buster has current fpc in its repo and just needs one (su) command to install. Why do anything else ?
Yes, I actually checked that before writing the last post.By the way, the fpc binaries are available, but not the Lazarus ones: https://freepascal.org/download.htmlThats not a deb install you realise ?
Right now we are lucky, Buster has current fpc in its repo and just needs one (su) command to install. Why do anything else ?The thing is, one normally wants to have the same version on the raspberry as on the desktop. Especially for cross compilation this is important, to prevent trouble opening the project on the raspberry while usually using the desktop. The up-to-dateness of 2.0.0 is ok right now, but there were a long time very old versions.
Hi kupferstecher, we'll have to disagree there. As I said in above very long winded post, in my opinion by far the best Lazarus install for most users is to build from source in user's home directory. Its not much harder than a binary install and is much more usable. Its only four commands !The fact that such tutorials like in this thread even exist, shows that some people struggle with the installation (that includes me). As far as I know there isn't even a official instruction on how to do the installation. I use pfcupdeluxe and it works. But sometimes there are strange errors and it's imho not the right tool for beginners, the install options are too various.
Neat ttomas, do you use zram to provide swap (zswap like) or use it to make extra ram ?Yes i use zram for swap. Pi 3 with 1gb ram cant build lazarus. Regular swap on sdcard is slooow. I watch the video of compiling qt5 36min with swap vs 7 min with zram swap and try the same with lazarus. Time difference is same.
Davo
The thing is, one normally wants to have the same version on the raspberry as on the desktop.I wonder if I have not been very clear here ? My recommendation is that you use fpc3.0.4 one way or another. And the Current Lazarus. So, the same on all platforms. Only way to do that is build from source.
....As far as I know there isn't even a official instruction on how to do the installation.https://wiki.freepascal.org/Installing_Lazarus_on_Linux
What is the problem in providing packages? Probably the additional efforts, but perhaps someone is willing to support here.As you say, "someone to do it" - Lazarus and FPC are driven by volunteers. People do things they are fired up about, don't do the things that don't interest them personally. Its open source, you do something, someone else is free to criticize or build on it.
Hi, this thread is an very good example, how a discussion shouldn't work.I have to disagree.
With one thank you post, and about 20 posts missing the topic.
But this was exactly the reason writing the tutorial.After the discussion, the tutorial, wiki or blog article would be welcome.
You can find a lot of old descriptions or installation scripts, which are no more up-to-date and have all these different problems.
@Mi-Ki, if you did use the tutorial, you could find the sudo before ./install.shStandard package installation is neither a show stopper nor the only solution for everybody.
@rvk, why an installation of Lazarus as root is an absolutely no go? If you have more then one user, an installation in the home space is not very useful. For installing a program you almost do it as root.
Back to topic.Lack of Debian developers to do the job. It's as simple as that:
Again the question to the experts:
Why no lazarus-stable-deb package of the current version (like the deb- and rpm-packages for Intel/AMD) exists for the raspbian OS?
The problem here is bigger than you think: man power lacking on many open source projects.
-------------------
Is Debian Dying?
Off the Beat: Bruce Byfield's Blog
Feb 11, 2011 GMT
Bruce Byfield
http://www.linux-magazine.com/Online/Blogs/Off-the-Beat-Bruce-Byfield-s-Blog/Is-Debian-Dying
-------------------
Open source developers are getting old, retiring and dying, and not being replaced as fast as that...
And a last piece of information: of course, Debian won't be dying any time soon.
It would be very helpful for the beginners. And it would bring a lot of new users.Now, I think nothing would bring those many new users (programmers). Time has proved that.
The package way is IMHO not designed for an selfcompiling project like fpc and lazarus. The deb are normaly fire and forget.Correct.
But Lazarus must be able to make a selfcompiling.Others IDEs usually have another implementation for plugins and addons that does not require rebuilding the IDE itself.
And this ist not a optimal way for programs residing in /usr.According to LFH (Linux Filesystem Hierarchy), the best place for solutions such as Lazarus would be /opt:
Under Windows you have nearly the same issue if you have a well configured system with a normal user, but normally you work under a elevated user.Correct.
This is working like root under Linux. And root have no problems with recompiling.Correct.
+1What is the problem in providing packages? Probably the additional efforts, but perhaps someone is willing to support here.As you say, "someone to do it" - Lazarus and FPC are driven by volunteers. People do things they are fired up about, don't do the things that don't interest them personally. Its open source, you do something, someone else is free to criticize or build on it.
So, why don't you, as a RasPi user build a binary deb ? Put it on your own website initially and tell the forum. If its well received, maybe someone will ask you to supply such ready made debs 'officially'. Who knows ?
David
The package way is IMHO not designed for an selfcompiling project like fpc and lazarus. The deb are normaly fire and forget. But Lazarus must be able to make a selfcompiling. And this ist not a optimal way for programs residing in /usr. Under Windows you have nearly the same issue if you have a well configured system with a normal user, but normally you work under a elevated user.I normally use Lazarus under Windows, using the binaries from lazarus-ide.org and installed with the install wizard in a "non windows" directory. Rebuilds are no problem and no admin rights needed. In the PC-Linux installation (only for testing), I used the debian packages. As far as I remember there were also no issues with package installations/rebuilds. But I don't know what is happening under the hood.
From the wiki:Quote....As far as I know there isn't even a official instruction on how to do the installation.https://wiki.freepascal.org/Installing_Lazarus_on_Linux
It does not mention RaspberryPi, however it sounds like all thats different is you have to deal with the Pi's lower than typical memory. I have never installed fpc/Lazarus on a Pi so until I am sure, I'd not add that to the wiki. Be great is someone esle did. Thats how "official instructions" work here.
+1What is the problem in providing packages? Probably the additional efforts, but perhaps someone is willing to support here.As you say, "someone to do it" - Lazarus and FPC are driven by volunteers. People do things they are fired up about, don't do the things that don't interest them personally. Its open source, you do something, someone else is free to criticize or build on it.
So, why don't you, as a RasPi user build a binary deb ? Put it on your own website initially and tell the forum. If its well received, maybe someone will ask you to supply such ready made debs 'officially'. Who knows ?
David
And this ist not a optimal way for programs residing in /usr.Quote from: valdir.marcos 28.08.19 4:58
the best place for solutions such as Lazarus would be /opt:
I wrote this on the wiki: https://wiki.freepascal.org
(https://wiki.freepascal.org/Build_current_FPC_and_Lazarus_for_Raspbian)
...Even if Ubuntu also has current FPC/Lazarus packages I still prefer the ones provided at https://lazarus-ide.og (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.+1
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)
Is there an easy way like apt-get install lazarus 2.010 for Stretch?What do you think the answer to that question would be after you've read this: https://endoflife.software/operating-systems/linux/debian
So shouldn't an apt-get install Lazarus be able to install the latest version or will it just not run on Stretch?apt-get isn't obligated to install anything at all.
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.1. download FreePascal 3.2.0 arm executable archive (https://sourceforge.net/projects/freepascal/files/Linux/3.2.0/fpc-3.2.0.arm-linux.tar/download), extract and install that into your homedir (or any other appropriate directory that you are comfortable with).
Your link for end of life just supports why Microsoft is still the predominant OS.Strange, as I have exactly the opposite experience. The continues (unstoppable and breaking) updates from latest Microsoft disaster named windows 10 was reason for me to drop the OS completely. It is undo-able to maintain properly unless you are willing to waste too much time on it.
I'm really not interested in rebuilding a number of different Pi and Beaglebone systems every 2 years.That is exactly why I maintain it myself, as I have also no interest in doing so. You had to do that anyways as official repo is lagging behind since the day it was released (very annoying to get confronted with faulty packages and/or packages that are outdated sometimes for over a decade).
I'd really hoped that Lazarus would be that bridge between operating systems. As long as it's this difficult to set up or upgrade Python will continue to be that clumsy language of choice.I don't really see what is so difficult to setup in comparison to windows (XP!). There you are running an executable in order to install. For Linux you could replace that with a simple batch script, which then performs the steps as described. potato/patato :)
Time for me to go have a Scotch since here it's 12:30AM. Since you said Thee I'm assuming you are in The Netherlands.Cheers !!
Quick question too. Does this scrip only work with Pi2,P3 since it may have been written before Pi4. Am I wasting my time trying to update Lazarus on a Pi4 with 1 GB memoryMy script should work on RPI4 too. But I'm not sure what version you have. I've made some changes during the years.
cat << 'EOF' >> $HOME/.fpc.cfg
Edit: No, we need the substitution for find there.So much easier and reliable to click on an 'install' button.;D
But I do agree. WIN-10 is Microsoft trying to be like Apple. I still think WIN-7 is where they should have stopped. Spent their time on making the OS more efficient. Faster. Capable of running on old hardware and not just something with 233 cores. (a joke).WIN7 was Indeed a nice refreshment and should have been enough. But I am not a marketing genius... seems like the rest of the world is enjoying WIN10 so it must work for them *cough* (hot tea ;) )
I wonder if this is a Pi4 issue?Did you remove that EOF part for .foc.cfg?
cat /home/pi/.fpc.cfg
1. The last script rvk posted works well as long as it's captured and pasted without leading spaces.Argh... Yes. There should be no leading spaces. I think the browser you used, inserted them during copy. Chrome does it correctly. This is since the code-tags also have advanced formatting (unlike before).
2. The ICON installed on the desktop is the usual piece of crap that tells me it's a script and asks if I want to edit or run it. I want to run it. Always. Never figured out how to fix that. It also restarts the config dialog each time rather than directly to Lazarus. Perhaps because of the fppkg issue.?I'm not sure I had that too? I can't test it right now because I don't have a spare PI.
3. The identical Lazarus program compiled by 2.0.8 or 2.0.10 on WIN-XP, WIN-7, WIN-10 also compiles with 2.1.0 on the Pi4. However the size of fonts and spacing of components on the form is incorrect. Both development environments are using 1080 screens.Isn't the font-size taken from the desktop-font? Look at the size of the font of the form. If it's 0 it will take a default. I think the font-size on the RPI desktop is larger than it should be. So you should take different font-size into consideration OR specify exactly what font-size you want.
With respect to point 3, one shouldn't have to re-edit all the forms so there's perhaps some Lazarus defaults that are different on the Windows 32/64 bit targets. Line ends are also handled slightly differently but that's to be expected given CRLF for Windows and LF for Linux.
Mind if I suggest another, quite different approach ?
I have just had a quick play with building my tomboy-ng on a Pi. I installed FPC from a tar then downloaded Lazarus source and built just lazbuild and lcl. That way, i could build an existing project quite easily, from the command line (as computer are meant to be used) without building Lazarus the IDE at all.
Davo
.....I was not suggesting you build a command line app, my suggestion was that you can build any app (GUI or otherwise) from the command line and so avoid having to build Lazarus. If you already have the code for your app, or are developing it on a bigger machine, its a way to get it built on the raspberry pi. I might be wrong but developing any sort of substantial app on the raspberry Pi might be a bit tedious.
Your suggestion might work. However, I did my share of command line stuff on PDP-10s and Unix. I detest (with a passion) doing anything from the command line. There wouldn't be a need for Delphi or Lazarus if we were back in the 70's with punch cards writing ALOGOL-W programs on IBM-370s. (Been there, done that). So although the socketCAN (https://github.com/linux-can/can-utils) library is useful at the command line for dumping and sending CAN messages it's not really all that useful at the command line.
....
Downloading Lazarus sourcesYikes. Looks like the Lazarus sources are not completely downloaded. I had this too last week. With a second try the error went away.
svn: E120106: ra_serf: The server sent a truncated HTTP response body.
==============================================================
Running on: Raspberry Pi 3 Model B Rev 1.2
==============================================================
Updating package list to latest version (sudo needed)
==============================================================
Installing required packages (sudo used)
Compiling for ARMv7 Processor (Pi2 and Pi3 only)
Downloading package fp-compiler-3.0.4
Get:1 http://mirror.serverius.net/raspbian/raspbian buster/main armhf fp-compiler-3.0.4 armhf 3.0.4+dfsg-22+rpi1 [1,789 kB]
Fetched 1,789 kB in 1s (1,600 kB/s)
==============================================================
Downloading FPC sources
Now: Last Changed Rev: 45793
Downloading Lazarus sources
svn: E120108: Error running context: The server unexpectedly closed the connection.
Download of fpc failed. Aborting.
Don't even know where to start looking next.If other ways do not work for you, then you can take a look at fpcupdeluxe:
If other ways do not work for you, then you can take a look at fpcupdeluxe:
https://wiki.lazarus.freepascal.org/fpcupdeluxe
It can be used to install any imaginable Lazarus+FPC combo (official, fixes, trunks...) native on Pi, or for easy install of cross compiler targeting Pi.
I hope I have not made things worse.Not worse actually. All these suggestions have led me to the fpcupdeluxe which is pretty neat. At the moment on the Pi3 I'm editing using Lazarus 2.0.10 which is the same version as the Windows one. And it's almost working on the Beagle except I think that when I started the program and install sequence I made a rather dumb mistake. I think I was using a root terminal. So the whole thing installed as root with root permissions. Now trying the generic project (with 2.0.10 BTW) I run into write permissions for saving files and compiling etc. So not quite working but it's the thought that counts ;)
Davo
I do not have a Win7 anymore. If I have one available will try to test. Might be interesting.
About installing.
You followed the right path. Always start by using the official installers for FPC and Lazarus. These should work, if maintained properly.
For special things like easy crossing or testing trunk or multi-installs or as a last resort or just for fun, you could use fpcupdeluxe.
I finally bit the bullet and bought an HP ZBook with WIN-10Good decision. Win10 is very good. And now install VirtualBox !! :D
Do we just use the fpcupdeluxe-arm-linux link or what needs to be done to install this on a pi (or BBB)?It will work, but it's much better to use fpcupdeluxe-armv6hf-linux on 32bit OS and fpcupdeluxe-aarch64-linux on 64bit OS.
It's poor little single core is usage bar is pinned at 100%. May take some time...If I remember well, since last few years you need around 2GB RAM for Lazarus compilation of big IDE with lots of additional components. When lacking physical RAM - swap helped but sloooweed down a loooooot.
It's poor little single core is usage bar is pinned at 100%. May take some time...If I remember well, since last few years you need around 2GB RAM for Lazarus compilation of big IDE with lots of additional components. When lacking physical RAM - swap helped but sloooweed down a loooooot.
This is an interesting article.QuoteI finally bit the bullet and bought an HP ZBook with WIN-10
The thesis poses an interesting programmer starting point: "cafetaria" programming.
For me, 100% true when I was a student and even today !
Long time ago, I started with 1 second mainframe Pascal compiling and executing time per month. That was all we could afford as a student.
What processor for Pi3 and which one for Beagle?Rpi 3-4 have an ARMV8. Beagle has ARMV7. For Lazarus you may choose aarch64 to compile for ARMV8.
I definitely would like to advice you to look more closely into cross-compiling.
Anyway, cross compiling and testing via USB to CAN dongle can be done on both systems and in fact I'm doing that on the PC. Just so much faster. But once I start using the Pi HAT with MCP2515 for CAN or the internal CAN on the BBB I'm screwed. Pretty well have to debug on site.Well, most of the time you don't have to debug on site if you change your architecture a bit. Here is one example: having a fleet of Balena enabled ARM boards connected to CAN 2.0B via CAN shield and using SocketCAN, with WiFi or 4G shields for communication. CAN messages go through custom J1939 filter and then they are forwarded to a custom TCP/IP server. That TCP/IP server can be on ARM board it self, or on your PC - having the same or different logic just for debugging. On such setup GDB remote debugging also works, and WireShark SocketCAN and J1939 disectors can also be used when needed. Either on board, or on development pc after tunneling and forwarding SocketCAN messages. Alternative for CAN<>ETH interfacing can be usage of socketcand daemon.
Hi.
How to install Lazarus on Raspberry - Raspbian Buster?
sudo apt-get install fpc
sudo apt-get install lazarus
That's not good.
Do not install packaging
sudo apt-get install fpc
sudo apt-get install lazarus
Do not install packaging
Hey all,
Has anyone come around and suggested using fpcupdeluxe (https://github.com/LongDirtyAnimAlf/fpcupdeluxe)?
I know I've been beating this dead horse quite a lot lately, but MAN does it solve ALL the issues in AT LEAST 2 button clicks :)
And YES, button clicks, since it's a GUI app and not a command line app :P
Cheers,
Gus
EDIT: Jezzz I'm blind as a friggin bat: fpcupdeluxe (https://github.com/LongDirtyAnimAlf/fpcupdeluxe) mentioned not two answers above mine!!!
ARGHHHHH, SORRY peeps !!!
and then git clone https://github.com/LongDirtyAnimAlf/fpcupdeluxe.git
[...]
Suggestions?
and then git clone https://github.com/LongDirtyAnimAlf/fpcupdeluxe.git
[...]
Suggestions?
Instead of cloning the source repository, which you would then need to compile, download the proper binary from https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/tag/1.8.2r (https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/tag/1.8.2r) and then just run it.
and then git clone https://github.com/LongDirtyAnimAlf/fpcupdeluxe.git
And that brings me back to a question I posted on the LinuxCNC group that as yet has not been answered when I posted the above link in the question. For LinuxCNC running Debian which version do I download. It was easy for the Pi or the Beagle. The LinuxCNC is running on a PC with AMD 64 and so I downloaded this one.
fpcupdeluxe-aarch64-linux
But I can't figure out how to execute. I've done the chdmod +x but still it complains it's not the executable format.
The LinuxCNC is running on a PC with AMD 64 and so I downloaded this one.
fpcupdeluxe-aarch64-linux
Hey jcdammeyer,Thank you.
I'm really SORRY, but I just noticed this after re-reding your post for the nth time:The LinuxCNC is running on a PC with AMD 64 and so I downloaded this one.
fpcupdeluxe-aarch64-linux
That's the binary for an ARM 64b running Linux 64b, e.g. RasPi4 with 64b Linux!!! It is NOT, I repeat NOT for a x86_64(amd64 PC) running Linux.
For that you need fpcupdeluxe-x86_64-linux:
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/1.8.2r/fpcupdeluxe-x86_64-linux
Cheers,
Gus
Thank you.
[snip]
Thanks again
Hey John,
You're more than welcome. Glad I could help!!
Hope you can now resume your testing in peace :)
Cheers,
Gus
Got back from shopping and it was all done and installed with an icon on the desktop.
First thing I'll do is make up a short document describing exactly what I did. And since I have a Pi4 kicking around which I don't think has the fpcupdeluxe installed yet I'll verify the procedure in a simple step by step for that too.
So for example on a RasPi 3, RasPi4 on Raspbian:
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/1.8.2r/fpcupdeluxe-arm-linux
For RasPi4 on a 64b Linux:
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/1.8.2r/fpcupdeluxe-aarch64-linux
Hey John,
AAAHHHH nevermind, I'll just repeat it :)QuoteSo for example on a RasPi 3, RasPi4 on Raspbian:
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/1.8.2r/fpcupdeluxe-arm-linux
For RasPi4 on a 64b Linux:
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/1.8.2r/fpcupdeluxe-aarch64-linux
The usual make it executable applies and off you go to the races :)
Cheers,
Gus
sudo apt install make binutils build-essential gdb subversion zip unzip libx11-dev libgtk2.0-dev libgdk-pixbuf2.0-dev libcairo2-dev libpango1.0-dev
But what about this from the web site?Code: [Select]sudo apt install make binutils build-essential gdb subversion zip unzip libx11-dev libgtk2.0-dev libgdk-pixbuf2.0-dev libcairo2-dev libpango1.0-dev
Isn't it required too for debugging or is that all automatically also done by the install and run of fpcupdeluxe?
(If fpcupdeluxe has a problem, it is that it makes things too easy. You don't get to find out whats needed to build an app and you then don't know what to do if you need to do something a bit different, or are working on a system thats a bit different. Pretty soon, Alf will be the only person in our community that knows how to do these things :) I used fpcupdeluxe to install a Pico setup and it worked perfectly, but I don't know what it did.)I saw that PICO button on the bottom of the form. A friend offered me the PICO. I just sent him a screen shot since I've been trying to get him to move over to Lazarus from Delphi. Likely won't happen for his work-work but since he has a PICO it might just give him a shove.
Davo
Hey John,
AAAHHHH nevermind, I'll just repeat it :)QuoteSo for example on a RasPi 3, RasPi4 on Raspbian:
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/1.8.2r/fpcupdeluxe-arm-linux
For RasPi4 on a 64b Linux:
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/1.8.2r/fpcupdeluxe-aarch64-linux
The usual make it executable applies and off you go to the races :)
Cheers,
Gus
But what about this from the web site?Code: [Select]sudo apt install make binutils build-essential gdb subversion zip unzip libx11-dev libgtk2.0-dev libgdk-pixbuf2.0-dev libcairo2-dev libpango1.0-dev
Isn't it required too for debugging or is that all automatically also done by the install and run of fpcupdeluxe?
John
[ 52%] Compiled package utils-json2pas
The installer encountered the following error:
External command "/home/pi/fpcupdeluxe/fpc/bin/arm-linux/pyacc h2pas/h2pas.y h2pas/h2pas.pas" failed with exit code 256. Console output:
TP Yacc Version 4.1a [April 2000], Copyright (c) 1990-2000 Albert Graef
FATAL: cannot open file /usr/lib/fpc/lexyacc/yyparse.cod
make[1]: *** [Makefile:2632: utils_all] Error 2
make: *** [Makefile:2837: build-stamp.arm-linux] Error 2
fpcupdeluxe: ERROR: FPCNativeInstaller (BuildModuleCustom: FPC): Error running /usr/bin/make for FPC failed with exit code 512
. Details:
ERROR: Fpcupdeluxe fatal error !
Sequencer (FPC): Failure running fpcupdeluxe: error executing sequence FPC
Sequencer (DefaultSimple): Failure running fpcupdeluxe: error executing sequence DefaultSimple
Can I use theNo. Your uname output shows that your are using a 32bit OS (armv7l).
fpcupdeluxe-aarch64-linux
FATAL: cannot open file /usr/lib/fpc/lexyacc/yyparse.codThis is an error that I have been hunting for a long time. Lots of tricks are used by fpcupdeluxe to prevent this error. But sometimes to no avail. Best extra trick: run fpcupdeluxe again. It should run as expected the second time.
QuoteFATAL: cannot open file /usr/lib/fpc/lexyacc/yyparse.codThis is an error that I have been hunting for a long time. Lots of tricks are used by fpcupdeluxe to prevent this error. But sometimes to no avail. Best extra trick: run fpcupdeluxe again. It should run as expected the second time.