How to setup lazarus to compile for both intel and PowerPC lazarus / 11-Options ---------------------------------------------------------------------- sinfoni · 2010-07-08 14:36 Hi, I would like to build my project for both Intel and PowerPc platform, then run a script using lipo to build a universal binary file. Possible ? André. ---------------------------------------------------------------------- skalogryz · 2010-07-08 15:38 yes. http://wiki.freepascal.org/Carbon_Interface#Cross- compiling_Intel_to_PowerPC ---------------------------------------------------------------------- sinfoni · 2010-07-08 16:11 Oh thanks, I've already configured all this things. But I mean "at the same time", that is I ask Lazarus tu launch the Build, and lazarus build Intel version, then PowerPC version. Now I have to change compiler option to switch between Intel and PowerPC. But is it possible to configure Lazarus to get the both binaries compiled without having to switch options ? ---------------------------------------------------------------------- skalogryz · 2010-07-08 17:19 Quote from: sinfoni on July 08, 2010, 06:11:37 pmNow I have to change compiler option to switch between Intel and PowerPC. But is it possible to configure Lazarus to get the both binaries compiled without having to switch options ? See project options -> Compiler options -> Compilation the page allows you to configure building scripts or scripts that runs after building is complete. I.e. you can launch a script that builds your project for PowerPC (using lazbuild tool) and do other necessary actions. Code: [Select]lazbuild project.lpi CPU_TARGET=powerpc lipo exe1 exe2 p.s. Mattias has been working on an extension "build modes" or something. I'm not sure if it's currently available and if it's able to handle your task. ---------------------------------------------------------------------- sinfoni · 2010-07-08 19:23 Thanks, I'll try this.