You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experimenting with static linking and vcpkg, and I get a lot of undefined linker errors when linking the libraries into my final DLL; it seems libheif is trying to reference libde265 dynamically even when building statically, like:
Creating library Release\eXpress.Imaging.Heif.Native.lib and object Release\eXpress.Imaging.Heif.Native.exp
heif.lib(heif_decoder_libde265.cc.obj) : error LNK2019: unresolved external symbol __imp_de265_get_version referenced in function "char const * __cdecl libde265_plugin_name(void)" (?libde265_plugin_name@@YAPEBDXZ)
I was able to fix this by modifying the libheif/CMakeLists.txt as follows:
I'm experimenting with static linking and vcpkg, and I get a lot of undefined linker errors when linking the libraries into my final DLL; it seems
libheif
is trying to referencelibde265
dynamically even when building statically, like:I was able to fix this by modifying the
libheif/CMakeLists.txt
as follows:I'm not sure this is the correct way to do this.
And maybe the
libde265
lib should be modified accordingly?The text was updated successfully, but these errors were encountered: