Forum > Packages and Libraries

FPReport testing

(1/6) > >>

Mocte:
Hi everyone

Just reporting my first experience with fpreport, I updated FPC + Lazarus trunk on a Windows 7 VM 64 bits using FPCupdeluxe, with the sole purpose of compiling fpreport demo and check how it looks like, I found that it was not posible to compile the lclfpreport package, at first because missing units, the very first error I got was something like: Cannot find fpreport used by cfg...  I double checked the fpreport folder and indeed the file was missing, then I went to fpgui repository on github and pulled that file ( and others missing ) from there, then I got another error: "fpreport - Illegal unit name", I'm not familiar at all with Lazarus yet, I solved it by renaming the unit to fpreport_ but then I had to correct a lot of references to the original name, at the end succeeded on my adventure of compiling lclfpreport, then I proceeded to compile the demo, I had an experience similar to the previous one plus changing some defines and installing freetype on windows but at the end all went fine and I could ran the demo from the command line, I did the same more or less for the IDE packages, played a little bit with the designer, it looks neat :-).

As I stated before I'm not that familiar with packages and Lazarus, I'm sure renaming fpreport file can be avoided  %)

Now, I'm not sure it is safe to mix code from the two repositories, everything compiles and works fine AFAICS but I would prefer to pull all the source from the same place, perhaps it is not available in trunk yet? 

Anyway wonderful work you have done there, I just wanted to have a taste of fpreport and it looks promising, keep up the good work, I'll be looking forward for future commits.

Thank you all.


 

Pascal:
Did you see the README in components/fpreport?

--- Code: Text  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Compiling: - Run-time package:   lclfpreport.lpk- Report Designer windows and functionality:  design/lazfprepordesign.lpk- FPreport component IDE registration and design-time support:   design/lazidefpreport.lpk- Standalone designer:   design/reportdesign.lpr- Demos: demos/fcldemo.lpr Before compiling demos: Copy the contents of the FPC fcl-report/demo directory to the demodirectory. Check the various defines in udapp.pp and demos.inc: EXPORTPDF - enable export to PDFEXPORTFPIMAGE - enable export to imageEXPORTHTML - enable export to html To enable the following defines, check the lcldemo projectEXPORTLCL - enable export to LCL (preview) Running on windows:If EXPORTFPIMAGE is defined, the freetype.dll is needed.
I just did a test on Win10 x64.
Fresh checkout of fpc and lazarus.
Building fpc and lazarus.
After installing the 3 packages, adding the freetype-6.dll to laz and demo directory and rebuilding the ide i could run the sample prog from the ide without any changes.

Mocte:

--- Quote from: Pascal on August 24, 2017, 09:25:47 am ---Did you see the README in components/fpreport?

--- Code: Text  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Compiling: - Run-time package:   lclfpreport.lpk
--- End quote ---

Of course I did but in order to follow the instructions first you must have the complete set of files that make up the package, e.g. to compile lclfpreport.lpk you need fpreport.pp and it is not there :o, the same with other files, thats why I pulled them from fpgui repository.


--- Quote from: Pascal on August 24, 2017, 09:25:47 am ---I just did a test on Win10 x64.
Fresh checkout of fpc and lazarus.
Building fpc and lazarus.
After installing the 3 packages, adding the freetype-6.dll to laz and demo directory and rebuilding the ide i could run the sample prog from the ide without any changes.

--- End quote ---

May be I'm not checking out the correct revision/branch, but as I already said I'm using FPCupdeluxe and I'm trusting in the automated process it does to update from trunk, btw I cannot see the missing files browsing : https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/fpreport/?root=lazarus or Graeme's mirror on github https://github.com/graemeg/lazarus/tree/upstream/components/fpreport, and don't take me wrong, I'm not complaining, the motivation of this post was to make the right people aware that maybe some files were not commited, but If you have them all with a simple checkout then the problem is elsewhere.

I'm sure I should not be touching the code e.g. renaming units, but that was the path I had to go to succeed.

DonAlfredo:
Perhaps I can help.

Strangely enough, I did encounter an update problem (perhaps the same problem as OP) while updating trunk with fpcupdeluxe just yesterday !

To solve, I had to remove the whole fpcsrc-directory. And run fpcupdeluxe again.

I am still looking into this. But I could not reproduce this error after solving it. It has something to do with the way svn is used (svn gave an error while updating trunk).

Groffy:
The fpc wiki page

http://wiki.freepascal.org/Road_map

seems to be outdated. For which release is the FPReport integration planned? For fpc3.0.4 its too late


Best regards

Navigation

[0] Message Index

[#] Next page

Go to full version