[Lazarus] Does Lazarus v0.9.31 compile with the latest FPC snapshot?

Joshua Lim joshua__lim at hotmail.com
Thu Jul 21 20:16:01 CEST 2011


Hi, using the steps below, I managed to compile the latest FPC snapshot 
source - i didn't use SVN, just download the zip file.  However, after 
updating the paths in Environment Options, i tried to rebuild Lazarus 
v0.9.31 using the FPC binaries i just compiled, but got the following 
errors.  I tried researching on that error, but no luck.  Grateful for 
any pointer.  Thanks.

"Clean Lazarus Source" completed
D:\data\Lazarus-0.9.31-fpc-2.4.3-win32\lcl\utf8process.pp(76,28) 
Warning: Symbol "ApplicationName" is deprecated
D:\data\Lazarus-0.9.31-fpc-2.4.3-win32\lcl\utf8process.pp(83,24) 
Warning: Symbol "CommandLine" is deprecated
D:\data\Lazarus-0.9.31-fpc-2.4.3-win32\lcl\graphics.pp(525,15) Warning: 
An inherited method is hidden by "TFont.SetOrientation(LongInt);"
D:\data\Lazarus-0.9.31-fpc-2.4.3-win32\lcl\xmlpropstorage.pas(25,20) 
Warning: Unit "XMLCfg" is deprecated
D:\data\Lazarus-0.9.31-fpc-2.4.3-win32\lcl\xmlpropstorage.pas(78,27) 
Warning: Symbol "TXMLConfig" is deprecated
D:\data\Lazarus-0.9.31-fpc-2.4.3-win32\lcl\xmlpropstorage.pas(284,25) 
Warning: Symbol "TXMLConfig" is deprecated
D:\data\Lazarus-0.9.31-fpc-2.4.3-win32\lcl\interfaces\win32\win32int.pp(27,26) 
Warning: User defined: Fix implicit pointer conversions
D:\data\Lazarus-0.9.31-fpc-2.4.3-win32\lcl\interfaces\win32\win32proc.pp(934,2) 
Note: User defined: Belongs in Win32WSForms, but is needed in windowproc
"LCL" completed
"Package Registration" completed
D:\data\Lazarus-0.9.31-fpc-2.4.3-win32\ideintf\propedits.pp(1762,5) 
Error: Expected another 1 array elements
D:\data\Lazarus-0.9.31-fpc-2.4.3-win32\ideintf\propedits.pp(6597) Fatal: 
There were 1 errors compiling module, stopping


Steps used to complile FPC snapshot:

1. Copy the files inside \fpc to C:\FPC\.  The subfolders packages, rtl, 
etc should also be copied.

2. Copy \bin\i386-win32\ from already installed FPC to c:\FPC\.

3.  Add path to \bin\i386-win32\ to system variable path e.g. path = 
C:\FPC\bin\i386-win32
This setting can be found under control panel -> System -> Advanced 
System Settings -> Advanced -? Environment Variables -> System 
Variables.  Make sure this path is before borland's make path.  Restart PC.

4. CD to c:\FPC, issue:- make all OPT='-va' > c:\buildlog.log.

5. Then issue:- make install INSTALL_PREFIX=c:\FPC\compiled\

6. Copy everything in C:\FPC\compiled\ to 
D:\Data\Lazarus-0.9.31-fpc-2.4.3-win32\fpc\2.5 (or 2.x.x, whichever fpc 
version you are installing).

7. Copy C:\FPC\rtl\ and C:\FPC\packages\ to 
D:\Data\Lazarus-0.9.31-fpc-2.4.3-win32\fpc\2.5\source (or 2.x.x, 
whichever fpc version you are installing).

8. Copy fpc.cfg from \fpc\bin\i386-win32 of your old Lazarus FPC folder 
(e.g. D:\Data\Lazarus-0.9.31-fpc-2.4.3-win32\fpc\2.4.4\bin\i386-win32) 
to D:\Data\Lazarus-0.9.31-fpc-2.4.3-win32\fpc\2.5\bin\i386-win32 (or 
2.x.x, whichever fpc version you are installing).

Modify the paths in fpc.cfg to reflect the new version fpc path.  You 
can use mass search and replacement of fpc\2.4.4/ to fpc\2.5/ (if 
upgrading from 2.4.4 to 2.5).

9. Run Lazarus, go to Environment -> Options, update all FPC path to v2.5
Go to Tools -> Configure "Build Lazarus", select profile "Build All" - 
you may need to remote "Examples".
Check "Clean all" and "With packages".  Proceed with "Build".





More information about the Lazarus mailing list