Forum > Linux

Clean installation of Lazarus on Ubuntu 18.04 with cross compiling for Win32

(1/2) > >>

eddy16391:
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:
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:
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:
Lazarus main menu > Project > Project Options > Compiler Options > Config and Target:
- Set Target OS (-T) to Win32
- Set Target CPU family (-P) to i386

heejit:
Find Attached screen shot of my configuration

After that you need to select

Run -> Compile Many Mode

Navigation

[0] Message Index

[#] Next page

Go to full version