CyberPeter 13 Posted 7 hours ago 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 31 Posted 5 hours ago (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 5 hours ago by havrlisan Share this post Link to post
CyberPeter 13 Posted 5 hours ago 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 99 Posted 4 hours ago 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 13 Posted 4 hours ago 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 99 Posted 3 hours ago (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 3 hours ago by Patrick PREMARTIN 1 Share this post Link to post
CyberPeter 13 Posted 3 hours ago 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 13 Posted 3 hours ago 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 99 Posted 3 hours ago 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 285 Posted 33 minutes ago @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. Share this post Link to post