Recent

Author Topic: Installing PowerPDF or LazReport  (Read 17735 times)

laz_newbie

  • Newbie
  • Posts: 3
Installing PowerPDF or LazReport
« on: May 28, 2009, 09:21:49 pm »
OS: Win32
Laz Ver: 0.9.26.2
Installed from exe install version.

I have been trying to install PowerPDF using the following steps:
I downloaded the tar.gz and opened .lpk file.
Clicked on Install and got the following error

C:\softwares\lazarus\fpc\2.2.2\bin\i386-win32\make.exe: Entering directory `C:/softwares/lazarus'
C:/softwares/lazarus/fpc/2.2.2/bin/i386-win32/make.exe -C ide ide
make.exe[1]: Entering directory `C:/softwares/lazarus/ide'
../tools/svn2revisioninc.exe .. revision.inc
C:/softwares/lazarus/fpc/2.2.2/bin/i386-win32/make.exe --assume-new=lazarus.pp lazarus.exe OPT=' -WG @C:\DOCUME~1\XXXXXXlocal\Local Settings\Application Data\lazarus\idemake.cfg'
make.exe[2]: Entering directory `C:/softwares/lazarus/ide'
C:/softwares/lazarus/fpc/2.2.2/bin/i386-win32/fpc.exe -gl -dlclwin32 -Fu../lcl/units/i386-win32 -Fu../lcl/units/i386-win32/win32 -Fu../components/codetools/units/i386-win32 -Fu../components/synedit/units/i386-win32 -Fu../components/custom -Fu../components/mpaslex -Fu../ideintf/units/i386-win32 -Fu../designer -Fu../designer/jitform/units/i386-win32 -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/units/i386-win32 -Fu../units/i386-win32 -Fuframes -Fu. -Fiinclude -Fiinclude/win32 -Fi../images -FE.. -FU../units/i386-win32 -WG @C:\DOCUME~1\XXXXXXlocal\Local Settings\Application Data\lazarus\idemake.cfg -di386 lazarus.pp
Fatal: Unable to open file C:\DOCUME~1\XXXXXXlocal\Local

Then I changed my temp path thinking it could be the Win style folder names.
I changed temp to c:\temp and copied my lazarus folder from the %USERPROFILES%\local settings\temp folder to c:\temp folder and ran

lazbuild.exe --build-ide=@c:\temp\lazarus\idemake.cfg --pcp=c:\temp -B

Now I get the error

C:/softwares/lazarus/fpc/2.2.2/bin/i386-win32/fpc.exe -gl -Fu. -Fuforms -Fuwidgetset -Fiinclude -FE. -FUunits/i386-win32 @c:\temp\lazarus\idemake.cfg -di386 alllclunits.pp
Error: nested response files are not supported TExternalToolList.Run Exception: Error: nested response files are not supported
ERROR: tool reported error

PLEASE HELP!!!!!!!!!!!!!!!
« Last Edit: May 28, 2009, 09:31:19 pm by laz_newbie »

laz_newbie

  • Newbie
  • Posts: 3
Re: Installing PowerPDF or LazReport
« Reply #1 on: May 28, 2009, 11:00:14 pm »
I downgraded to ver 0.9.26 and still cant compile these 2 packages. Getting the same error over and over.

Please help. Any pointers would be most appreciated.

clauslack

  • Sr. Member
  • ****
  • Posts: 275
Re: Installing PowerPDF or LazReport
« Reply #2 on: June 03, 2009, 01:54:36 am »
Well
I install LazReport and PowerPDF without problem
With PowerPDF
Download powerpdf_20081006.tar.gz
Extract.
In open packages -> open pack_powerpdf.lpk
Compile
Install
Rebuid Lazarus
an ready, it's works.

I tested this in
Lazarus 0.9.27 svn 20212 (2009-05-26) fpc 2.2.4
Windows XP SP3

Maybe not work well in Lazarus 0.9.26.
**
Requirements for PowerPdf
-------------------------
The PowerPDF components have been tested under Free Pascal 2.3.1 (r11838) and Lazarus 0.9.27 (r16875).
**
Try install the Lazarus snapshot 0.9.27 with fpc 2.2.4
Regards

jesusr

  • Sr. Member
  • ****
  • Posts: 470
Re: Installing PowerPDF or LazReport
« Reply #3 on: June 03, 2009, 08:04:44 am »
btw, using the pdf lazreport addon in lazarus svn version (or at least since lazarus r19831) requires the latest PowerPDF version 0.9.1, the PowerPDF package available in Lazarus CCR site has been upgraded to the latest svn version and is available to download from https://sourceforge.net/projects/lazarus-ccr/

laz_newbie, try to get the IDE to recompile itself successful first, go to tools->Configure "build Lazarus" -> advanced build options, check that all options are marked Clean+Build except by "Examples" that should be marked "None", note that for this to work you should have started lazarus using "startlazarus --pcp=<directory of lazarus configuration>" in case that you have changed config dir. After Lazarus have been recompiled, restart the IDE and try to install PowerPDF by Opening the lpk file, then compile and then install.

laz_newbie

  • Newbie
  • Posts: 3
Re: Installing PowerPDF or LazReport
« Reply #4 on: June 05, 2009, 06:33:39 am »
Clauslack you would have to give me more directions. I cudnt find laz 0.9.27 or fpc 2.2.4
-----------------------------
First of all thanks Jesusr. My Laz 0.9.26.2 just compiled successfully.
I downloaded PowerPDF 0.9.1. Clicked compile and it finished successfully. Trouble started after I clicked install; it compiled everything and started linking to lazarus.new.exe then gave the error:
Error: Import library not found for libz

Here is the error report:

C:\softwares\lazarus\fpc\2.2.2\bin\i386-win32\make.exe: Entering directory `C:/softwares/lazarus'
C:/softwares/lazarus/fpc/2.2.2/bin/i386-win32/make.exe -C ide ide
make.exe[1]: Entering directory `C:/softwares/lazarus/ide'
../tools/svn2revisioninc.exe .. revision.inc
C:/softwares/lazarus/fpc/2.2.2/bin/i386-win32/make.exe --assume-new=lazarus.pp lazarus.exe OPT=' -WG @C:\softwares\lazarus\components\idemake.cfg'
make.exe[2]: Entering directory `C:/softwares/lazarus/ide'
C:/softwares/lazarus/fpc/2.2.2/bin/i386-win32/fpc.exe -gl -dlclwin32 -Fu../lcl/units/i386-win32 -Fu../lcl/units/i386-win32/win32 -Fu../components/codetools/units/i386-win32 -Fu../components/synedit/units/i386-win32 -Fu../components/custom -Fu../components/mpaslex -Fu../ideintf/units/i386-win32 -Fu../designer -Fu../designer/jitform/units/i386-win32 -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/units/i386-win32 -Fu../units/i386-win32 -Fuframes -Fu. -Fiinclude -Fiinclude/win32 -Fi../images -FE.. -FU../units/i386-win32 -WG @C:\softwares\lazarus\components\idemake.cfg -di386 lazarus.pp
Free Pascal Compiler version 2.2.2 [2009/03/13] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Win32 for i386
Compiling lazarus.pp
Compiling resource lazarus.rc
Compiling resource ..\units\i386-win32\fpc-res.res
Linking C:\softwares\lazarus\lazarus.new.exe
C:\softwares\lazarus\ide\lazarus.pp(122,1) Error: Import library not found for libz
C:\softwares\lazarus\ide\lazarus.pp(122,1) Fatal: There were 1 errors compiling module, stopping

