[Lazarus] One project and many versions of FPC?

2009-09-17 Thread Graeme Geldenhuys
Hi, I came across a message posted by Martin (developer of MSEide). He does exactly what I need to do, but I need to do it with Lazarus IDE. Having one project that must be compiled with various versions of FPC. Simple example is a app being distributed as 32-bit and 64-bit. Then there is also the

Re: [Lazarus] One project and many versions of FPC?

2009-09-17 Thread Mattias Gaertner
On Thu, 17 Sep 2009 14:39:54 +0200 Graeme Geldenhuys wrote: > Hi, > > I came across a message posted by Martin (developer of MSEide). He > does exactly what I need to do, but I need to do it with Lazarus IDE. > Having one project that must be compiled with various versions of > FPC. Simple examp

Re: [Lazarus] One project and many versions of FPC?

2009-09-17 Thread Graeme Geldenhuys
Mattias Gaertner het geskryf: > > The weapons are - the fpc config fpc.cfg - lazarus macros like > $FPCVer, $TargetOS and $TargetCPU - using lazarus command line > parameter --pcp Thanks Mattias, this helps a lot. Where does the command line parameter --pcp play a roll? Different shorcuts on th

Re: [Lazarus] One project and many versions of FPC?

2009-09-17 Thread Graeme Geldenhuys
Mattias Gaertner het geskryf: > The fpc sources should correspond to the compiler. The lazarus option > for the FPC source directory allows macros, especially the macro > $FPCVer which resolves for example to 2.2.5. Put the three sources > under /home/username/pascal/2.5.1/fpc, I tried to use

Re: [Lazarus] One project and many versions of FPC?

2009-09-17 Thread Marco van de Voort
On Thu, Sep 17, 2009 at 03:22:14PM +0200, Mattias Gaertner wrote: > > The standard fpc.cfg is already suitable for multiple FPC versions. It > uses FPC macros. So you can install for example fpc 2.2.4, 2.2.5 > and 2.5.1. You switch between them by switching the compiler > (/usr/lib/fpc/2.5.1/ppc38

Re: [Lazarus] One project and many versions of FPC?

2009-09-17 Thread Graeme Geldenhuys
Marco van de Voort het geskryf: > > Or by fpc -V and -P I fail to see how this helps? Also my FPC doesn't have a -V command line option, only -v for verbose output. And -T is for the target operating system. eg: -Tlinux How does this help if I have Linux, but FPC 2.2.5, 2.3.1 and 2.5.1 installe

Re: [Lazarus] One project and many versions of FPC?

2009-09-17 Thread Marco van de Voort
On Thu, Sep 17, 2009 at 04:26:59PM +0200, Graeme Geldenhuys wrote: > Marco van de Voort het geskryf: > > > > Or by fpc -V and -P > > I fail to see how this helps? Also my FPC doesn't have a -V command line > option, only -v for verbose output. The -V and -P options are nearly as old as the build

Re: [Lazarus] One project and many versions of FPC?

2009-09-17 Thread Graeme Geldenhuys
2009/9/17 Marco van de Voort : > > The -V and -P options are nearly as old as the buildfaq. Any non ancient > version should have them. They should be documented afaik, and are covered > in the buildfaq. All good an well, but the buildfaq is not an available option to download from the freepascal.

Re: [Lazarus] One project and many versions of FPC?

2009-09-17 Thread Graeme Geldenhuys
2009/9/17 Graeme Geldenhuys : > 2009/9/17 Marco van de Voort : >> >> The -V and -P options are nearly as old as the buildfaq. Any non ancient >> version should have them. They should be documented afaik, and are covered >> in the buildfaq. > > All good an well, but the buildfaq is not an available

Re: [Lazarus] One project and many versions of FPC?

2009-09-17 Thread Mattias Gaertner
On Thu, 17 Sep 2009 16:10:01 +0200 Graeme Geldenhuys wrote: > Mattias Gaertner het geskryf: > > The fpc sources should correspond to the compiler. The lazarus > > option for the FPC source directory allows macros, especially the > > macro $FPCVer which resolves for example to 2.2.5. Put the three