Forum > PDAs and Smartphones
Raspberry pi lazarus compile problem
croc:
It looks like the raspberry pi install again the newest one after the command sudo apt-get install fpc 2.6.2.
is there way to resolve this to install only the 2.6.2 version ?
croc:
Oke Paul.
I will wait than till it will be finished the install version 2.6.4 again.
Is it possible you have a image with the lazarus install the 1.2.4 version on raspberry pi for me ??
So I can already create some apps on it, till somebody will resolve this problem.
croc:
I see that I have some error in the package graph.
When I build IDE with: tools -> configure "build Lazarus".... ->
LCL widget type = gtk (deprecated,
Target OS: = Linux,
Target CPU: arm
and only Clean up on = Automatically
and than build I get the following error:
Brokken dependency: One or more required packages were not found. See package graph for detials.
I get Package graph. see attachement
croc:
I have a working version now
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fpc
sudo apt-get install fpc-source
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install lazarus
don't forget to install sudo apt-get install fpc-source otherwise lazarus will complain source is missing.
# apt-get install subversion
# svn export http://svn.freepascal.org/svn/lazarus/trunk/components/leakview/leakview.lpk --revision 47172
# mv leakview.lpk /usr/lib/lazarus/1.2.4/components/leakview/
# svn export http://svn.freepascal.org/svn/lazarus/trunk/components/leakview/dbginforeader.pas --revision 47172
# mv dbginforeader.pas /usr/lib/lazarus/1.2.4/components/leakview/
Now Lazarus should work, but the IDE may complain about a broken ide/version.inc
In this case, just look at the title bar and edit /usr/lib/lazarus/1.2.4/ide/version.inc (I edited mine from '1.2.4+dfsg-1' to '1.2.4+dfsg-1+b1')
Restart Lazarus and everything should work!
The Raspberry Pi doesn't have enough memory to recompile the whole IDE, so you need to add a swap
Take an empty USB memory (at least 1GB) and insert it in the Raspberry Pi
$ df
Find which /dev it is (for me it was /dev/sda1)
WARNING: THIS WILL DELETE EVERY FILE ON YOUR USB MEMORY
$ sudo umount /dev/sda1
$ sudo mkswap /dev/sda1
$ sudo swapon /dev/sda1
Now you have a good amount of swap memory; you can check it with
$ cat /proc/swaps
Now start the IDE with root permissions
$ gksudo lazarus-ide
Uninstall package tachartfpvectorial 1.0 in lazarus when you see the IDE
for me this resolve the problem.
I still have package errors after uninstall when I try to rebuild the IDE maybe somebody can help me with this??
Till now this is better than nothing
croc:
If you have enough space on your sd-card you can also use the space that is on the sd-card.
instead to add the usb stick sda1 you can also do this.
sudo nano /etc/dphys-swapfile
change the value
CONF_SWAPSIZE=100 to CONF_SWAPSIZE=1024
the following steps is needed
sudo swapoff -a
sudo dphys-swapfile setup
sudo dphys-swapfile swapon
sudo swapon -a
you can check with sudo top command and next to KiB Swap: you will see the total swap space.
Navigation
[0] Message Index
[*] Previous page