Recent

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

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
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

  • Hero Member
  • *****
  • Posts: 1289
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: 1739
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

  • Hero Member
  • *****
  • Posts: 1289
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: 11857
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?

af0815

  • Hero Member
  • *****
  • Posts: 1289
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: 1106
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: 1106
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: 9792
  • Debugger - SynEdit - and more
    • 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: 1106
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: 1106
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

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
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 v2.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
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

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
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 v2.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #104 on: April 16, 2019, 07:11:45 pm »

 

TinyPortal © 2005-2018