Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtkOpenCLFDKBackProjectionImageFilter.cxx:81: error: ‘clCreateImage2D’ was not declared in this scope #2

Closed
malaterre opened this issue Jun 18, 2013 · 3 comments

Comments

@malaterre
Copy link

As explained in changelog, this function is now deprecated:

http://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/deprecated.html

Compilation error is:

/tmp/x/RTK/code/rtkOpenCLFDKBackProjectionImageFilter.cxx: In member function ‘void rtk::OpenCLFDKBackProjectionImageFilter::InitDevice()’:
/tmp/x/RTK/code/rtkOpenCLFDKBackProjectionImageFilter.cxx:81: error: ‘clCreateImage2D’ was not declared in this scope

@malaterre
Copy link
Author

diff --git a/code/rtkOpenCLFDKBackProjectionImageFilter.cxx b/code/rtkOpenCLFDKBackProjectionImageFilter.cxx
index 8c1418a..eb8406a 100644
--- a/code/rtkOpenCLFDKBackProjectionImageFilter.cxx
+++ b/code/rtkOpenCLFDKBackProjectionImageFilter.cxx
@@ -16,6 +16,7 @@
*
=========================================================================/

+#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
#include "rtkOpenCLFDKBackProjectionImageFilter.h"

#include <itkImageRegionConstIterator.h>

@SimonRit
Copy link
Collaborator

Thanks, I have sent the fix.
Simon

On Tue, Jun 18, 2013 at 10:36 AM, Mathieu Malaterre <
notifications@github.com> wrote:

diff --git a/code/rtkOpenCLFDKBackProjectionImageFilter.cxx
b/code/rtkOpenCLFDKBackProjectionImageFilter.cxx
index 8c1418a https://github.com/SimonRit/RTK/commit/8c1418a..eb8406a
100644
--- a/code/rtkOpenCLFDKBackProjectionImageFilter.cxx
+++ b/code/rtkOpenCLFDKBackProjectionImageFilter.cxx
@@ -16,6 +16,7 @@
*
*=========================================================================
*/

+#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
#include "rtkOpenCLFDKBackProjectionImageFilter.h"

#include


Reply to this email directly or view it on GitHubhttps://github.com/SimonRit/RTK/issues/2#issuecomment-19597944
.

@malaterre
Copy link
Author

Closed in ee2f74a

SimonRit pushed a commit that referenced this issue Nov 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants