Difference between revisions of "fixlp"

From Lazarus wiki
Jump to navigationJump to search
Line 1: Line 1:
 
==About==
 
==About==
  
Lazarus 2.2.0 has changed default format of .lpi / .lps / .lpk files. XML structure was changed.
+
In Lazarus v2.1 a new structure of the xml files (*.lpi, *.lps, *.lpk) was introduced. It replaces the numbered xml nodes used in older versions by unnumbered nodes.
The [[Lazarus_2.2.0_release_notes#IDE_incompatibilities|detailed description]].
 
So files in new format cannot be opened from Lazarus older than 2.2.0.
 
  
Users of old Lazarus versions can convert the file format by means of the '''fixlp''' utility.  
+
While Lazarus v2.1 can read both types of file formats and can also convert between them, older versions cannot read the new structure correctly leading to a lot of difficult-to-understand errors when trying to compile.
Source code (in Pascal) of this utility: [https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/applications/fixlp/ SourceForge page].
+
 
 +
'''fixlp''' is a small utility program for Lazarus versions before v2.1 and converts the new Lazarus xml file format to the format used by older versions.
 +
 
 +
Usage:
 +
 
 +
fixlp <filename1> [, <filename2> [, ...]]
 +
 
 +
<filenames> are the names of the Lazarus .lpi, .lps or .lpk files  (with absolute or relative path) to be converted. Wildcards are allowed.
 +
 
 +
==Download==
 +
Source code (in Pascal): [https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/applications/fixlp/ SourceForge page].

Revision as of 11:17, 6 January 2022

About

In Lazarus v2.1 a new structure of the xml files (*.lpi, *.lps, *.lpk) was introduced. It replaces the numbered xml nodes used in older versions by unnumbered nodes.

While Lazarus v2.1 can read both types of file formats and can also convert between them, older versions cannot read the new structure correctly leading to a lot of difficult-to-understand errors when trying to compile.

fixlp is a small utility program for Lazarus versions before v2.1 and converts the new Lazarus xml file format to the format used by older versions.

Usage:

fixlp <filename1> [, <filename2> [, ...]]
 

<filenames> are the names of the Lazarus .lpi, .lps or .lpk files (with absolute or relative path) to be converted. Wildcards are allowed.

Download

Source code (in Pascal): SourceForge page.