building static library of imagemagick on windows error...

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
stotro

building static library of imagemagick on windows error...

Post by stotro »

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
Static Multi-threaded runtimes (VisualStaticMT).
. compilation for debug and release worked without a problem. i made a new directory structure:

Code: Select all

c:\imagemagick\
c:\imagemagick\lib\
c:\imagemagick\include\
c:\imagemagick\include\wand\
c:\imagemagick\include\magick\
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:

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)
obviously something is going wrong, but i have no clue what the problem is.

any ideas?

stotro
Post Reply