memo / ofxMSAOpenCL

C++ openFrameworks addon for very simple to use wrapper for OpenCL. All underlying openCL objects are accessible to allow advanced features too if need be
http://www.memo.tv/ofxmsaopencl/
Other
88 stars 35 forks source link

Win 10: Cannot open include file: 'CL/opencl.h': No such file or directory #20

Open Wenzy-- opened 7 years ago

Wenzy-- commented 7 years ago

Hi,memo.

This addon works fine in OSX.But in Win10.

There is a Error happened: Cannot open include file: 'CL/opencl.h': No such file or directory (compiling source file ......\addons\ofxMSAOpenCL\src\MSAOpenCL.cpp)

SoylentGraham commented 7 years ago

Have you installed an opencl SDK? The props for this project include C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5, do you have that folder? (maybe version has changed) https://github.com/memo/ofxMSAOpenCL/blob/master/libs/OpenCL/lib/vs/nvidia-cuda-opencl-include.props

Wenzy-- commented 7 years ago

Thanks,SoylentGraham. But i have already installed the SDK from here ( https://developer.nvidia.com/cuda-downloads ) ,still not working~~It's version 8.0 . Or should i installed version 7.5??

SoylentGraham commented 7 years ago

I have no idea whether it would work with a newer sdk :)

So the path has probably changed (as above, it's using a path to version 7.5, you probably don't have that folder, but you probably have one called /8.0) In visual studio, goto the property manager and find the one called nvidia-cuda-opencl-include.props (or open the above file I linked to in notepad) and change the path to the SDK path you have installed.

AntonioFrog commented 5 years ago

I met the same problem and i edit the .props file to the right path;

then another error happend: can not open source file "ofMain.h"

can anyone knows how to figure this out?

AntonioFrog commented 5 years ago

problem solved with the link below:

https://github.com/memo/ofxMSAOpenCL/issues/21