Wizzup?
2009-12-10 16:02:53
[ This is unfinished work ]
Linux:
Very quickly and undetailed.
Install FPC 2.2.4 from the package manager repos.
checkout the fpc repos
checkout the lazarus repos
make all @ fpc repos
sudo make install @ fpc repos
make sure the path FPC links to the correct fpc (2.5.1, not 2.2.4):
32bit compiler is ppc386. 64 bit compiler is ppcx64. Replace ppc386 accordingly.
First, check what it links to:
Mine is already up to date. If you installed it for the first time, it will probably link to
Changing this is simple.
Enter a root shell with sudo -s -H
Now, run this again to verify ppc386 links to the correct binary.
Now, run fpc:
And you're done!
** lazarus
make all @ laz repos
Windows:
download fpc 2.4.0, install it.
checkout the fpc source repos.
cd to the fpc source. type
make clean all
make install
This will create C:/pp/.
Now check out the lazarus source, cd to it, and then type
make all PP=C:\pp\path\to\ppc386.exe
You may have to tweak fpc.cfg, but just ask about it when you run into problems.
Linux:
Very quickly and undetailed.
Install FPC 2.2.4 from the package manager repos.
checkout the fpc repos
checkout the lazarus repos
make all @ fpc repos
sudo make install @ fpc repos
make sure the path FPC links to the correct fpc (2.5.1, not 2.2.4):
32bit compiler is ppc386. 64 bit compiler is ppcx64. Replace ppc386 accordingly.
First, check what it links to:
$ ls -l `which ppc386`
lrwxrwxrwx 1 root root 31 2009-11-11 22:48 /usr/bin/ppc386 -> /usr/local/lib/fpc/2.5.1/ppc386
Mine is already up to date. If you installed it for the first time, it will probably link to
$ ls -l `which ppc386`
lrwxrwxrwx 1 root root 31 2009-11-11 22:48 /usr/bin/ppc386 -> /usr/local/lib/fpc/2.2.4/ppc386
Changing this is simple.
Enter a root shell with sudo -s -H
# mv /usr/bin/ppc386 /usr/bin/ppc386old
# ln -s /usr/local/lib/fpc/2.5.1/ppc386 /usr/bin/ppc386
# exit
Now, run this again to verify ppc386 links to the correct binary.
$ ls -l `which ppc386`
lrwxrwxrwx 1 root root 31 2009-11-11 22:48 /usr/bin/ppc386 -> /usr/local/lib/fpc/2.5.1/ppc386
Now, run fpc:
$ fpc -v
Free Pascal Compiler version 2.5.1 [2009/12/05] for i386
Copyright (c) 1993-2009 by Florian Klaempfl
Fatal: No source file name in command line
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
And you're done!
** lazarus
make all @ laz repos
Windows:
download fpc 2.4.0, install it.
checkout the fpc source repos.
cd to the fpc source. type
make clean all
make install
This will create C:/pp/.
Now check out the lazarus source, cd to it, and then type
make all PP=C:\pp\path\to\ppc386.exe
You may have to tweak fpc.cfg, but just ask about it when you run into problems.