Recent

Author Topic: FPC 3.2.x series branched, trunk update to 3.3.1  (Read 26649 times)

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1053
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #90 on: January 16, 2019, 11:56:23 am »
The next release of fpcupdeluxe will get the freetype-6.dll automagically when Lazarus is going to be installed/updated !

af0815

  • Full Member
  • ***
  • Posts: 219
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #91 on: January 16, 2019, 04:28:18 pm »
I have also the zlib1.dll to install, eventually needed by freetype-6.dll.
regards
Andreas

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1053
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #92 on: January 16, 2019, 04:46:46 pm »
Do you have a very trust-worthy source for the zlib dll ?
With trust I mean safe !

af0815

  • Full Member
  • ***
  • Posts: 219
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #93 on: January 16, 2019, 05:02:08 pm »
No, my only safe place is my PC. I think i have loaded this from the sites as found on https://www.zlib.net/ 

Edit:
freetype-6 : http://gnuwin32.sourceforge.net/packages/freetype.htm
zlib1         : http://gnuwin32.sourceforge.net/packages/zlib.htm

But naming of the freetype6.dll to freetype-6.dll is needed.
« Last Edit: January 16, 2019, 05:10:30 pm by af0815 »
regards
Andreas

wp

  • Hero Member
  • *****
  • Posts: 5365
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #94 on: January 16, 2019, 06:34:01 pm »
No Problem to compile and install fpreport. BUT Lazarus wont start. On commandline no message, but if i activate --debug-log=log.txt on the commandline i see

Quote
using config file D:\data\lazdev\work\lazarus\lazarus.cfg
[FORMS.PP] ExceptionOccurred
  Sender=EInOutError
  Exception=Can not load Freetype library "freetype-6.dll". Check your installation.
  Stack trace:
  $00E70209
  $00E7028D
  $00E7030A
There is a dll missing.

Edit: You have to install freetype-6.dll AND zlib1.dll !!! for your bitness eg. 32bit for a 32Bit Lazarus.
I never used fpreport, but Andreas, I think you did: Since fpreport was written by the fpc or Lazarus team (I did not follow these activities) a bug report has some chance to be read. I think fpreport should be modified such that it does not link these dlls statically into the Lazarus exe. SQLDB does not do the same with sqlite3 and firebird and other dlls. Only at runtime, the dll should be loaded and maybe terminate the program if not found. A component which can crash the IDE because something is missing is always a bad choice.

So, my point is: Could somebody with experience in fpreport write a bug report that this component crashes the installation of Lazarus when these dlls are missing?
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

af0815

  • Full Member
  • ***
  • Posts: 219
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #95 on: January 16, 2019, 09:14:17 pm »
From my point of view:

fpc uses in fpreport no statically dll - this is good :-) But Lazarus use this and compile the packages into itself. Now Lazarus need the libs at startup.

the second issue is, freetype dll itself need zlib1 - you can see it with eg. the CFF-Explorer - for proper working. So in conclusio you see nothing and have a dead Lazarus. You can nonly see more if you know the caveeats.

This is by design and IMHO not (direct) a bug. And it shows the possible design problems (?) between Lazarus and fpc. fpreport is a fpc product with _wrappers_ for Lazarus. Only the designer is more Lazarus-spezific.

And the installation of the component dint crash Lazarus. ONLY the missing dlls are Lazarus stopping for proper working. The ONLY goal for me is -> SHOW the user what is missing <- But who can show this ? Actual with the changes in LazLogger, you see default nothing on a terminal window, you have to use the --debug-log explizit to see the issue.





regards
Andreas

valdir.marcos

  • Hero Member
  • *****
  • Posts: 627
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #96 on: January 16, 2019, 10:10:44 pm »
No Problem to compile and install fpreport. BUT Lazarus wont start. On commandline no message, but if i activate --debug-log=log.txt on the commandline i see

Quote
using config file D:\data\lazdev\work\lazarus\lazarus.cfg
[FORMS.PP] ExceptionOccurred
  Sender=EInOutError
  Exception=Can not load Freetype library "freetype-6.dll". Check your installation.
  Stack trace:
  $00E70209
  $00E7028D
  $00E7030A
There is a dll missing.

