Page 1 of 1

Problem building from source using VS2015

Posted: 2016-11-01T07:45:00-07:00
by eldiener
Trying to build IM from source using VS2015 I get this error:

..\..\ImageMagick\MagickCore\accelerate.c(4574): error C2039: 'x': is not a member of 'cl_float2'
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0\include\CL/cl_platform.h(1023): note: see declaration of 'cl_float2'

It looks like IM is picking up something from OpenCl which is not working. Why IM is using OpenCl or why this is not compiling is beyond me.

Anybody have a clue how to fix this ?

Re: Problem building from source using VS2015

Posted: 2016-11-01T08:25:07-07:00
by fmw42
I am not a Windows user, but see

http://www.imagemagick.org/script/insta ... hp#windows
http://legacy.imagemagick.org/script/in ... hp#windows

Please do not post multiple times about the same issue

Re: Problem building from source using VS2015

Posted: 2016-11-01T08:27:55-07:00
by eldiener
fmw42 wrote:I am not a Windows user, but see

http://www.imagemagick.org/script/insta ... hp#windows
http://legacy.imagemagick.org/script/in ... hp#windows

Please do not post multiple times about the same issue
I just unchecked OpenCL in the configure program to avoid this error. Thanks !

Re: Problem building from source using VS2015

Posted: 2016-11-01T12:30:55-07:00
by dlemstra
It appears we were using a non portable way to access the x/y values of a cl_float2. This will be resolved in the next version of ImageMagick 7.

Re: Problem building from source using VS2015

Posted: 2016-11-02T07:42:09-07:00
by eldiener
Thanks for the reply about the non portable functionality.