i compiled the latest version of imagemagick like described here. since i want to build the static library since i the static binary build does not include the *.lib files..
for the configuration, i chose
. compilation for debug and release worked without a problem. i made a new directory structure:Static Multi-threaded runtimes (VisualStaticMT).
Code: Select all
c:\imagemagick\
c:\imagemagick\lib\
c:\imagemagick\include\
c:\imagemagick\include\wand\
c:\imagemagick\include\magick\
then i added the include and library folder to my project dependencies and i also added "CORE_DB_magick_.lib CORE_DB_wand_.lib" to my "additional dependencies" (debug build, the RL ones for the release build).
i also have set the "runtime library" of my project to "Multi-threaded Debug (/MTd)".
when i try to compile my programm, i get hundreds of linker errors:
Code: Select all
1>Linking...
1>CORE_DB_magick_.lib(annotate.obj) : error LNK2019: unresolved external symbol _FT_Done_Glyph referenced in function _RenderFreetype
1>CORE_DB_magick_.lib(annotate.obj) : error LNK2019: unresolved external symbol _FT_Glyph_To_Bitmap referenced in function _RenderFreetype
1>CORE_DB_magick_.lib(annotate.obj) : error LNK2019: unresolved external symbol _FT_Glyph_Transform referenced in function _RenderFreetype
1>CORE_DB_magick_.lib(annotate.obj) : error LNK2019: unresolved external symbol _FT_Vector_Transform referenced in function _RenderFreetype
1>CORE_DB_magick_.lib(annotate.obj) : error LNK2019: unresolved external symbol _FT_Outline_Decompose referenced in function _RenderFreetype
[...]
1>CORE_DB_magick_.lib(widget.obj) : error LNK2019: unresolved external symbol _XCheckIfEvent referenced in function _XColorBrowserWidget
1>CORE_DB_magick_.lib(widget.obj) : error LNK2019: unresolved external symbol _XSetClipRectangles referenced in function _XDrawBeveledButton
1>CORE_DB_magick_.lib(widget.obj) : error LNK2019: unresolved external symbol _XCreatePixmapFromBitmapData referenced in function _XCommandWidget
1>CORE_DB_magick_.lib(widget.obj) : error LNK2019: unresolved external symbol _XFreeFontNames referenced in function _XFontBrowserWidget
1>CORE_DB_magick_.lib(widget.obj) : error LNK2019: unresolved external symbol _XListFonts referenced in function _XFontBrowserWidget
1>c:\Visual Studio 2008\Projects\test\Debug\test.exe : fatal error LNK1120: 412 unresolved externals
1>test - 558 error(s), 0 warning(s)
any ideas?
stotro