Build Source Code with VS 2005
Posted: 2007-08-27T03:21:32-07:00
I downloaded the ImageMagic C++ version 6.3.5-7 Beta source code from ftp://ftp.imagemagick.org/pub/ImageMagi ... indows.zip,
and I am using VS 2005 to build it.
I followed the instructions in Install-windows.txt. So, I ran configure.exe and generated the VisualDynamicMT.sln solution file.
However, I got linking error when compiling the code with the above solution. Any clue how to fix it?
Below is the the linking error:
1>------ Build started: Project: CORE_wand, Configuration: Release Win32 ------
1>Linking...
1> Creating library ..\lib\CORE_RL_wand_.lib and object ..\lib\CORE_RL_wand_.exp
1>animate.obj : error LNK2019: unresolved external symbol __imp__XAnimateImages referenced in function _AnimateImageCommand
1>animate.obj : error LNK2019: unresolved external symbol __imp__XAnimateBackgroundImage referenced in function _AnimateImageCommand
1>animate.obj : error LNK2019: unresolved external symbol __imp__XRemoteCommand referenced in function _AnimateImageCommand
1>display.obj : error LNK2001: unresolved external symbol __imp__XRemoteCommand
1>animate.obj : error LNK2019: unresolved external symbol __imp__XGetResourceClass referenced in function _AnimateImageCommand
1>display.obj : error LNK2001: unresolved external symbol __imp__XGetResourceClass
1>animate.obj : error LNK2019: unresolved external symbol __imp__XGetScreenDensity referenced in function _AnimateImageCommand
1>display.obj : error LNK2001: unresolved external symbol __imp__XGetScreenDensity
1>animate.obj : error LNK2019: unresolved external symbol __imp__XGetResourceInstance referenced in function _AnimateImageCommand
1>display.obj : error LNK2001: unresolved external symbol __imp__XGetResourceInstance
1>import.obj : error LNK2001: unresolved external symbol __imp__XGetResourceInstance
1>animate.obj : error LNK2019: unresolved external symbol __imp__XGetResourceInfo referenced in function _AnimateImageCommand
1>display.obj : error LNK2001: unresolved external symbol __imp__XGetResourceInfo
1>import.obj : error LNK2001: unresolved external symbol __imp__XGetResourceInfo
1>animate.obj : error LNK2019: unresolved external symbol __imp__XGetResourceDatabase referenced in function _AnimateImageCommand
1>display.obj : error LNK2001: unresolved external symbol __imp__XGetResourceDatabase
1>import.obj : error LNK2001: unresolved external symbol __imp__XGetResourceDatabase
1>animate.obj : error LNK2019: unresolved external symbol __imp__XError referenced in function _AnimateImageCommand
1>display.obj : error LNK2001: unresolved external symbol __imp__XError
1>import.obj : error LNK2001: unresolved external symbol __imp__XError
1>animate.obj : error LNK2019: unresolved external symbol __imp__XDestroyResourceInfo referenced in function _AnimateImageCommand
1>display.obj : error LNK2001: unresolved external symbol __imp__XDestroyResourceInfo
1>import.obj : error LNK2001: unresolved external symbol __imp__XDestroyResourceInfo
1>display.obj : error LNK2019: unresolved external symbol __imp__XRetainWindowColors referenced in function _DisplayImageCommand
1>display.obj : error LNK2019: unresolved external symbol __imp__XDisplayImage referenced in function _DisplayImageCommand
1>display.obj : error LNK2019: unresolved external symbol __imp__XDisplayBackgroundImage referenced in function _DisplayImageCommand
1>display.obj : error LNK2019: unresolved external symbol __imp__DestroyXResources referenced in function _DisplayImageCommand
1>..\bin\CORE_RL_wand_.dll : fatal error LNK1120: 14 unresolved externals
1>Build log was saved at "file://c:\Application\ImageMagick-6.3.5-7 Beta\VisualMagick\Release\CORE_wand\BuildLog.htm"
1>CORE_wand - 28 error(s), 0 warning(s)
and I am using VS 2005 to build it.
I followed the instructions in Install-windows.txt. So, I ran configure.exe and generated the VisualDynamicMT.sln solution file.
However, I got linking error when compiling the code with the above solution. Any clue how to fix it?
Below is the the linking error:
1>------ Build started: Project: CORE_wand, Configuration: Release Win32 ------
1>Linking...
1> Creating library ..\lib\CORE_RL_wand_.lib and object ..\lib\CORE_RL_wand_.exp
1>animate.obj : error LNK2019: unresolved external symbol __imp__XAnimateImages referenced in function _AnimateImageCommand
1>animate.obj : error LNK2019: unresolved external symbol __imp__XAnimateBackgroundImage referenced in function _AnimateImageCommand
1>animate.obj : error LNK2019: unresolved external symbol __imp__XRemoteCommand referenced in function _AnimateImageCommand
1>display.obj : error LNK2001: unresolved external symbol __imp__XRemoteCommand
1>animate.obj : error LNK2019: unresolved external symbol __imp__XGetResourceClass referenced in function _AnimateImageCommand
1>display.obj : error LNK2001: unresolved external symbol __imp__XGetResourceClass
1>animate.obj : error LNK2019: unresolved external symbol __imp__XGetScreenDensity referenced in function _AnimateImageCommand
1>display.obj : error LNK2001: unresolved external symbol __imp__XGetScreenDensity
1>animate.obj : error LNK2019: unresolved external symbol __imp__XGetResourceInstance referenced in function _AnimateImageCommand
1>display.obj : error LNK2001: unresolved external symbol __imp__XGetResourceInstance
1>import.obj : error LNK2001: unresolved external symbol __imp__XGetResourceInstance
1>animate.obj : error LNK2019: unresolved external symbol __imp__XGetResourceInfo referenced in function _AnimateImageCommand
1>display.obj : error LNK2001: unresolved external symbol __imp__XGetResourceInfo
1>import.obj : error LNK2001: unresolved external symbol __imp__XGetResourceInfo
1>animate.obj : error LNK2019: unresolved external symbol __imp__XGetResourceDatabase referenced in function _AnimateImageCommand
1>display.obj : error LNK2001: unresolved external symbol __imp__XGetResourceDatabase
1>import.obj : error LNK2001: unresolved external symbol __imp__XGetResourceDatabase
1>animate.obj : error LNK2019: unresolved external symbol __imp__XError referenced in function _AnimateImageCommand
1>display.obj : error LNK2001: unresolved external symbol __imp__XError
1>import.obj : error LNK2001: unresolved external symbol __imp__XError
1>animate.obj : error LNK2019: unresolved external symbol __imp__XDestroyResourceInfo referenced in function _AnimateImageCommand
1>display.obj : error LNK2001: unresolved external symbol __imp__XDestroyResourceInfo
1>import.obj : error LNK2001: unresolved external symbol __imp__XDestroyResourceInfo
1>display.obj : error LNK2019: unresolved external symbol __imp__XRetainWindowColors referenced in function _DisplayImageCommand
1>display.obj : error LNK2019: unresolved external symbol __imp__XDisplayImage referenced in function _DisplayImageCommand
1>display.obj : error LNK2019: unresolved external symbol __imp__XDisplayBackgroundImage referenced in function _DisplayImageCommand
1>display.obj : error LNK2019: unresolved external symbol __imp__DestroyXResources referenced in function _DisplayImageCommand
1>..\bin\CORE_RL_wand_.dll : fatal error LNK1120: 14 unresolved externals
1>Build log was saved at "file://c:\Application\ImageMagick-6.3.5-7 Beta\VisualMagick\Release\CORE_wand\BuildLog.htm"
1>CORE_wand - 28 error(s), 0 warning(s)