building static library of imagemagick on windows error...
Posted: 2008-10-30T08:21:26-07:00
hello,
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
and copied the files to the right places. (the *.lib to the lib/ dir and all the *.h files in the wand/ & magick/ dir. this should be sufficient since i only need the wand interface for C.)
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:
obviously something is going wrong, but i have no clue what the problem is.
any ideas?
stotro
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