ImageMagick-7.0.7-28 does not build in VS2010

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
graemeNPS
Posts: 64
Joined: 2009-01-12T14:25:55-07:00

ImageMagick-7.0.7-28 does not build in VS2010

Post by graemeNPS » 2018-04-18T12:35:16-07:00

i downloaded and tried to open the configure.sln in vs2010
cannot, because of: const vector<wstring> validSrcFiles = {L".c", L".cpp", L".cc"};
which does not compile in vs2010
so I used vs2015 to build the 2010 sln.
which, when I tried to build, failed due to this:
#if !defined(INFINITY)
# define INFINITY (-logf(0f))
#endif
which I fixed:

#if !defined(INFINITY)
# define INFINITY (-logf(0.f))
#endif

but then the build fails on this project (what is a heic, and do I care, or can I just delete the project):
1>------ Build started: Project: IM_MOD_heic, Configuration: Release Win32 ------
1> heic.c
1> MagickCore lib DLL import interface
1> MagickCore module DLL export interface
1>D:\gitsources\ThirdParty\imlatest\ImageMagick-7.0.7-28\ImageMagick\MagickCore/string-private.h(93): warning C4310: cast truncates constant value
1>..\..\ImageMagick\coders\heic.c(287): warning C4100: 'atom' : unreferenced formal parameter
1>..\..\ImageMagick\coders\heic.c(921): warning C4127: conditional expression is constant
1>..\..\ImageMagick\coders\heic.c(931): error C2143: syntax error : missing ';' before 'const'
1>..\..\ImageMagick\coders\heic.c(932): error C2065: 'img' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(939): error C2065: 'img' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(939): warning C4047: 'function' : 'const de265_image *' differs in levels of indirection from 'int'
1>..\..\ImageMagick\coders\heic.c(939): warning C4024: 'de265_get_image_plane' : different types for formal and actual parameter 1
1>..\..\ImageMagick\coders\heic.c(940): error C2065: 'img' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(940): warning C4047: 'function' : 'const de265_image *' differs in levels of indirection from 'int'
1>..\..\ImageMagick\coders\heic.c(940): warning C4024: 'de265_get_image_width' : different types for formal and actual parameter 1
1>..\..\ImageMagick\coders\heic.c(941): error C2065: 'img' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(941): warning C4047: 'function' : 'const de265_image *' differs in levels of indirection from 'int'
1>..\..\ImageMagick\coders\heic.c(941): warning C4024: 'de265_get_image_height' : different types for formal and actual parameter 1
1>..\..\ImageMagick\coders\heic.c(952): error C2275: 'Image' : illegal use of this type as an expression
1> D:\gitsources\ThirdParty\imlatest\ImageMagick-7.0.7-28\ImageMagick\MagickCore/magick-type.h(189) : see declaration of 'Image'
1>..\..\ImageMagick\coders\heic.c(952): error C2065: 'chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(954): error C2065: 'chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(954): warning C4047: '=' : 'int' differs in levels of indirection from 'Image *'
1>..\..\ImageMagick\coders\heic.c(956): error C2143: syntax error : missing ';' before 'type'
1>..\..\ImageMagick\coders\heic.c(958): error C2065: 'y' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(958): error C2065: 'y' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(958): error C2065: 'y' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(960): error C2065: 'y' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(961): error C2065: 'y' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(963): error C2065: 'chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(963): warning C4047: 'function' : 'Image *' differs in levels of indirection from 'int'
1>..\..\ImageMagick\coders\heic.c(963): warning C4024: 'QueueAuthenticPixels' : different types for formal and actual parameter 1
1>..\..\ImageMagick\coders\heic.c(963): error C2065: 'y' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(968): error C2065: 'x' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(968): error C2065: 'x' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(968): error C2065: 'x' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(969): error C2065: 'chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(969): warning C4047: 'function' : 'const Image *__restrict ' differs in levels of indirection from 'int'
1>..\..\ImageMagick\coders\heic.c(969): warning C4024: 'SetPixelGreen' : different types for formal and actual parameter 1
1>..\..\ImageMagick\coders\heic.c(970): error C2065: 'chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(970): warning C4047: 'function' : 'const Image *__restrict ' differs in levels of indirection from 'int'
1>..\..\ImageMagick\coders\heic.c(970): warning C4024: 'SetPixelBlue' : different types for formal and actual parameter 1
1>..\..\ImageMagick\coders\heic.c(971): error C2065: 'chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(971): warning C4047: 'function' : 'const Image *__restrict ' differs in levels of indirection from 'int'
1>..\..\ImageMagick\coders\heic.c(971): warning C4024: 'GetPixelChannels' : different types for formal and actual parameter 1
1>..\..\ImageMagick\coders\heic.c(974): error C2065: 'chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(974): warning C4047: 'function' : 'Image *' differs in levels of indirection from 'int'
1>..\..\ImageMagick\coders\heic.c(974): warning C4024: 'SyncAuthenticPixels' : different types for formal and actual parameter 1
1>..\..\ImageMagick\coders\heic.c(979): error C2275: 'Image' : illegal use of this type as an expression
1> D:\gitsources\ThirdParty\imlatest\ImageMagick-7.0.7-28\ImageMagick\MagickCore/magick-type.h(189) : see declaration of 'Image'
1>..\..\ImageMagick\coders\heic.c(979): error C2065: 'resized_chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(979): error C2065: 'chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(979): warning C4047: 'function' : 'const Image *' differs in levels of indirection from 'int'
1>..\..\ImageMagick\coders\heic.c(979): warning C4024: 'ResizeImage' : different types for formal and actual parameter 1
1>..\..\ImageMagick\coders\heic.c(980): error C2065: 'resized_chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(980): warning C4047: '==' : 'int' differs in levels of indirection from 'void *'
1>..\..\ImageMagick\coders\heic.c(984): error C2065: 'y' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(984): error C2065: 'y' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(984): error C2065: 'y' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(987): error C2065: 'y' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(989): error C2065: 'y' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(994): error C2065: 'resized_chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(994): warning C4047: 'function' : 'const Image *' differs in levels of indirection from 'int'
1>..\..\ImageMagick\coders\heic.c(994): warning C4024: 'GetVirtualPixels' : different types for formal and actual parameter 1
1>..\..\ImageMagick\coders\heic.c(994): error C2065: 'y' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(999): error C2065: 'x' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(999): error C2065: 'x' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(999): error C2065: 'x' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(1001): error C2065: 'resized_chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(1001): warning C4047: 'function' : 'const Image *__restrict ' differs in levels of indirection from 'int'
1>..\..\ImageMagick\coders\heic.c(1001): warning C4024: 'GetPixelGreen' : different types for formal and actual parameter 1
1>..\..\ImageMagick\coders\heic.c(1002): error C2065: 'resized_chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(1002): warning C4047: 'function' : 'const Image *__restrict ' differs in levels of indirection from 'int'
1>..\..\ImageMagick\coders\heic.c(1002): warning C4024: 'GetPixelBlue' : different types for formal and actual parameter 1
1>..\..\ImageMagick\coders\heic.c(1005): error C2065: 'resized_chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(1005): warning C4047: 'function' : 'const Image *__restrict ' differs in levels of indirection from 'int'
1>..\..\ImageMagick\coders\heic.c(1005): warning C4024: 'GetPixelChannels' : different types for formal and actual parameter 1
1>..\..\ImageMagick\coders\heic.c(1013): error C2065: 'resized_chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(1014): error C2065: 'resized_chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(1014): error C2065: 'resized_chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(1014): warning C4047: 'function' : 'Image *' differs in levels of indirection from 'int'
1>..\..\ImageMagick\coders\heic.c(1014): warning C4024: 'DestroyImage' : different types for formal and actual parameter 1
1>..\..\ImageMagick\coders\heic.c(1014): warning C4047: '=' : 'int' differs in levels of indirection from 'Image *'
1>..\..\ImageMagick\coders\heic.c(1021): error C2065: 'resized_chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(1022): error C2065: 'resized_chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(1022): error C2065: 'resized_chroma' : undeclared identifier
1>..\..\ImageMagick\coders\heic.c(1022): warning C4047: 'function' : 'Image *' differs in levels of indirection from 'int'
1>..\..\ImageMagick\coders\heic.c(1022): warning C4024: 'DestroyImage' : different types for formal and actual parameter 1
1>..\..\ImageMagick\coders\heic.c(1022): warning C4047: '=' : 'int' differs in levels of indirection from 'Image *'

graemeNPS
Posts: 64
Joined: 2009-01-12T14:25:55-07:00

Re: ImageMagick-7.0.7-28 does not build in VS2010

Post by graemeNPS » 2018-04-18T12:44:08-07:00

and the fuzz projects fail as well

graemeNPS
Posts: 64
Joined: 2009-01-12T14:25:55-07:00

Re: ImageMagick-7.0.7-28 does not build in VS2010

Post by graemeNPS » 2018-04-18T12:44:37-07:00

but that might be because I deleted project heic.

Post Reply