On Thu, Aug 25, 2011 at 4:40 AM, Sven Barth <[email protected]> wrote: > Am 25.08.2011 09:08, schrieb Andreas Schneider: >> >> 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. >> > > One small addition to your solution: > copy C:\FPC\2.4.4\bin\i386-win32\fpc.cfg C:\FPC\2.5.1\bin\i386-win32\ > <Edit the copied fpc.cfg and replace all "2.4.4" with "2.5.1">
I use $fpcversion but thanks anyway. ;-) Marcos Douglas -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
