New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Releases, updates and announcements from the Ultibo team.
Gavinmc42
Posts: 1595
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby Gavinmc42 » Sat Oct 28, 2017 8:27 am

Well that was time wasted.
FreeBSD for Pi2 is compiled for Armv6, not many packages and posts are Armv6.
Most expect minimum Armv7. The post for FPC 3.0.2 expects x86 or AMD64 :(
Do what Raspbian does and recompile the lot for Armv6?

Fedora27 beta nearly works on the Pi3, it is Aarch64, I think.

For an Ultibo development box -
Smallest is probably PiCore, easiest to maintain due to small size..
Window is quickest to install,
Linux x86 running Wine, easy, quick install.
Linux native
Last is Raspbian, which is second smallest if you use Lite and add Desktop etc
BSD probably?
Aarch64, one day, just not today ;)

An USB stick portable ap would be the most portable, if Windows, Linux, Pi versions are triple installed.
Windows, Linux, Pi, Android OTG version?
Due to FPC's compile speed development on Android could done.
Excuse to get an OTG USB stick :D

Time to re-look at self hosted?
mark
Posts: 1325
Joined: Mon Oct 03, 2016 2:12 am
Location: Indianapolis, US

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby mark » Tue Nov 07, 2017 6:45 am

Ultibo wrote:In response to the ongoing interest in using various Linux distributions as a platform for Ultibo development we've taken a further step beyond the existing wiki instructions and created a universal installer script that can download, build and configure the Ultibo versions of Free Pascal and Lazarus into a working installation.
Super duper support. I just put in my $99 monthly forum support sponsorship for November 2017. Mark.
mark
Posts: 1325
Joined: Mon Oct 03, 2016 2:12 am
Location: Indianapolis, US

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby mark » Wed Nov 08, 2017 3:27 pm

Ultibo wrote:In response to the ongoing interest in using various Linux distributions as a platform for Ultibo development we've taken a further step beyond the existing wiki instructions and created a universal installer script that can download, build and configure the Ultibo versions of Free Pascal and Lazarus into a working installation.
FYI on raspbian when opening an example, there are 164 projects listed including some fcl ones, even after restricting the list to just examples.

More importantly, the list isn't sorted in any perceptible manner.

Mark
blippy
Posts: 28
Joined: Sun Dec 03, 2017 9:43 pm

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby blippy » Tue Dec 05, 2017 6:10 pm

Thanks for the hard work in the installer script. It saves a lot of bother for us mere mortals.

For Slackware 14.2 users out there:

Code: Select all

cd
sudo sbopkg -i arm-binutils
sudo sbopkg -i newlib-headers
sudo sbopkg -i arm-gcc

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

#To start lazarus:
$HOME/ultibo/core/lazarus.sh


Installation was straightforward, albeit you'll need some time to compile.

My gist for the above code: https://gist.github.com/blippy/f0522d91acdddf04c01fea0822ad8b50

I've managed to get a "hello world" image going, and I'm very happy with it.
User avatar
KenD
Posts: 16
Joined: Tue Dec 19, 2017 10:03 pm

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby KenD » Mon Dec 25, 2017 11:09 pm

Arch Linux ARM results

> uname -a
Linux sympatico 3.10.18-24-ARCH #1 SMP Fri Dec 22 23:42:25 UTC 2017 armv7l GNU/Linux

Machine is ACER Chromebook 13 CB5-311

After getting required libraries (Arch Linux uses "pacman" btw, not "apt-get") I did symbolic links for tools.
E.g.:
link -s `which as` arm-none-eabi-as
and so on.

Given the prereqs, the script ran fine and I was able to build and test the "Hello Ultibo" example on my Raspi3. :D

Many thanks for this. I had been unable to install fpc 3.0.0 from GetLazarus.org or FreePascal.org and this install script was very much appreciated!

-KenD
User avatar
KenD
Posts: 16
Joined: Tue Dec 19, 2017 10:03 pm

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby KenD » Wed Dec 27, 2017 9:53 pm

Sorry, newbie question.

I am not sure if this is due to the setup script, hence asked here.

Example 17 Text Editor fails to build.

The diagnostic is "Cannot open include file 'platform.inc'"

I see that the file exists:

/home/kend/ultibo/core/fpc/source/packages/fv/src/platform.inc

How do I clue Lazarus in to the FreeVision unit?

Thanks for the help,
-KenD
mark
Posts: 1325
Joined: Mon Oct 03, 2016 2:12 am
Location: Indianapolis, US

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby mark » Wed Dec 27, 2017 10:48 pm

I think this part of the .lpi will need to be adjusted on linux. Regards, Mark.

Code: Select all

    <SearchPaths>
      <IncludeFiles Value="$(ProjOutDir);$(LazarusDir)fpc\$(FPCVer)\source\packages\fv\src"/>
      <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
    </SearchPaths>
KenD wrote:Sorry, newbie question.

I am not sure if this is due to the setup script, hence asked here.

Example 17 Text Editor fails to build.

The diagnostic is "Cannot open include file 'platform.inc'"

I see that the file exists:

/home/kend/ultibo/core/fpc/source/packages/fv/src/platform.inc

How do I clue Lazarus in to the FreeVision unit?

Thanks for the help,
-KenD
User avatar
KenD
Posts: 16
Joined: Tue Dec 19, 2017 10:03 pm

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby KenD » Thu Dec 28, 2017 10:45 pm

Yes.

The following in "TextEditor.lpi" worked (Arch Linux ARM).

Code: Select all

   <SearchPaths>
      <IncludeFiles Value="$(ProjOutDir);$(LazarusDir)fpc/source/packages/fv/src"/>
      <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
    </SearchPaths>


Thanks a bunch! :D :D :D :lol:

-KenD
Gavinmc42
Posts: 1595
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby Gavinmc42 » Wed Mar 21, 2018 12:47 pm

Now that new Pi3B+'s are here time to see how good Raspbian is as Ultibo dev tools.
Need to increase that swap file but install script worked after I did that.
No anchordocking :(

But it does seem faster compiling examples
Chips feel hot but temp gauge only says 55C, not much different than my PC.
Does the new lanchip have internal temp sensor?

Next is try the USBboot mods for the Zero's.
pik33
Posts: 857
Joined: Fri Sep 30, 2016 6:30 pm
Location: Poland
Contact:

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby pik33 » Wed Mar 21, 2018 12:57 pm

Now that new Pi3B+'s are here time to see how good Raspbian is as Ultibo dev tools.


It is good enough (over 60000 lines compiled in 12 seconds) :)

To make Lazarus building faster and safer, I recommend attaching a portable HD with a swap partition on it. Switch off swap file and add the swap partition to /etc/fstab. The compilation is much faster then and no risk of killing a SD card. I killed 2 of them compiling (standard version of) Lazarus (in earlier versions of Raspbian - now I don't have to)

Return to “Ultibo”

Who is online

Users browsing this forum: No registered users and 1 guest