CyberPeter 14 Posted March 13 I just implemented displaying *.svg files via TSkSvg but I'm glad I fairly quickly found out that by doing so the application doesn't start anymore on all the older Windows OS (via VM). Is there a requirement I'm not aware of ? A dependency ? Where is this documented ? I looked here: https://docwiki.embarcadero.com/Libraries/Athens/en/Vcl.Skia I see no mention of dependables ? What am I missing ? Share this post Link to post
havrlisan 33 Posted March 13 (edited) TSkSvg is originally from skia4delphi. Did you enable Skia already? You can do so by right-clicking the project in the Projects view and clicking on "Enable Skia". Sometimes that may not be enough, in which case you'll need to create a startup unit. Read more about it here: https://github.com/skia4delphi/skia4delphi?tab=readme-ov-file#enable-skia-render I failed to see you're talking about VCL, so disregard this message. Edited March 13 by havrlisan Share this post Link to post
CyberPeter 14 Posted March 13 Hi, yes VCL, c++ Builder 12.2 Adding everything and making it work on my system was easy, but I did not expect the program to crash on startup on every other system I tested. It only works on my W11 development system Share this post Link to post
Patrick PREMARTIN 114 Posted March 13 It should work at least on Windows 10. Do you have the DLL when you deploy your project ? Share this post Link to post
CyberPeter 14 Posted March 13 I did not deploy a dll no. The documentation did not mention the need for a dll. Where do I find this dll ? Share this post Link to post
Patrick PREMARTIN 114 Posted March 13 (edited) You need the Skia.dll file with projects using Skia. Check "Project / Deployment wizard" option to see where it's located on your development computer. It should be in the "bin" folder of RAD Studio installation. See https://docwiki.embarcadero.com/RADStudio/en/Skia4Delphi for other links and infos about using Skia in Delphi or C++Builder. Edited March 13 by Patrick PREMARTIN 2 Share this post Link to post
CyberPeter 14 Posted March 13 I see. I'll look into it. And it is fully 'legal' to bundle this dll with an application ? Share this post Link to post
CyberPeter 14 Posted March 13 I wish the dll would not be statically linked. That would allow inclusion of all functionality and if the dll is not present, the functionality would simply not work (similar to an unsupported file being loaded) Share this post Link to post
Patrick PREMARTIN 114 Posted March 13 Skia is an open source library available under BSD Free Software License. We can use and deploy it with our projects. https://skia.org/about/ With the Skia4Delphi project I don't know if you can link it dynamically. Check with the developer team on https://github.com/skia4delphi/skia4delphi/discussions 1 Share this post Link to post
vfbb 299 Posted March 13 @CyberPeter Tip: When you enable Skia in your project (right-click on the project > Enable Skia), the next time you build the project, the sk4d.dll will be in the output folder along with your .exe. 2 Share this post Link to post
CyberPeter 14 Posted March 14 Interesting, thanks @vfbb For the time being at least I have completely disabled support for *.svg since I don't want to statically link to a third party dll. But good to know. Share this post Link to post
Zoran Bonuš 13 Posted March 18 The latest skia4delphi (beta) removes the need to deploy the .dll, as far as I inderstand it: 1 Share this post Link to post