Installation problems in Windows 7
Posted: 2011-01-19T21:46:40-07:00
Hi all,
I just want to use Image Magick to load HDR images into a C++ project of mine.
I thought the easiest way to do this would be through the Windows Binary distributions, which include developer tools (header files, librarries, etc.). However, when I installed the latest version, I can compile the demo project but then they don't run. They all crash silently.
Then I thought I'd try building from source, so I got the distribution and followed the instruction here (http://www.imagemagick.org/script/advan ... lation.php) very carefully. After building the "All" project, I have many errors, mostly from other projects not being able to find core_rl_magick++_.lib; it seems like the project that's supposed to make that is failing. I've included two pertinent samples of the error output below and the entire output is available here (http://www.site.uottawa.ca/~ssilk083/im ... errors.txt) . I am running Windows 7 x64 and Visual Studio 2008. Any help would be greatly appreciated. Thanks.
12>------ Build started: Project: CORE_magick, Configuration: Release Win32 ------
11>player.c
12>Compiling...
11>meta.c
9>..\..\jp2\src\libjasper\jpc\jpc_t1enc.c(141) : warning C4018: '<' : signed/unsigned mismatch
12>xwindow.c
9>jpc_t1dec.c
12>MagickCore lib DLL import interface
12>MagickCore module DLL export interface
10>Compiling resources...
11>font.c
10>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
10>Copyright (C) Microsoft Corporation. All rights reserved.
10>Linking...
11>eps.c
10> Creating library ..\lib\CORE_RL_png_.lib and object ..\lib\CORE_RL_png_.exp
11>bbuf.c
10>Embedding manifest...
9>..\..\jp2\src\libjasper\jpc\jpc_t1dec.c(243) : warning C4013: 'jas_eprintf' undefined; assuming extern returning int
9>jpc_t1cod.c
11>Generating Code...
12>..\..\magick\xwindow.c(234) : error C2491: 'DestroyXResources' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(449) : error C2491: 'XAnnotateImage' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(772) : error C2491: 'XBestFont' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(880) : error C2491: 'XBestIconSize' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1008) : error C2491: 'XBestPixel' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1145) : error C2491: 'XBestVisualInfo' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1451) : error C2491: 'XCheckDefineCursor' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1486) : error C2491: 'XCheckRefreshWindows' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1546) : error C2491: 'XClientMessage' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1648) : error C2491: 'XComponentTerminus' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1684) : error C2491: 'XConfigureImageColormap' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1736) : error C2491: 'XConstrainWindowPosition' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1785) : error C2491: 'XDelay' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1815) : error C2491: 'XDestroyResourceInfo' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1857) : error C2491: 'XDestroyWindowColors' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1936) : error C2491: 'XDisplayImageInfo' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(2271) : error C2491: 'XDrawImage' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(2649) : error C2491: 'XError' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(2726) : error C2491: 'XFreeResources' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(2816) : error C2491: 'XFreeStandardColormap' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(2868) : error C2491: 'XGetAnnotateInfo' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(2919) : error C2491: 'XGetMapInfo' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(2995) : error C2491: 'XGetPixelPacket' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(3245) : error C2491: 'XGetResourceClass' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(3334) : error C2491: 'XGetResourceDatabase' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(3438) : error C2491: 'XGetResourceInfo' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(3638) : error C2491: 'XGetResourceInstance' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(3690) : error C2491: 'XGetScreenDensity' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(3813) : error C2491: 'XGetWindowColor' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(4542) : error C2491: 'XGetWindowInfo' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(4691) : error C2491: 'XHighlightEllipse' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(4741) : error C2491: 'XHighlightLine' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(4785) : error C2491: 'XHighlightRectangle' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(4827) : error C2491: 'XImportImage' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(5100) : error C2491: 'XInitializeWindows' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(5297) : error C2491: 'XMakeCursor' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(5397) : error C2491: 'XMakeImage' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(7057) : error C2491: 'XMakeMagnifyImage' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(7679) : error C2491: 'XMakeStandardColormap' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(8293) : error C2491: 'XMakeWindow' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(8570) : error C2491: 'XMagickProgressMonitor' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(8611) : error C2491: 'XQueryColorDatabase' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(8690) : error C2491: 'XQueryPosition' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(8741) : error C2491: 'XRefreshWindow' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(8856) : error C2491: 'XRemoteCommand' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(8932) : error C2491: 'XRetainWindowColors' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9172) : error C2491: 'XSetCursorState' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9227) : error C2491: 'XSetWindows' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9262) : error C2491: 'XUserPreferences' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9390) : error C2491: 'XWarning' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9437) : error C2491: 'XWindowByID' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9515) : error C2491: 'XWindowByName' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9592) : error C2491: 'XWindowByProperty' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9701) : error C2491: 'XComponentGenesis' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9728) : error C2491: 'XGetImportInfo' : definition of dllimport function not allowed
12>xml-tree.c
12>MagickCore lib DLL import interface
12>MagickCore module DLL export interface
10>Build log was saved at "file://c:\ImageMagick\ImageMagick-6.6.7\VisualMagick\Release\CORE_png\BuildLog.htm"
18>------ Build started: Project: IM_MOD_xps, Configuration: Release Win32 ------
15>Compiling...
18>Compiling...
15>wand.c
16>xwd.c
17>xtrn.c
18>xps.c
15>MagickWand lib DLL export interface
15>MagickWand module DLL export interface
17>MagickCore lib DLL import interface
17>MagickCore module DLL export interface
16>MagickCore lib DLL import interface
16>MagickCore module DLL export interface
18>MagickCore lib DLL import interface
18>MagickCore module DLL export interface
15>MagickWand lib DLL export interface
15>MagickWand module DLL export interface
15>Magick lib DLL export interface
15>Magick module DLL export interface
18>Linking...
15>wand-view.c
15>MagickWand lib DLL export interface
15>MagickWand module DLL export interface
18>LINK : fatal error LNK1181: cannot open input file '..\lib\core_rl_magick_.lib'
18>Build log was saved at "file://c:\ImageMagick\ImageMagick-6.6.7\VisualMagick\Release\IM_MOD_xps\BuildLog.htm"
18>IM_MOD_xps - 1 error(s), 0 warning(s)
I just want to use Image Magick to load HDR images into a C++ project of mine.
I thought the easiest way to do this would be through the Windows Binary distributions, which include developer tools (header files, librarries, etc.). However, when I installed the latest version, I can compile the demo project but then they don't run. They all crash silently.
Then I thought I'd try building from source, so I got the distribution and followed the instruction here (http://www.imagemagick.org/script/advan ... lation.php) very carefully. After building the "All" project, I have many errors, mostly from other projects not being able to find core_rl_magick++_.lib; it seems like the project that's supposed to make that is failing. I've included two pertinent samples of the error output below and the entire output is available here (http://www.site.uottawa.ca/~ssilk083/im ... errors.txt) . I am running Windows 7 x64 and Visual Studio 2008. Any help would be greatly appreciated. Thanks.
12>------ Build started: Project: CORE_magick, Configuration: Release Win32 ------
11>player.c
12>Compiling...
11>meta.c
9>..\..\jp2\src\libjasper\jpc\jpc_t1enc.c(141) : warning C4018: '<' : signed/unsigned mismatch
12>xwindow.c
9>jpc_t1dec.c
12>MagickCore lib DLL import interface
12>MagickCore module DLL export interface
10>Compiling resources...
11>font.c
10>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
10>Copyright (C) Microsoft Corporation. All rights reserved.
10>Linking...
11>eps.c
10> Creating library ..\lib\CORE_RL_png_.lib and object ..\lib\CORE_RL_png_.exp
11>bbuf.c
10>Embedding manifest...
9>..\..\jp2\src\libjasper\jpc\jpc_t1dec.c(243) : warning C4013: 'jas_eprintf' undefined; assuming extern returning int
9>jpc_t1cod.c
11>Generating Code...
12>..\..\magick\xwindow.c(234) : error C2491: 'DestroyXResources' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(449) : error C2491: 'XAnnotateImage' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(772) : error C2491: 'XBestFont' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(880) : error C2491: 'XBestIconSize' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1008) : error C2491: 'XBestPixel' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1145) : error C2491: 'XBestVisualInfo' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1451) : error C2491: 'XCheckDefineCursor' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1486) : error C2491: 'XCheckRefreshWindows' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1546) : error C2491: 'XClientMessage' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1648) : error C2491: 'XComponentTerminus' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1684) : error C2491: 'XConfigureImageColormap' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1736) : error C2491: 'XConstrainWindowPosition' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1785) : error C2491: 'XDelay' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1815) : error C2491: 'XDestroyResourceInfo' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1857) : error C2491: 'XDestroyWindowColors' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(1936) : error C2491: 'XDisplayImageInfo' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(2271) : error C2491: 'XDrawImage' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(2649) : error C2491: 'XError' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(2726) : error C2491: 'XFreeResources' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(2816) : error C2491: 'XFreeStandardColormap' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(2868) : error C2491: 'XGetAnnotateInfo' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(2919) : error C2491: 'XGetMapInfo' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(2995) : error C2491: 'XGetPixelPacket' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(3245) : error C2491: 'XGetResourceClass' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(3334) : error C2491: 'XGetResourceDatabase' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(3438) : error C2491: 'XGetResourceInfo' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(3638) : error C2491: 'XGetResourceInstance' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(3690) : error C2491: 'XGetScreenDensity' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(3813) : error C2491: 'XGetWindowColor' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(4542) : error C2491: 'XGetWindowInfo' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(4691) : error C2491: 'XHighlightEllipse' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(4741) : error C2491: 'XHighlightLine' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(4785) : error C2491: 'XHighlightRectangle' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(4827) : error C2491: 'XImportImage' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(5100) : error C2491: 'XInitializeWindows' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(5297) : error C2491: 'XMakeCursor' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(5397) : error C2491: 'XMakeImage' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(7057) : error C2491: 'XMakeMagnifyImage' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(7679) : error C2491: 'XMakeStandardColormap' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(8293) : error C2491: 'XMakeWindow' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(8570) : error C2491: 'XMagickProgressMonitor' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(8611) : error C2491: 'XQueryColorDatabase' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(8690) : error C2491: 'XQueryPosition' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(8741) : error C2491: 'XRefreshWindow' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(8856) : error C2491: 'XRemoteCommand' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(8932) : error C2491: 'XRetainWindowColors' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9172) : error C2491: 'XSetCursorState' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9227) : error C2491: 'XSetWindows' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9262) : error C2491: 'XUserPreferences' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9390) : error C2491: 'XWarning' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9437) : error C2491: 'XWindowByID' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9515) : error C2491: 'XWindowByName' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9592) : error C2491: 'XWindowByProperty' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9701) : error C2491: 'XComponentGenesis' : definition of dllimport function not allowed
12>..\..\magick\xwindow.c(9728) : error C2491: 'XGetImportInfo' : definition of dllimport function not allowed
12>xml-tree.c
12>MagickCore lib DLL import interface
12>MagickCore module DLL export interface
10>Build log was saved at "file://c:\ImageMagick\ImageMagick-6.6.7\VisualMagick\Release\CORE_png\BuildLog.htm"
18>------ Build started: Project: IM_MOD_xps, Configuration: Release Win32 ------
15>Compiling...
18>Compiling...
15>wand.c
16>xwd.c
17>xtrn.c
18>xps.c
15>MagickWand lib DLL export interface
15>MagickWand module DLL export interface
17>MagickCore lib DLL import interface
17>MagickCore module DLL export interface
16>MagickCore lib DLL import interface
16>MagickCore module DLL export interface
18>MagickCore lib DLL import interface
18>MagickCore module DLL export interface
15>MagickWand lib DLL export interface
15>MagickWand module DLL export interface
15>Magick lib DLL export interface
15>Magick module DLL export interface
18>Linking...
15>wand-view.c
15>MagickWand lib DLL export interface
15>MagickWand module DLL export interface
18>LINK : fatal error LNK1181: cannot open input file '..\lib\core_rl_magick_.lib'
18>Build log was saved at "file://c:\ImageMagick\ImageMagick-6.6.7\VisualMagick\Release\IM_MOD_xps\BuildLog.htm"
18>IM_MOD_xps - 1 error(s), 0 warning(s)