post

Ultibo installation

 

 

 

Windows

1. Install from distribution on ultibo.org
2. Next rebuild RTL to latest and greatest version
– download sources
– download from github
– extract in {location}
– Lazarus tools Build Ultibo

Raspberry Pi

The next stepts, including the IDE (Lazarus for Ultibo) work file from the RPi console or over a XRDP or VNC connection.

Use the ultibo installer script, initially and to update to the latest and greatest version of Ultibo on github.

1. Copy the installer script over to the Pi, in the user pi home directory.

wget https://github.com/ultibohub/Tools/releases/download/1.0.5/ultiboinstaller.sh

2. Make the script executable

chmod +X ultiboinstaller.sh

2. Install dependencies (only needed on a fresh system)
Do the next steps in superuser mode. Convenient and otherwise it fails on an XRDP session

sudo su
apt-get update
apt-get upgrade

apt-get install -y libgtk2.0-dev libcairo2-dev libpango1.0-dev libgdk-pixbuf2.0-dev libatk1.0-dev libghc-x11-dev
apt-get install -y libx11-dev libgdk-pixbuf2.0-dev  gir1.2-coglpango-1.0  xorg-dev
apt-get install -y binutils-arm-none-eabi 

3. Increase swapfile

Because the Raspberry Pi only has 1024MB of memory at most, installation on Raspbian requires a swap file size of at least 1000MB, anything less may result in an error while building Lazarus.

nano /etc/dphys-swapfile

Edit the CONF_SWAPSIZE value to be 1000 or greater

sudo /etc/init.d/dphys-swapfile stop
sudo /etc/init.d/dphys-swapfile start
ls -lh /var
exit

And check that the file “swap” is now the size specified above

5. Now run script in user mod, the ‘exit’ in step 3 takes care of that. Takes a while!

6. After completion

Change swap back to 100, see step 3, in superuser mode!

The Lazarus IDE will now show up in Programming on the desktop.

Ultibo, first steps

What is Ultibo?

Raspberry Pi, QEMM, not an OS, not Lazarus visual rapid prototyping

Freepascal,

program running on a computer

Install FPC 3.0.0 on Raspbian, Build Ultibo

By Paul Breneman:

Raspbian Lite is the only OS selected

-When reboots, login (user pi and password raspberry)
– Everytime boot up, hit the   key an extra time (as first prompt is erased)
– Enter the following lines (without bold comment text) in the terminal:

sudo apt-get update
sudo apt-get upgrade
sudo dpkg-reconfigure tzdata 
sudo apt-get install binutils-arm-none-eabi
sudo apt-get install fpc-3.0.0 --fix-missing 
fpc -i | more 
wget http://turbocontrol.com/easyultibo121517.zip
mkdir hello
unzip easyultibo121517.zip -d hello
cd hello
./uin.sh
export PATH=/home/pi/ultibo/core/fpc/bin:$PATH
fpc -i | more 
cd QEMU 
../helloqv.sh
cd ..
cd RPi
../hellob.sh
cd ..
cd RPi2
../hello2b.sh
cd ..
cd RPi3
../hello3b.sh
cd ..

Install Ultibo on Stretch

On a new build of RaspBian 2017-09-07-raspbian-stretch.zip

sudo apt-get install libgtk2.0-dev libcairo2-dev libpango1.0-dev libgdk-pixbuf2.0-dev libatk1.0-dev libghc-x11-dev
sudo apt-get install binutils-arm-none-eabi
sudo apt-get install gcc-arm-none-eabi
dpkg -l | wc
1403 14260 197899
Edit the CONF_SWAPSIZE value to be 1000 or greater
./ultiboinstaller.sh

On Ubutu 16.04
The following 2 cmds
cd ultibo/core
./startlazarus