Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

W10 and libcairo 4 years 1 month ago #14429

  • Klaus Riesterer
  • Klaus Riesterer's Avatar Topic Author
  • Visitor
  • Visitor
Howto install libcairo on W10?

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

W10 and libcairo 4 years 1 month ago #14430

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
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

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

Last edit: by Sternas Stefanos.

W10 and libcairo 4 years 1 month ago #14431

  • Klaus Riesterer
  • Klaus Riesterer's Avatar Topic Author
  • Visitor
  • Visitor
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)

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

Last edit: by Klaus Riesterer.

W10 and libcairo 4 years 1 month ago #14432

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
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

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

Last edit: by Sternas Stefanos.

W10 and libcairo 4 years 1 month ago #14433

  • Klaus Riesterer
  • Klaus Riesterer's Avatar Topic Author
  • Visitor
  • Visitor
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?

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

Last edit: by Klaus Riesterer.

W10 and libcairo 4 years 1 month ago #14434

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
Try to use
LazUTF8 unit functions
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

W10 and libcairo 4 years 1 month ago #14435

  • Klaus Riesterer
  • Klaus Riesterer's Avatar Topic Author
  • Visitor
  • Visitor
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 :-(

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

Last edit: by Klaus Riesterer.
  • Page:
  • 1