clauslack

  • Sr. Member
  • ****
  • Posts: 275
Re: Installing PowerPDF or LazReport
« Reply #5 on: June 05, 2009, 04:12:56 pm »
Lazarus Snapshots
http://www.hu.freepascal.org/lazarus/

try with
Lazarus-0.9.27-20414-fpc-2.2.4-20090605-win32.exe

Regards

jesusr

  • Sr. Member
  • ****
  • Posts: 470
Re: Installing PowerPDF or LazReport
« Reply #6 on: June 07, 2009, 06:19:09 am »
Clauslack you would have to give me more directions. I cudnt find laz 0.9.27 or fpc 2.2.4
-----------------------------
First of all thanks Jesusr. My Laz 0.9.26.2 just compiled successfully.
I downloaded PowerPDF 0.9.1. Clicked compile and it finished successfully. Trouble started after I clicked install; it compiled everything and started linking to lazarus.new.exe then gave the error:
Error: Import library not found for libz

Here is the error report:

Ok, it seems there is a problem in how is this handled in fpc 2.2.2, according to this report http://bugs.freepascal.org/view.php?id=12760 it's fixed in fpc 2.2.3 which includes also 2.2.4 and 2.3.1. anyway, as you are almost there and if you are not upgraded as clauslack advised, try opening pack_powerpdf package and open pdftypes.pas file, locate the line where zlib is being used and replace it with paszlib. Recompile powerpdf package and try again, if you confirm that this fixes the problem, I will update the powerpdf package.

JeanHenri79

  • Newbie
  • Posts: 1
Re: Installing PowerPDF or LazReport
« Reply #7 on: July 16, 2009, 02:28:00 pm »
Ok I have the same problem. I just replace zlib with paszlib and it works !
Thanks to Jesusr

Ruler

  • New member
  • *
  • Posts: 7
Re: Installing PowerPDF or LazReport
« Reply #8 on: August 31, 2009, 08:21:01 pm »
I just wanted to say that I had this exact same problem - zlib library could not be found.  I updated the pdftypes.pas file as suggested by jesusr, replacing Zlib with paszlib.  Everything compiled and installed fine after that.  (I've uninstalled and reinstalled about 20 times so far trying to get it to work with the stable 26.2 build... thank you very much for posting the solution.)

Ruler

  • New member
  • *
  • Posts: 7
Re: Installing PowerPDF or LazReport
« Reply #9 on: August 31, 2009, 11:18:04 pm »
FYI, I wrote a console app that uses PdfDoc and when I try to compile, receive three of the following errors:

Code: [Select]
C:\lazarus\components\powerpdf\PdfTypes.pas(1003,5) Error: Illegal type conversion: "ShortString" to "^Char"

Happens on line 1003, 1006, and 1099.  I'm downloading the snapshot of Lazarus, even though I don't like using beta software for work apps, and will report if the problem persists in that version.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Installing PowerPDF or LazReport
« Reply #10 on: September 01, 2009, 09:27:22 am »
It seems that pdftypes is using shortstrings instead of ansistrings. You may add {$H+} at the top of the unit, or compile with -Sh. I don't know the package well enough to know what is the best solution.

Second thought: did you use the package for powerpdf or just include its unit path? The package includes -MDelphi for compilation.