Author Topic: [solved] How to get Lazarus to compile other o/s within same base o/s  (Read 5121 times)


  • Jr. Member
  • **
  • Posts: 70
Hi there is so much discussion on this, but seems no definitive answer.
For example, I am writing code for Linux 386/GTK2 but also want to be able to compile for win32/386 using the same Linux Mint Lazarus. After all,its claimed we can compile multi platform, but I have yet to see any clear faq on how to do this eg:,8514.0.html
Is confusing and could detrimentally effect a stable install if done incorrectly.
The obvious choice is to have separate installations on each o/s and work from there, but the claims seem to state that you can compile multi-platform easily.

If someone who has done this eg can stay on the same platform and set compile options for other platforms please advise in simple laymans terms how to do this would solve a lot of others questions. I have downloaded the source for win32 but there is no clear way I can install this without having severe doubts about damaging my own usable GTK2 compiler.

For example if you can compile both Win32 and GTK2 within Linux, and advise how you set the librarys and paths up, and how you then set the compile options within the IDE to achieve this state would be very helpful for others.

Thanks kindly for answer below,
« Last Edit: March 04, 2011, 01:40:58 am by Algeorge »
Lazarus r22277 FPC 2.4.0 i386-linux-gtk 2 (beta)
       My pledge - if I waste your time, I donate to Lazarus.


  • Sr. Member
  • ****
  • Posts: 449
  • Lazarus is the best
    • My blog
Re: How to get Lazarus to compile other o/s within same base o/s
« Reply #1 on: March 03, 2011, 08:50:57 am »
Try to look at the wiki here:

It's all about using crossbinutils to cross-compile from one platform to other ones easily.

Note: your second option would be to install Lazarus through wine, but it would be the easy solution ^^
I'm using Arch Linux.
Known for: CPickSniff, OpenGrabby
Contributed to: LazPaint