[fpc-pascal] FPC 64bit for windows

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Mon May 15 18:18:16 CEST 2017


On 2017-05-15 16:57, James Richters wrote:
> I'm not quite following your batch file.  I have no 'src' directory,
> where is that supposed to be?

If you want the FPC 3.0.2 version, then download the official source 
archive for the 3.0.2 release from FPC's SourceForge page.


> Here is where I am at: I have just downloaded your repo at
> https://github.com/graemeg/freepascal  and I have it saved at

That repo only tracks the Trunk (unstable) branch. So if you want the 
source code of a stable release, download the archive from SourceForge.

> 'J:\Programming\FreePascal'   Is there a better place to download the
> x86 64bit source?

I normally order my directories as follows:

   c:\FPC
        \2.6.4\
           \src
           \i386-win32
              \bin
              \lib
              \share
           \x86_64-win64
              \bin
              \lib
              \share
        \3.0.2\
           \src
           \i386-win32
              \bin
              \lib
              \share
           \x86_64-win64
              \bin
              \lib
              \share

So a source archive will be unpacked in the correct "src" directory. 
This setup also allows me to have a single global fpc.cfg file for all 
FPC versions. The paths in that fpc.cfg file uses FPC's macros to expand 
to the correct versions.

My Linux and FreeBSD systems have a similar layout.


> What directory do I put 'go.bat'

It will go in the c:\fpc\<version>\ directory.  But it doesn't really 
matter, as long as you adjust the paths inside the patch file to match 
your environment.


  Where am I setting Install_prefix?
> Is that where I put the source code or where I want the compiled
> version to go?

That's where the new compiled version will go. So if you use FPC 2.6.4 
to build a new 3.0.0 compiler, then the install prefix will translate to 
the path:  c:\fpc\3.0.0\x86_64-win64\


Regards,
   Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp



More information about the fpc-pascal mailing list