64 to 32 lazarus / 34-Windows ---------------------------------------------------------------------- Trunkles · 2012-07-01 23:36 I dare say this has been asked before but... I'm running the 64 bit version of Windows 7. I want the applications to work in the other versions of Windows (XP, Vista, etc). I tried one or two o the project options (TargetOS and the like) but they generate errors about a variety of .ppu files that don't exist. That leads me to wonder if I'm making an even larger pig's ear of things than usual so... How do I compile and link for 32 bit Windows when I'm building on a 64 bit version? Thanks. Simon. ---------------------------------------------------------------------- Leledumbo · 2012-07-02 04:01 You know this has been asked many times, so why not dig in to those questions? Also, have you read the wiki article about cross compiling? The basic flow is the same: If target architecture is different from host architecture, you need to build the cross compiler (which is true in your case: 64 -> 32)If the compiler doesn't have yet internal assembler and/or linker for the target, you'll need binutils for it (not needed in your case, win32 target has internal assembler and linker)After that, you'll need to build the units & packages (RTL, FCL, LCL plus all 3rd party packages that you use) for the target architecture-OS pair (e.g. i386-win32, your host is x86_64-win64)Only if the above succeeds you'll be able to cross compile your application. Win32 should be easy though. ---------------------------------------------------------------------- marcov · 2012-07-02 07:11 Since the default Windows install is 32-bit (even on 64-bit windows) he has to do exactly nothing. It will just work. ---------------------------------------------------------------------- joseme · 2012-07-02 11:54 My 5 cents: the easiest way to build Lazarus in 32-64 is to install CodeTyphon. I am using it since version 2.10 and never had a trouble.