× CodeTyphon MS Windows (XP, Vista, Win7, Win8.x and Win10) OS Development, discussions and problems

Question W10 and libcairo

  • Klaus Riesterer
  • Klaus Riesterer's Avatar Topic Author
  • Offline
  • User is blocked
  • User is blocked
More
5 months 2 weeks ago #14429 by Klaus Riesterer
W10 and libcairo was created by Klaus Riesterer
Howto install libcairo on W10?

Mint Cinnamon 19.3 / CT 7.1 / FPC/Lazarus

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
5 months 2 weeks ago - 5 months 2 weeks ago #14430 by Sternas Stefanos
Replied by Sternas Stefanos on topic W10 and libcairo
FreePascal has cairo lib
C:\codetyphon\fpcsrc\packages\cairo\src
build for Win32 and Win64 ready to use

For run-time part of Cairo for windows look here
it's a GNU mesh ;)

My suggestion is to look and CT pl_AGGPas native pascal library.

PilotLogic Architect and Core Programmer
Last edit: 5 months 2 weeks ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • Klaus Riesterer
  • Klaus Riesterer's Avatar Topic Author
  • Offline
  • User is blocked
  • User is blocked
More
5 months 2 weeks ago - 5 months 2 weeks ago #14431 by Klaus Riesterer
Replied by Klaus Riesterer on topic W10 and libcairo
I'll try this. But it could be usefull to say some things more to my problem:

I use lazreport and have to use libcairoreport.

if frAuftrag.ExportTo(TlrCairoExportFilter, 'print.tmp') then ...

On linux all works, but on W10 the programm can't open because there are the following error:

TlrCairoExport is missng.

Then when I install package libcairoexport, compile the Typhon tand than try to start the IDE the following errors will be shown:

Error (0xc00007b)

The only thing I can do is to Remove and Build All without libcairoreport.

With Typhon32 I get some other errors on missing dlls (libcairo, libpango and some more ...

I also use CT 6.80 again, because there are some errors after that with Zeos and reports ! (FormatFloat ever show 0)

Mint Cinnamon 19.3 / CT 7.1 / FPC/Lazarus
Last edit: 5 months 2 weeks ago by Klaus Riesterer.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
5 months 2 weeks ago - 5 months 2 weeks ago #14432 by Sternas Stefanos
Replied by Sternas Stefanos on topic W10 and libcairo
My Suggestion is NOT to use TlrCairoExport on Windows.
But, if you search on web you can find GTK+ run-times files for windows

For ZEOS
-backup Zeos from 6.8
-Update to LAB 7.1
-replace (if NOT work for you ) Zeos 7.1.1 with Zeos From 6.8

PilotLogic Architect and Core Programmer
Last edit: 5 months 2 weeks ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • Klaus Riesterer
  • Klaus Riesterer's Avatar Topic Author
  • Offline
  • User is blocked
  • User is blocked
More
5 months 2 weeks ago - 5 months 2 weeks ago #14433 by Klaus Riesterer
Replied by Klaus Riesterer on topic W10 and libcairo
Thank you. I''ll try again later with actual lab 7.1.

My problem is as follows:
I replaced the TlrCairoExportFilter with TFrTNPDFExportFilter and it is running now under Windows but:

There are wrong characters for German 'Umlauts' (äÄöÖüÜ߀) now in the generated PDF.

This was why I used LibCairo before.
Is there a solution for this?

Mint Cinnamon 19.3 / CT 7.1 / FPC/Lazarus
Last edit: 5 months 2 weeks ago by Klaus Riesterer.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
5 months 2 weeks ago - 5 months 2 weeks ago #14434 by Sternas Stefanos
Replied by Sternas Stefanos on topic W10 and libcairo
Try to use
LazUTF8 unit functions

PilotLogic Architect and Core Programmer
Last edit: 5 months 2 weeks ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • Klaus Riesterer
  • Klaus Riesterer's Avatar Topic Author
  • Offline
  • User is blocked
  • User is blocked
More
5 months 2 weeks ago - 5 months 2 weeks ago #14435 by Klaus Riesterer
Replied by Klaus Riesterer on topic W10 and libcairo
How ;-)

The report reads Data from Database and exports this to pdf.
No place to use LazUTF8 in my project ....

I thought it's in lr_class.pas, searched and found this:

forum.lazarus.freepascal.org/index.php/topic,43803.15.html
(Last posts seem to be really actual)

But it did not the trick for me :-(

Mint Cinnamon 19.3 / CT 7.1 / FPC/Lazarus
Last edit: 5 months 2 weeks ago by Klaus Riesterer.

Please Log in or Create an account to join the conversation.