feverish
Posts: 486
Joined: Wed Jun 27, 2012 2:29 pm

build and install latest Lazarus

Thu Feb 07, 2013 2:57 pm

The Lazarus version available via apt-get install lazarus has effectively stopped working by virtue of various lazarus units having been changed by the Lazarus foundation folks so that the old ones are no longer callable, at least from the present installation. A much later version of Lazarus is available, with new units, and is installed here on a windows Intel PC. Unless anyone knows it is unrealistic for this linux and ARM beginner to aspire to the task of remedying this awful state of affairs for poor Raspberry Pi, if some kind person would point me to suitable HOWTO documents, or instructions, especially if they would answer the inevitable juvenile questions that could follow, I'd be happy to try, take notes, and report back. I have done quite a few internet searches, and have not managed so far to come up with what seems may be needed.
If discrimination is not challenged then we are effectively in collusion with the perpetrators of such behaviour:-Oxford dictionaries

feverish
Posts: 486
Joined: Wed Jun 27, 2012 2:29 pm

Re: build and install latest Lazarus

Thu Feb 07, 2013 10:53 pm

I wonder if I was (almost) on the right track? This is what I did:
sudo apt-get install subversion
svn co http://svn.freepascal.org/svn/lazarus/trunk Lazarus
svn up Lazarus
cd Lazarus
make clean all FPMAKEOPT="-T 8"
This resulted in tons of activity on my Raspi ans I later saw a new directory: /home/pi/Lazarus had been created.
This revealed itself after the compiler complained of a shortage of memory and stopped. My SD cards are 32GB each! with plenty of unused space. Then I looked at some of the files in /Lazarus and saw repeated references to i386, which made me suspect I had downloaded the wrong files. So what should my command-line have been instead, please?
If discrimination is not challenged then we are effectively in collusion with the perpetrators of such behaviour:-Oxford dictionaries

User avatar
jackokring
Posts: 816
Joined: Tue Jul 31, 2012 8:27 am
Location: London, UK
Contact: ICQ

Re: build and install latest Lazarus

Thu Feb 07, 2013 11:01 pm

The problem with lazarus is it is quite a big system, and CAN make code for the i386 and many other devices. The Pi is possibly too small re-build lazarus. I think the Raspbian repository needs an update and a rebuild. Theoretically, the PC lazarus, should be able to build an armhf lazarus as it is a full cross compiler. I haven't got that far into it yet.
Pi[NFA]=B256R0USB CL4SD8GB Raspbian Stock.
Pi[Work]=A+256 CL4SD8GB Raspbian Stock.
My favourite constant 1.65056745028

feverish
Posts: 486
Joined: Wed Jun 27, 2012 2:29 pm

Re: build and install latest Lazarus

Thu Feb 07, 2013 11:10 pm

Thnks for that insight, I'm away for a week now but will certainly want to follow this up when I get back, unless in the meantime some kind wizard has made it all simpler. :roll:
If discrimination is not challenged then we are effectively in collusion with the perpetrators of such behaviour:-Oxford dictionaries

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: build and install latest Lazarus

Fri Feb 08, 2013 3:55 pm

feverish wrote:This revealed itself after the compiler complained of a shortage of memory and stopped. My SD cards are 32GB each! with plenty of unused space.
Most likely the problem is available RAM, not disk space. I have experienced some problems with free RAM especially with the linker (the final stage of creating Lazarus executable).

FYI: it is most likely you'll have to rebuild Lazarus at some point whatever setup you use, because it uses static linking. If you add for example a design time component you'll have to rebuild Laz. Cross-compiling could be an option...

Gr.
Dirk.

feverish
Posts: 486
Joined: Wed Jun 27, 2012 2:29 pm

Re: build and install latest Lazarus

Sat Feb 16, 2013 7:51 pm

Thank you for the info. Sounds promising. Is there anything I can do about the lack of RAM bit, do you know. ( swap with unused SD capacity, in Windows terms)?
If discrimination is not challenged then we are effectively in collusion with the perpetrators of such behaviour:-Oxford dictionaries

Return to “General discussion”