Edit: You have to install freetype-6.dll AND zlib1.dll !!! for your bitness eg. 32bit for a 32Bit Lazarus.
I never used fpreport, but Andreas, I think you did: Since fpreport was written by the fpc or Lazarus team (I did not follow these activities) a bug report has some chance to be read. I think fpreport should be modified such that it does not link these dlls statically into the Lazarus exe. SQLDB does not do the same with sqlite3 and firebird and other dlls. Only at runtime, the dll should be loaded and maybe terminate the program if not found. A component which can crash the IDE because something is missing is always a bad choice.

So, my point is: Could somebody with experience in fpreport write a bug report that this component crashes the installation of Lazarus when these dlls are missing?
I am not the best person for the job, but I did it:
0034887: Lazarus 2 RC 3 + FPC 3.2.0 beta - after fpReport package install Lazarus stops working missing libraries
https://bugs.freepascal.org/view.php?id=34887

valdir.marcos

  • Hero Member
  • *****
  • Posts: 627
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #97 on: January 17, 2019, 02:03:54 am »
I am using FPCUPdeluxe to test Lazarus 2.0 RC 3 + fixes_2_0 and FPC 3.2 beta + fixes_3_2. Everything is 32bit.

When I install any or all of the packages lclfpreport.lpk, lazfpreportdesign.lpk, lazidefpreport.lpk from "C:\fpcupdeluxe\lazarus\components\fpreport\" and "C:\fpcupdeluxe\lazarus\components\fpreport\design\",  Lazarus gets broken during rebuild and doesn't work anymore.
Workaround complete. Lazarus is back starting.

No, my only safe place is my PC. I think i have loaded this from the sites as found on https://www.zlib.net/ 

Edit:
freetype-6 : http://gnuwin32.sourceforge.net/packages/freetype.htm
zlib1         : http://gnuwin32.sourceforge.net/packages/zlib.htm

But naming of the freetype6.dll to freetype-6.dll is needed.
Thanks.

Do you have a very trust-worthy source for the zlib dll ?
With trust I mean safe !
Thanks for sharing:
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/tag/zlib

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 5114
    • wiki
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #98 on: February 06, 2019, 08:42:26 pm »
For windows user, the actual Laz2.0 with updated fpc fixes 3.2: https://sourceforge.net/projects/lazarus-snapshots/files/

valdir.marcos

  • Hero Member
  • *****
  • Posts: 627
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #99 on: February 06, 2019, 09:55:25 pm »

valdir.marcos

  • Hero Member
  • *****
  • Posts: 627
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #100 on: February 06, 2019, 09:59:44 pm »
This change will be available in the upcoming FPC 3.2.0
Off topic but wondering, is there a reasonably solid estimate of when FPC 3.2.0 will be released ?
No, other than "probably in the second half of this year".
Can we expect FPC 3.2.0 to be released in the second semester of 2019?

ASBzone

  • Full Member
  • ***
  • Posts: 126
  • Automation leads to relaxation...
    • BrainWaveCC Utilities
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #101 on: February 06, 2019, 10:11:14 pm »
Can we expect FPC 3.2.0 to be released in the second semester of 2019?


Which months are you thinking of for second semester?
-ASB: https://www.BrainWaveCC.com

Lazarus 2.0_fixes / FPC 3.2_fixes (64-bit w/32-bit cross-compile via FpcUpDeluxe)
Primary System: Windows 10 Pro x64, Version 1809 (Build 17763.195)
Other Systems: Windows 10 Pro x64, Version 1709 or greater

valdir.marcos

  • Hero Member
  • *****
  • Posts: 627
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #102 on: February 07, 2019, 11:02:11 pm »
Can we expect FPC 3.2.0 to be released in the second semester of 2019?
Which months are you thinking of for second semester?
From July through December...  :)

ASBzone

  • Full Member
  • ***
  • Posts: 126
  • Automation leads to relaxation...
    • BrainWaveCC Utilities
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #103 on: February 08, 2019, 02:40:22 am »
From July through December...  :)


I only ask because the earlier response said, "in the second half of year,"  so I was surprised by your question which covers the same timeframe.
-ASB: https://www.BrainWaveCC.com

Lazarus 2.0_fixes / FPC 3.2_fixes (64-bit w/32-bit cross-compile via FpcUpDeluxe)
Primary System: Windows 10 Pro x64, Version 1809 (Build 17763.195)
Other Systems: Windows 10 Pro x64, Version 1709 or greater