Re: [fpc-pascal] Implementing AggPas with PtcGraph
On 2017-06-04 23:30, James Richters wrote: to run them I get a "system error: The Program can't start because MSVCR71.dll is missing from your computer. AggPas definitely doesn't require such a library, so your program must be using something else that pulls that dependency in. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Implementing AggPas with PtcGraph
On 2017-06-05 03:12, Stefan V. Pantazi wrote: In my experience, the one dependency that AggPas has potential to fail may be related to the freetype library. If you plan to run your app on windows only, then you can turn freetype off and AggPas will happily use windows font libraries. Search for the AGG2D_USE_FREETYPE define and comment it out. Correct, though even font support is optional in AggPas. So if you don't render text via AggPas, it has zero dependency - everything is done in pure Object Pascal code. As for font support under Windows. Yes you can use GDI for font rendering, but I highly recommend using freetype.dll even under Windows. It has more features than GDI font support and the quality is better too. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Implementing AggPas with PtcGraph
>As for font support under Windows. Yes you can use GDI for font rendering, but >I highly recommend using freetype.dll even under Windows. >It has more features than GDI font support and the quality is better too. Is it the fonts causing the dependency then? I have freetype.dll included in the directory with my programs, do I need to include other files / dlls if I want them to run without installing anything? the programs I am getting the dependency issue with are based on and including Graeme's original sample program Agg2DColsole.dpr , they use: Ptcgraph, Ptccrt, Sysutils, Fpimage, Fpwritepng, Agg_2d, Agg_Basics James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Graeme Geldenhuys Sent: Monday, June 05, 2017 2:25 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] Implementing AggPas with PtcGraph On 2017-06-05 03:12, Stefan V. Pantazi wrote: > In my experience, the one dependency that AggPas has potential to fail > may be related to the freetype library. If you plan to run your app on > windows only, then you can turn freetype off and AggPas will happily > use windows font libraries. Search for the AGG2D_USE_FREETYPE define > and comment it out. Correct, though even font support is optional in AggPas. So if you don't render text via AggPas, it has zero dependency - everything is done in pure Object Pascal code. As for font support under Windows. Yes you can use GDI for font rendering, but I highly recommend using freetype.dll even under Windows. It has more features than GDI font support and the quality is better too. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Implementing AggPas with PtcGraph
How did you build/get freetype.dll? If it was built using Visual Studio, freetype.dll might have been linked against a newer C++ runtime such as msvcr71.dll that is not shipped with windows by default. You clearly need to deploy C++ runtime libs as well with your product. You may benefit from such tool as a dependency walker (https://en.wikipedia.org/wiki/Dependency_Walker). On linux you can just use ldd. Hope this helps, Stefan On 06/05/2017 05:00 PM, James Richters wrote: As for font support under Windows. Yes you can use GDI for font rendering, but I highly recommend using freetype.dll even under Windows. It has more features than GDI font support and the quality is better too. Is it the fonts causing the dependency then? I have freetype.dll included in the directory with my programs, do I need to include other files / dlls if I want them to run without installing anything? the programs I am getting the dependency issue with are based on and including Graeme's original sample program Agg2DColsole.dpr , they use: Ptcgraph, Ptccrt, Sysutils, Fpimage, Fpwritepng, Agg_2d, Agg_Basics James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Graeme Geldenhuys Sent: Monday, June 05, 2017 2:25 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] Implementing AggPas with PtcGraph On 2017-06-05 03:12, Stefan V. Pantazi wrote: In my experience, the one dependency that AggPas has potential to fail may be related to the freetype library. If you plan to run your app on windows only, then you can turn freetype off and AggPas will happily use windows font libraries. Search for the AGG2D_USE_FREETYPE define and comment it out. Correct, though even font support is optional in AggPas. So if you don't render text via AggPas, it has zero dependency - everything is done in pure Object Pascal code. As for font support under Windows. Yes you can use GDI for font rendering, but I highly recommend using freetype.dll even under Windows. It has more features than GDI font support and the quality is better too. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal -- ___ Stefan V. Pantazi, MD, PhD Professor, Health Informatics School of Health & Life Sciences and Community Services Conestoga College Institute of Technology and Advanced Learning 299 Doon Valley Drive Kitchener, ON, Canada, N2G 4M4 office: 1C23 phone: (519) 748-5220 ext. 3950 email: svpant...@gmail.com web:https://sites.google.com/site/stefanvpantazi/ ___ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal