sayge / opencl-toolbox

Automatically exported from code.google.com/p/opencl-toolbox
MIT License
1 stars 0 forks source link

Win7 x64 Matlab2010a VS2010 compile error #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Having Matlab2010a and VS2010 installed in Win7 x64
2. mex -setup; %found VC++ 2010 and done
3. Having ATI SDK 2.2 installed with and changed make.m as:
opencl_include_dir = 'C:\Program Files (x86)\ATI Stream\include';
opencl_lib_dir = 'C:\Program Files (x86)\ATI Stream\lib\x86_64';
4. make;
error:
C:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: Compile of 'SRC\openclcmd.cpp' 
failed. 

??? Error using ==> mex at 222
Unable to complete successfully.

Error in ==> make at 8
mex('src/openclcmd.cpp', '-Iinclude', ['-I' opencl_include_dir], ...

What is the expected output? What do you see instead?
Does it mean it fails to find the correct path? I tried the same paths on a 
machine with WinXP x64 with VS2008, make does complete, no such error.

What version of the product are you using? On what operating system?
opencl-toolbox 0.17; win7 x64

Please provide any additional information below.

Original issue reported on code.google.com by roll...@gmail.com on 19 Mar 2011 at 6:39

GoogleCodeExporter commented 9 years ago
I had the same problem on a win7 64bit system. Please use Matlab R2010B rater 
than 2010A. Now works well!

Original comment by kne...@gmail.com on 6 May 2011 at 12:52

GoogleCodeExporter commented 9 years ago
This can be also solved by using VS2008 compiler. Just download Windows 7 SDK 
and select the 2008 compiler by "mex -setup".

Original comment by andre...@gmail.com on 24 Jul 2011 at 1:20

GoogleCodeExporter commented 9 years ago
I AM working in matlab 2011b and getting the same error after doing 'make' ... 
i am working on windows xp(32 bit) ...how to solve the problem..please help...

Original comment by sirshend...@gmail.com on 20 Dec 2011 at 4:47

GoogleCodeExporter commented 9 years ago
possible replace cl.h by cl.hpp
in file opencl.h of ray folder of toolbox 0.17

Original comment by keri2008...@gmail.com on 29 Jul 2012 at 11:07