Lazarus build from source

General discussion about anything related to Ultibo.
Halted
Posts: 3
Joined: Mon Jun 04, 2018 5:36 am

Lazarus build from source

Postby Halted » Mon Jun 04, 2018 8:18 am

Hi,

first many thanks for this amazing project.

I tried to build Lazarus from source (from ultibo github repo).
I downloaded fpc sources and rtl sources.

When I "make all" I have a fatal error in registerfcl.pas. And indeed some units are missing (ServiceManager ,process)

Do I need other sources than the ones in the git repo ?

Many thanks for your help

Jm
develone
Posts: 271
Joined: Wed Dec 28, 2016 7:40 pm
Location: El Paso Tx USA

Re: Lazarus build from source

Postby develone » Mon Jun 04, 2018 12:02 pm

Hello
On Raspbian & Ubuntu I use
https://github.com/ultibohub/Tools/blob/master/Installer/Core/Linux/ultiboinstaller.sh

I also build a custom image
https://github.com/develone/raspbian-pi-genhttps://github.com/develone/raspbian-pi-gen
. This adds all of the dependencies on the latest packages. This takes about 3hr. on a Ubuntu system.
Then in about 6 min you can have Raspbian with Lazarus IDE (Ultibo Edition). Let me know if you have any questions.
User avatar
Ultibo
Site Admin
Posts: 1930
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

Re: Lazarus build from source

Postby Ultibo » Mon Jun 04, 2018 12:06 pm

Hi, welcome to Ultibo.

Halted wrote:When I "make all" I have a fatal error in registerfcl.pas. And indeed some units are missing (ServiceManager ,process)

We don't include a prebuilt copy of the Win32 RTL and Packages in the installation (just to save some space).

In order to build Lazarus from source you need to build the Win32 RTL and Packages first from a command prompt, like this:

Code: Select all

cd C:\Ultibo\Core\fpc\3.1.1\source

set path=C:\Ultibo\Core\fpc\3.1.1\bin\i386-Win32

make rtl_clean
make rtl
make rtl_install INSTALL_BASEDIR=C:\Ultibo\Core\fpc\3.1.1

make packages_clean
make packages
make packages_install INSTALL_BASEDIR=C:\Ultibo\Core\fpc\3.1.1

Once that is completed you can open a new command prompt and build Lazarus using these steps as per the wiki:

Code: Select all

cd C:\Ultibo\Core
set path=C:\Ultibo\Core\fpc\3.1.1\bin\i386-Win32
make clean all

We don't include the other steps in the instructions because we (somewhat) assume anyone wanting to build from source might have special requirements like starting with a different FPC version etc.
Ultibo.org | Make something amazing
https://ultibo.org
Halted
Posts: 3
Joined: Mon Jun 04, 2018 5:36 am

Re: Lazarus build from source

Postby Halted » Tue Jun 05, 2018 5:06 am

Perfect, worked like a charm.
I wanted to build from source to stay up to date (Pi 3b+ in project menu ...)

Many thanks again

JM

Return to “Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests