Closed Murk42 closed 10 months ago
I am assuming that you use vcpkg directly in Visual Studio and don't use CMake to generate your project and link MSDFgen. I don't use it this way so I don't know what the correct solution here is, but the problem is that the MSDFgen library exports some global defines for projects that depend on it (this is normally handled by CMake). Those are:
MSDFGEN_USE_CPP11
MSDFGEN_PUBLIC=__declspec(dllimport)
for DLL linkage, MSDFGEN_PUBLIC=
for staticMSDFGEN_USE_LIBPNG
when using extensions
default featureMSDFGEN_USE_SKIA
when using geometry-preprocessing
default feature@Chlumsky Yeah you got everything right, thank you for the reply! :)
@Chlumsky I also had the same issue and was able to resolve it following the directions above.
P.S. thank you for making this library!
This issue should be fixed in version 1.11.
When using vcpkg to manage the msdfgen library, including it yields compiler errors.
MSDFGEN_PUBLIC
is not defined inside the "generator-config.h" file. And the static variablesmsdfgen::ErrorCorrectionConfig::defaultMinDeviationRatio
andmsdfgen::ErrorCorrectionConfig::defaultMinImproveRatio
aren't implemented. Here are the errors but i don't think they are anything meaningfull: