Installing FastReport 4 for Lazarus

2013-07-01

Not so long ago we have added support of Lazarus IDE for FastReport 4 VCL (starts from Pro version, because Lazarus updates recently and require source codes for recompilation).

As it's still in the beta stage there is no any detailed instruction about its installation, yet. This basic article will explain how to install Fast Report 4 under lazarus and issues you may have.

First of all you need a FastReport 4 VCL (Pro version or above. Or you can try our trial version compiled under Lazarus 1.0.8) installation (you can use source only installation) and Lazarus IDE (with FPC) installed. After we have FastReport 4 VCL installed we can compile its packages using Lazarus.

Lets start from Win32 compilation:

Run Lazarus IDE (under win32 FastReport works with standard widgets set you don't need to do any additional recompilation).

In Lazarus IDE follow "Packages" -> "Open package (*.lpk)".

Installing packages 

Now you need to locate and install FastScript package (fs_lazarus.lpk) firts. If you use default paths when installed FastReport 4 VCL, then it will be located in "C:\Program Files\FastReports\FastReport 4\FastScript".

Here I should notice that our installation works with admin privileges and after installation you should check "Fast Report 4" folder and allow write access for current user or you may not be able to compile it.

Open fs_lazarus.lpk  package and select "Use" -> "Install". Lazarus should rebuild itself and add FastScript package.

Componet pallate 

After installed Fast Script package you can locate and install FastReport 4 package (fr4_lazarus.lpk). If you use default paths when installed FastReport 4 VCL, then it will be located in "C:\Program Files\FastReports\FastReport 4\Source".  

Open fr4_lazarus.lpk  package and select "Use" -> "Install". Lazarus should rebuild itself and add Fast Script package.

Note: After recompilation on this stage lazarus may not load and ask for zlib1.dll. This happens because FastReport 4 uses Zlib library. To fix this issue you need to download Zlib1.dll and place it where Lazarus.exe located.

Now you can use FastReport 4 under lazarus almost Identical to VCL version.

Designer 

Installing under linux: 

Installing FastReport 4 for Lazarus under linux(make sure you have at least 4.14.3 version for proper compilation) almost the same as for windows. First you need to copy "Fast Report 4\Source" and  "Fast Report 4\Fast Script"  directories to your linux system.

The next step willl be recompilation of the lazarus with Qt library (by default it uses gtk), because at this moment FastReport 4 works only under Qt. Run Lazarus IDE in menu "Tools" -> "Configure Lazarus build..." and select "LCL widget type" -> "Qt". Press build (you should install Qt system package first. It depends on OS you're using).

Laz Widgets 

 Lazarus about

After recompilation Lazarus ready to install FastReport packages.  In Lazarus IDE folow "Packages" -> "Open package (*.lpk)". Locate and install FastScript package (fs_lazarus.lpk)  and  FastReport 4 package (fr4_lazarus.lpk).

Now you can use Fast Report 4 under linux !

Fast Report 4 linux 

This produc is still in beta stage, so some functional may not work. At this moment there are no any export filter, but we're planning to add them later. Also TfrxMemoView.Font.Charset should be always in DEFAULT_CHARSET, there are no charset implementation yet. 

VCL Lazarus FastReport Linux
April 24, 2025

How to Open and Convert an FP3 File Using the FastConverter .FP3

We are talking about the MP3 format, which is used for ready-made reports in business applications, and the ability to convert such files to various formats using my Reports Converter.
April 22, 2025

Working with the TfrShellTreeView Component in FastReport VCL

In this article, we will look at the TfrShellTreeView component. It is designed to display file system elements and is partially analogous to the TDirectoryListBox, TDirectoryOutline, and TShellTreeView components.
April 22, 2025

Working with XML and JSON Formats in FastScript

In this article, we will take a closer look at how to work with JSON and XML in FastReport, see what properties and methods they have, and build reports from code with scripts.
Fast Reports
  • 800-985-8986 (English, US)
  • +31 97 01025-8466 (English, EU)
  • +49 30 56837-3928 (German, DE)
  • +55 19 98147-8148 (Portuguese, BR)
  • info@fast-report.com
  • 66 Canal Center Plaza, Ste 505, Alexandria, VA 22314

© 1998-2025 Fast Reports Inc.