On Thu, Aug 25, 2011 at 4:08 AM, Andreas Schneider <[email protected]> wrote: > At Wednesday, 24.08.2011 on 15:06 Marcos Douglas wrote: >> >> So, what is the best way to use Win 32 and 64-bit, in my case? >> > > I would suggest: don't go the most complicated route ever ;-) > It's really dead simple to get cross compilation with Windows as target to > run. In your case I would suggest the lowest common denominator: the 32bit > compiler. So build from/for 32bit and add the 64bit cross compiler there: > > I assume the official FPC 2.4.4 release for 32bit to be installed under > C:\FPC\2.4.4. > > set PATH=C:\FPC\2.4.4\bin\i386-win32;%PATH% > cd C:\FPC\2.5.1 > svn co http://svn.freepascal.org/svn/fpc/trunk src > cd src > make install INSTALL_PREFIX=C:\FPC\2.5.1 > make crossinstall INSTALL_PREFIX=C:\FPC\2.5.1 OS_TARGET=win64 > CPU_TARGET=x86_64 > make clean > > > Done. Now you set the compiler (in Lazarus) to > C:\FPC\2.5.1\bin\i386-win32\fpc.exe and switch the target architecture/OS in > the project options depending on your needs - the 32bit fpc.exe will then > either invoke the 32bit ppcx86.exe to compile for 32bit, or the 32bit > ppccrossx86_86.exe to compile for 64bit. >
Well, I thought that cross-compile would add complexity, but I will try. But and Lazarus? It still continue 32-bit, right? What about the LCL, I do not have compile Lazarus for create the ppu for 64-bit and to create the x86_64-win64 directories? Marcos Douglas -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
