Recent

Author Topic: Clean installation of Lazarus on Ubuntu 18.04 with cross compiling for Win32  (Read 640 times)

eddy16391

  • New member
  • *
  • Posts: 8
Hi everyone,
as the title suggests, I installed Lazarus on Ubuntu 18.04 and everything works correctly. Now I would need to compile a project for win32 but I can not enable cross compilig. I need a guide that explains step by step the components to download and how to configure Lazarus.
Thank you.

Handoko

  • Hero Member
  • *****
  • Posts: 2766
  • My goal: build my own game engine using Lazarus
Hello eddy16391,
Welcome to the forum.

Try this:
https://forum.lazarus.freepascal.org/index.php/topic,31343.msg206555.html#msg206555

Or this:
https://github.com/cpicanco/stimulus_control/blob/master/docs/compiling/cross_compiling.md

Note:
You have to replace the text 3.0.0 or 3.0.4 with the version of your FPC.

eddy16391

  • New member
  • *
  • Posts: 8
Ok, I did it.
But now? How can I compile a working project for win32? If I click on build Lazarus builds just the executable for Ubuntu.

Handoko

  • Hero Member
  • *****
  • Posts: 2766
  • My goal: build my own game engine using Lazarus
Lazarus main menu > Project > Project Options > Compiler Options > Config and Target:
- Set Target OS (-T) to Win32
- Set Target CPU family (-P) to i386

jshah

  • Full Member
  • ***
  • Posts: 138
Find Attached screen shot of my configuration

After that you need to select

Run -> Compile Many Mode

eddy16391

  • New member
  • *
  • Posts: 8
Ok, it works.
Thank you very much!

Handoko

  • Hero Member
  • *****
  • Posts: 2766
  • My goal: build my own game engine using Lazarus
You're welcome.

Lazarus is an awesome tool to develop applications. The more you explore it, the more you will love it.

If you're new to Lazarus, I recommend you these reading materials:
http://wiki.lazarus.freepascal.org/Lazarus_Tutorial
http://wiki.freepascal.org/New_IDE_features_since

If you're coming from Delphi, these should be useful:
http://wiki.lazarus.freepascal.org/index.php/Lazarus_Documentation#Coming_from_Delphi
http://wiki.lazarus.freepascal.org/Lazarus_For_Delphi_Users#The_first_thing_to_do_when_converting_a_Delphi_project_to_Lazarus

List of tutorials with wide range of topics (graphics, database, printer, web, etc):
http://wiki.freepascal.org/Lazarus_Documentation#Lazarus.2FFPC_.28Free_Pascal.29
http://wiki.freepascal.org/Category:Tutorials

Have fun!