slint-ui / slint-cpp-template

A template for a C++ Application using Slint
https://slint.dev
MIT License
45 stars 11 forks source link

For windows, automatically copy DLLs from system installation to output binary directory. #5

Closed lasagnaphil closed 1 year ago

lasagnaphil commented 2 years ago

Currently (on Windows), when I compile and run the repo with CMake I get an error that "slint_cpp.dll" (and all the accompanying Qt6 libraries) are not found. I can copy these manually from the system directory to my output directory, but this is a bit cumbersome. Ideally there should be a CMake function that automatically does this. (I'm not sure if this should be done on this template repo or the main slint repo though.)

lasagnaphil commented 2 years ago

Related: probably this? https://github.com/slint-ui/slint/issues/1025

tronical commented 2 years ago

Yes, that's right. And there's now a patch in upstream corrosion that helps with this - needs some fixing/testing though.

tronical commented 1 year ago

This is fixed now with https://github.com/slint-ui/slint-cpp-template/pull/7