Recent

Author Topic: LazReport Install Errors  (Read 20815 times)

Guest MATavares

  • Guest
LazReport Install Errors
« on: September 14, 2005, 09:57:01 pm »
Hi people,

I´m novice in FPC and Lazarus and I´m trying install Lazreport in a Windows XP machine but I´m receiving error messages in LR_Class.pas compilations. The erros are above:

Line 6757
Incompatible type for arg no. 1. Got "AnsiString", expected "TComponent"

Line 6806
Identifier idents no member "CreateClean"

Line 6806
Syntax error. ";" expected but "(" found.


Thanks

jesusr

  • Sr. Member
  • ****
  • Posts: 470
RE: LazReport Install Errors
« Reply #1 on: September 15, 2005, 05:52:24 am »
You will need at least fpc 2.0.0 to compile lazreport.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: LazReport Install Errors
« Reply #2 on: September 15, 2005, 09:43:18 am »
If you are using fpc 2.0.1 or fpc 2.1.1 you need to have a recent (after Tue Aug 23 04:29:40 2005 UTC) version of LazReport.

Anonymous

  • Guest
LazReport Install Errors
« Reply #3 on: October 06, 2005, 04:21:49 pm »
Hi people again!


Thanks!!!

Anonymous

  • Guest
LazReport Install Errors
« Reply #4 on: October 10, 2005, 05:04:57 pm »
Hi there !

I've tried to install the latest available Lazreport from lazreport.sourceforge.net, but I've got the same compile problems like Guest MATavares has. You said that I should use "after Tue Aug 23 04:29:40 2005 UTC) version of LazReport" but I can't find it :( From where can I download it ?

Zoltán

Anonymous

  • Guest
LazReport Install Errors
« Reply #5 on: October 14, 2005, 12:55:57 pm »
Hi!

I'm trying Lazarus-0.9.10-20051002-win32.exe, and I'm trying to install lazreport-20050605.tar.gz, latest available packages on sourceforge. I'm getting the same error, so tell us please where can we get that "after Tue Aug 23 04:29:40 2005 UTC) version of LazReport".

Thanks in advance.

jctaborda

  • New Member
  • *
  • Posts: 21
LazReport Install Errors
« Reply #6 on: October 14, 2005, 01:13:03 pm »
Hi, i think that you should follow the instructions given in the cvs link in the bottom left of lazreport home page to get the latest cvs
Hospital Nacional de Clínicas
Universidad Nacional de Córdoba
www.unc.edu.ar

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
LazReport Install Errors
« Reply #7 on: October 14, 2005, 02:14:14 pm »
If there is no LazReport release after that date, the only way you can get is from cvs. See here for more info.

grimjaw

  • Guest
LazReport Install Errors
« Reply #8 on: October 27, 2005, 05:28:04 pm »
LazReports depends on an older FPC version of xmlcfg.pas that uses different parameters for the constructor and also depends on a CreateClean constructor that is no longer defined.  This is true even for the CVS version.  Until LazReports is updated to use the new version of xmlcfg.pas, it may be possible to use laz_xmlcfg.pas in the \components\codetools subdirectory, but this may break other xml code based on the newer version.

Anonymous

  • Guest
RE: LazReport Install Errors
« Reply #9 on: October 27, 2005, 08:18:13 pm »
Can you give the error message you get with fpc 2.0.1? I thought I fixed that issue and sent the patch to Jesus Reyes, who committed it to LazReports CVS version.

So please, give error message and line number, so I can check again.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: RE: LazReport Install Errors
« Reply #10 on: October 27, 2005, 08:22:09 pm »
Quote from: "Vincent"
Can you give the error message you get with fpc 2.0.1? I thought I fixed that issue and sent the patch to Jesus Reyes, who committed it to LazReports CVS version.

So please, give error message and line number, so I can check again.

Got logged out.  :(

Anonymous

  • Guest
RE: Re: RE: LazReport Install Errors
« Reply #11 on: October 28, 2005, 02:07:53 pm »
LR_Class.pas line 6757

XML := TXMLConfig.Create(FName);

error: "Incompatable type for arg no. 1: Got "AnsiString", expected "TComponent""

As noted previously, xmlcfg.pas defines TXMLConfig.Create with a TComponent parameter now.

LR_Class.pas line 6806

XML := TXMLConfig.CreateClean(FName);

error: "identifier idents no member "CreateClean""

xmlcfg.pas no longer has a member function "CreateClean"

Using Lazarus 0.9.10 Beta and Lazreport 06/05/05 from cvs.  Uses whatever version of fpc that is included w/ the Laz 0.9.10 win32 installation.  I assume that is fpc 2.0.1 but there is no obvious version information with the installed fpc.

Thanks,
Grimjaw

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: RE: Re: RE: LazReport Install Errors
« Reply #12 on: October 28, 2005, 02:17:04 pm »
Quote from: "Anonymous"

Using Lazarus 0.9.10 Beta and Lazreport 06/05/05 from cvs.


Lazreport on 06/05/05 could not contain the changes needed for fpc 2.0.1, because those changes were not yet made.

By CVS, I mean you can't use the provided tar.gz, but have to use a cvs client to get cvs version. Details can be found here.

It must include these changes:
http://cvs.sourceforge.net/viewcvs.py/lazreport/lazreport/source/lr_class.pas?r1=1.39&r2=1.40

Anonymous

  • Guest
RE: Re: RE: Re: RE: LazReport Install Errors
« Reply #13 on: October 28, 2005, 04:21:08 pm »
Thanks for the diff info.  I should have just said Lazreport 6/5/05.  Do you know how the author of Lazreport prefers to recieve bug reports and change requests?  The Lazreport page does not list any forums, contact me info, etc.

Thanks,
Grimjaw

jesusr

  • Sr. Member
  • ****
  • Posts: 470
Re: RE: Re: RE: Re: RE: LazReport Install Errors
« Reply #14 on: October 31, 2005, 10:23:28 pm »
Quote from: "Anonymous"
Thanks for the diff info.  I should have just said Lazreport 6/5/05.  Do you know how the author of Lazreport prefers to recieve bug reports and change requests?  The Lazreport page does not list any forums, contact me info, etc.

Thanks,
Grimjaw


Please use the lazarus bug tracking system, when submiting bugs for lazreport, please select project "packages" (the combobox at the top of the package" then in the field Assign To, choose "Jesus", I will take those bug reports.