Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2002-09

Target OS

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Weustink
to Vincent Snijders: Attached is a patch for lazarus. It addresses two things. 1. Setting a OS_TARGET for…
Vincent Snijders wrote 11 lines
Hi, Attached is a patch for lazarus. It addresses two things. 1. Setting a OS_TARGET for building lazarus in the Build Lazarus dialog. 2. Specifying the Target OS in the compiler options dialog. I use both settings to build lazarus and compile test programs for win32 on linux. To do so yourselve you need to have the cross tools installed and win32 RTL / FCL units.

Applied

Marc

Reply by email

Vincent Snijders

Hi,

Attached is a patch for lazarus.

It addresses two things.
1. Setting a OS_TARGET for building lazarus in the Build Lazarus dialog.
2. Specifying the Target OS in the compiler options dialog.

I use both settings to build lazarus and compile test programs for win32 on linux. To do so yourselve you need to have the cross tools installed and win32 RTL / FCL units.

Regards,
Vincent.

P.S. I sent this message about 12 hours ago as well. Sorry if it shows up twice.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: zip00002.zip
Type: application/octet-stream
Size: 3486 bytes
Desc: "diff.targetOS.zip"
Url : http://localhost/pipermail/lazarus/attachments/20020924/497f3a33/zip00002.obj

Reply by email

Marc Weustink
to Vincent Snijders

+ From: Vincent Snijders
+
+ Hi,
+
+ Attached is a patch for lazarus.
+
+ It addresses two things.
+ 1. Setting a OS_TARGET for building lazarus in the Build Lazarus dialog.
+ 2. Specifying the Target OS in the compiler options dialog. +
+ I use both settings to build lazarus and compile test programs
+ for win32 on
+ linux. To do so yourselve you need to have the cross tools installed and
+ win32 RTL / FCL units.

Thanx, I'll add them.

Marc

Reply by email

Vincent Snijders
to Tony Maro: Sweet! I love it! Gosh I love open-source! **warm fuzzies** What exactly is "cross…
Show quoted text 14 lines
-----Oorspronkelijk bericht----- Van: Tony Maro Onderwerp: Re: [lazarus] Target OS Sweet! I love it! Gosh I love open-source! **warm fuzzies** What exactly is "cross tools" - can you point me in the right direction to get my system prepared for using this? Do I have to build the win32 RTL and FCL units from inside Windows? Have you written a How-To yet? ;-)

I can only discribe the steps I took. It works on my computer (maybe by accident), and you may have less luck.

1. Download the GNU Binary Utility Development Utilities. For example from http://www.hklpg.org/RPM/contrib/libc6/i386/crossmingw32-990111-1.i386.html but I think you get find it at a lot of places.

2. Install the package.

3. Create the following symlinks in /usr/bin:
ln -s /usr/bin/i386-mingw32-as /usr/bin/asw
ln -s /usr/bin/i386-mingw32-ld /usr/bin/ldw
ln -s /usr/bin/i386-mingw32-dlltool /usr/bin/dlltool ln -s /usr/bin/i386-mingw32-windres /usr/bin/windres

4. Download a compatible version (depending on the compiler probably 1.0.7 as of now) of the rtl / fcl units for win32. Install them next to the linux units in /usr/lib/fpc/1.0.x/units.

I think that's all I did to make this work.

As for using it. First you have to build the LCL for windows. Set the target OS in the Build Lazarus Dialog on "win32". It then automaticly changes the widgetset from gtk to win32.

Compiling a program for win32. Open the Compiler Optiosn Dialog. Change the LCL widget type to win32 on the Search paths tab and the Target OS to win32 on the code generation tab.

If you want you can take this text, try out for yourself (after Mark has applied the patches) and make it in a proper howto for the web site.

Regards,
Vincent.

Reply by email

Tony Maro
to Vincent Snijders: Attached is a patch for lazarus. It addresses two things. 1. Setting a OS_TARGET for…

Sweet! I love it!

Gosh I love open-source! **warm fuzzies**

What exactly is "cross tools" - can you point me in the right direction to get my system prepared for using this? Do I have to build the win32 RTL and FCL units from inside Windows? Have you written a How-To yet? ;-)

Thanks,
Tony

Vincent Snijders wrote 14 lines
Hi, Attached is a patch for lazarus. It addresses two things. 1. Setting a OS_TARGET for building lazarus in the Build Lazarus dialog. 2. Specifying the Target OS in the compiler options dialog. I use both settings to build lazarus and compile test programs for win32 on linux. To do so yourselve you need to have the cross tools installed and win32 RTL / FCL units. Regards, Vincent.

Reply by email