Building from sources problem - VC 2008

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
tk1
Posts: 17
Joined: 2011-07-27T05:42:54-07:00
Authentication code: 8675308
Location: Poland

Building from sources problem - VC 2008

Post by tk1 »

I'm trying to build 6.7.3 x64 Q8 with VC2008. I followed the instructions but I have a probblem. I think it is a constant MAGICKCORE_ZERO_CONFIGURATION_SUPPORT name length problem. It looks VC9 truncates its name to MAGICKCORE_ZERO_CONFIGURATION_S.
157>------ Build started: Project: UTIL_animate, Configuration: Release x64 ------
157>Compiling...
156>aai.c
156>MagickCore lib DLL import interface
156>MagickCore module DLL export interface
157>animate.c
157>MagickWand lib DLL import interface
157>MagickWand module DLL export interface
157>MagickWand lib DLL import interface
157>MagickWand module DLL export interface
157>Magick lib DLL import interface
157>Magick module DLL export interface
156>Linking...
157>Compiling resources...
156> Creating library D:\apps\vc2008\ImageMagick\ImageMagick-6.7.3\VisualMagick\lib\IM_MOD_RL_aai_.lib and object D:\apps\vc2008\ImageMagick\ImageMagick-6.7.3\VisualMagick\lib\IM_MOD_RL_aai_.exp
157>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
157>Copyright (C) Microsoft Corporation. All rights reserved.
157>..\..\magick\version.h(55) : warning RC4011: identifier truncated to 'MAGICKCORE_ZERO_CONFIGURATION_S'
157>Linking...
156>Embedding manifest...
157>animate.obj : error LNK2019: unresolved external symbol __imp_MagickCommandGenesis referenced in function AnimateMain
157>animate.obj : error LNK2019: unresolved external symbol __imp_AnimateImageCommand referenced in function AnimateMain
157>D:\apps\vc2008\ImageMagick\ImageMagick-6.7.3\VisualMagick\bin\UTIL_RL_animate_.exe : fatal error LNK1120: 2 unresolved externals
157>Build log was saved at "file://d:\apps\vc2008\ImageMagick\ImageMagick-6.7.3\VisualMagick\utilities\x64\Release\BuildLog.htm"
157>UTIL_animate - 3 error(s), 1 warning(s)
158>------ Build started: Project: UTIL_compare, Configuration: Release x64 ------
158>UTIL_compare : warning PRJ0009 : Build log could not be opened for writing.
158>Make sure that the file is not open by another process and is not write-protected.
158>Compiling...
158>compare.c
158>MagickWand lib DLL import interface
158>MagickWand module DLL export interface
156>Build log was saved at "file://d:\apps\vc2008\ImageMagick\ImageMagick-6.7.3\VisualMagick\coders\x64\Release\BuildLog.htm"
156>IM_MOD_aai - 0 error(s), 0 warning(s)
158>MagickWand lib DLL import interface
158>MagickWand module DLL export interface
158>Magick lib DLL import interface
158>Magick module DLL export interface
158>Linking...
159>------ Build started: Project: UTIL_composite, Configuration: Release x64 ------
159>Compiling...
159>composite.c
159>MagickWand lib DLL import interface
159>MagickWand module DLL export interface
159>MagickWand lib DLL import interface
159>MagickWand module DLL export interface
159>Magick lib DLL import interface
159>Magick module DLL export interface
159>Linking...
159>composite.obj : error LNK2019: unresolved external symbol __imp_MagickCommandGenesis referenced in function CompositeMain
159>composite.obj : error LNK2019: unresolved external symbol __imp_CompositeImageCommand referenced in function CompositeMain
159>D:\apps\vc2008\ImageMagick\ImageMagick-6.7.3\VisualMagick\bin\UTIL_RL_composite_.exe : fatal error LNK1120: 2 unresolved externals
159>Build log was saved at "file://d:\apps\vc2008\ImageMagick\ImageMagick-6.7.3\VisualMagick\utilities\x64\Release\BuildLog.htm"
159>UTIL_composite - 3 error(s), 0 warning(s)
160>------ Build started: Project: UTIL_conjure, Configuration: Release x64 ------
160>Compiling...
160>conjure.c
160>MagickWand lib DLL import interface
160>MagickWand module DLL export interface
158>compare.obj : error LNK2019: unresolved external symbol __imp_MagickCommandGenesis referenced in function CompareMain
158>compare.obj : error LNK2019: unresolved external symbol __imp_CompareImageCommand referenced in function CompareMain
158>D:\apps\vc2008\ImageMagick\ImageMagick-6.7.3\VisualMagick\bin\UTIL_RL_compare_.exe : fatal error LNK1120: 2 unresolved externals
158>Build log was saved at "file://d:\apps\vc2008\ImageMagick\ImageMagick-6.7.3\VisualMagick\utilities\x64\Release\BuildLog.htm"
158>UTIL_compare - 3 error(s), 1 warning(s)
160>MagickWand lib DLL import interface
160>MagickWand module DLL export interface
160>Magick lib DLL import interface
160>Magick module DLL export interface
160>Linking...
161>------ Build started: Project: UTIL_convert, Configuration: Release x64 ------
What causes that utilities like convert.exe, compare.exe and so on are not build.

This are exe files from my bin dir:
Wolumin w stacji D to Duzy
Numer seryjny woluminu: BCCC-D361

Katalog: D:\apps\vc2008\ImageMagick\ImageMagick-6.7.3\VisualMagick\bin

2011-02-01 19:51 521˙216 dcraw.exe
2010-06-02 11:45 12˙697˙088 ffmpeg.exe
2009-11-18 12:08 113˙664 hp2xx.exe
2011-10-24 10:20 166˙400 UTIL_RL_IMDisplay_.exe
2011-10-24 10:17 20˙480 UTIL_RL_iptcutil_.exe
2011-10-24 10:17 14˙848 UTIL_RL_jasper_.exe
6 plik(˘w) 13˙533˙696 bajt˘w
0 katalog(˘w) 12˙259˙692˙544 bajt˘w wolnych
Can anybody help me with this?
cheers
tk1
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Building from sources problem - VC 2008

Post by magick »

  • ..\..\magick\version.h(55) : warning RC4011: identifier truncated to 'MAGICKCORE_ZERO_CONFIGURATION_S'
The truncated identifier is not a problem because it is still unique despite the truncation.

We're not sure why the build is failing for you, we just built ImageMagick 6.7.3-2, the current release with VisualStudio 2008 and it compiled / linked without complaint.
Post Reply