Ultibo-Lazarus on Ubuntu/Debian

General discussion about anything related to Ultibo.
loboris
Posts: 2
Joined: Wed Nov 02, 2016 7:56 am

Ultibo-Lazarus on Ubuntu/Debian

Postby loboris » Sun Nov 06, 2016 5:26 pm

I've been using Ultibo for some time on Ubuntu 16.04 with Wine, and it works (almost) without any problem.
But I prefer to use native Linux Ultibo-Lazarus, so I've built one using Building for Debian wiki instructions.
If anyone wants to use it, the archive can be downloaded from my server: Ultibo archive (md5)

The build is for 64bit Linux distributions, tested and works on Ubuntu 16.04/16.10 and Debian Jessie

Here are short instructions:
- Install build-essential, gdb and gdb-arm-none-eabi packages if not already installed (some dependencies will also be installed)
- Download the ultibo.tar.xz archive to your home directory.
- Open terminal in your home directory and unpack the archive:

Code: Select all

tar -xf ultibo.tar.gz

- ultibo directory will be created with (almost) the same structure as in Windows, go to it:

Code: Select all

cd ultibo

- run copy_armutils script to copy and rename some arm utility programs to ultibo directory:

Code: Select all

./copy_armutils

- Copy fpc.cfg as .fpc.cfg from ultibo/core/fpc/bin to your home directory (it has to be hidden, don't forget '.' in front)

Code: Select all

cp core/fpc/bin/fpc.cfg ~/.fpc.cfg

- Go to to ultibo/core/ide directory and run startlazarus
- At first run, the compiler won't be detected, so under compiler browse for ultibo/core/fpc/bin/fpc and select it
- Continue to IDE and try some examples

Some notes:
- The Lazarus config files will be placed in the hidden directory .ultibo in your home directory
- The script compile_rtl can be used to rebuild the Ultibo RTL after update
- The files RPI.CFG, RPI2.CFG, RPI2.CFG in ultibo/core/fpc/bin must be in upper case
- You can use different directory for instalation, in that case you have to manualy adjust the paths in RPI.CFG, RPI2.CFG, RPI2.CFG and .fpc.cfg
- You can make entry in your menu or on the desktop for startlazarus
- the Asphyre-ultibo is included
- The installation takes some 1.2GB on you drive, probably most of the directories can be deleted, but as I have lot of free space, and little free time, I didn't bother to do it.

Image
Last edited by loboris on Mon Nov 07, 2016 8:39 am, edited 5 times in total.
User avatar
Ultibo
Site Admin
Posts: 1399
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

Re: Ultibo-Lazarus on Ubuntu/Debian

Postby Ultibo » Mon Nov 07, 2016 1:27 am

Hi,

Great work putting all this together, thanks for making it available. I'm sure it will be very useful to others as well.
Ultibo.org | Make something amazing
https://ultibo.org
Gavinmc42
Posts: 923
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: Ultibo-Lazarus on Ubuntu/Debian

Postby Gavinmc42 » Mon Nov 07, 2016 5:34 am

Works on Mint 18, compiled helloworld

Had trouble installing gdb-arm-non-eabi, not found unless add * to end

Don't forget to build compiler before startlazurus
./build_armcompiler

Much easier than building from scratch ;)

Now just Pi and Android to go :lol:
pik33
Posts: 529
Joined: Fri Sep 30, 2016 6:30 pm
Location: Poland
Contact:

Re: Ultibo-Lazarus on Ubuntu/Debian

Postby pik33 » Mon Nov 07, 2016 7:13 am

Now just Pi and Android to go


I have Ultibo Lazarus installed and running on my Pi3
Now I don't remember all steps in details.

I have installed a standard lazarus/fpc using instructions from here: http://otapi.com/2015/02/10/raspberry-p ... nd-delphi/
Then I downloaded ultibo lazarus and tried to

Code: Select all

make


This didn't work, but then the troubleshooting is described in this topic: viewtopic.php?f=10&t=322
loboris
Posts: 2
Joined: Wed Nov 02, 2016 7:56 am

Re: Ultibo-Lazarus on Ubuntu/Debian

Postby loboris » Mon Nov 07, 2016 8:24 am

Gavinmc42 wrote:....
Had trouble installing gdb-arm-non-eabi, not found unless add * to end
...


Sorry, it is gdb-arm-none-eabi, corrected.
Gavinmc42
Posts: 923
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: Ultibo-Lazarus on Ubuntu/Debian

Postby Gavinmc42 » Mon Nov 07, 2016 8:37 am

Typo's ;) When are we going to get OS's that are smart enough to know we are dyslexic keyboard users?

Slowly getting there, now enough members( nearing 100) that know how stuff works.
I'm impressed with everyone's efforts in the last month or so.

Boss has left over budget, Samsung S2 with Android 6? Hmm wonder what I can use it for ;)
Gavinmc42
Posts: 923
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: Ultibo-Lazarus on Ubuntu/Debian

Postby Gavinmc42 » Sat Nov 12, 2016 12:10 am

Interesting ;)

Installed a fpc complier-- sudo apt-get install fpc
Downloaded the ultibo tar and followed instructions.

A bunch of errors but it did make startlazarus etc.
This did not work, as it probably compiled for x86.
But a good sign that Ultibo can be built on a Pi.
It was quite quick too.

Not sure how Linux packages work, make a .deb?
Gavinmc42
Posts: 923
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: Ultibo-Lazarus on Ubuntu/Debian

Postby Gavinmc42 » Tue Nov 22, 2016 2:59 am

Found this
http://www.getlazarus.org/apps/makedeb/

Never made a debian package, could be used to make Laz 1.6/FPC 3.1.1 and Ultibo deb?
After it all works of course.

How to get the deb into mainstream Raspbian?

Return to “Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests