Jump to content
Sign in to follow this  
direktor05

Lazarus build for Linux

Recommended Posts

Hello,

 

Can someone tell me how to set Lazarus to build for Linux? When I try to set up builder is gives some error that that system.ppu for this target (Linux) was not found. Maybe some libraries for Linux are missing? Where to get them? How to set this up properly?

Share this post


Link to post

You have to build FPC for the target first. Here's the excerpt from my own batch file

		CALL make %Make_Opt% clean CPU_TARGET=%TargCPU% OS_TARGET=%TargOS% || (ECHO Command "make clean" for FPC failed... && GOTO :BuildFPCErr)
		CALL make %Make_Opt% crossinstall %FPC_Opt% CPU_TARGET=%TargCPU% OS_TARGET=%TargOS% INSTALL_PREFIX="%FPCPath%" || (ECHO Command "make crossinstall" failed... && GOTO :BuildFPCErr)

then you'll be able to crosscompile apps.

Check ready-to-use script here https://github.com/Fr0sT-Brutal/FPC_Build

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×