更新时间:2022-06-20 10:50:29
链接ImageMagick静态库的答案是确保还链接所有依赖的静态库!
The answer to linking the ImageMagick static libraries is to ensure you link all the dependant static libraries as well!
编译完ImageMagick静态库的解决方案后,转到"VisualMagick"文件夹(在ImageMagick克隆存储库中),然后转到"lib"文件夹,您将看到所有的 * __ DB _ *.lib
和 * _ RL _ *.lib
文件进行调试和发布.
Once you have compiled the solution for ImageMagick static libraries, go to the 'VisualMagick' folder (within the ImageMagick cloned repository) then to to the 'lib' folder there you will see all the *_DB_*.lib
and *_RL_*.lib
files for Debug and Release.
对于发布和调试,您需要在其他依赖项"部分中包含这些名称.
You need to include those names in the 'Additional Dependencies' section for both Release and Debug.
另一个关键方面是确保库是由与您自己的应用程序..(WIN32或x64)相同的编译器针对相同的平台体系结构构建的.
Another key aspect is to ensure the libraries are built by the same compiler for the same platform architecture as your own application .. (WIN32 or x64).