Opened 12 years ago

Closed 8 years ago

#4017 closed defect (fixed)

fatal error: CL/opencl.h: No such file or directory

Reported by: martinl Owned by: warmerdam
Priority: normal Milestone:
Component: ConfigBuild Version: svn-trunk
Severity: normal Keywords: opencl
Cc:

Description

GDAL compiled with --with-opencl

make[1]: Entering directory `/usr/local/src/gdal_trunk/alg'
/bin/sh /home/martin/src/gdal_trunk/libtool --mode=compile --tag=CXX g++ -Wall -pg  -Wall  -I/home/martin/src/gdal_trunk/port -I/home/martin/src/gdal_trunk/gcore -I/home/martin/src/gdal_trunk/alg -I/home/martin/src/gdal_trunk/ogr -I/home/martin/src/gdal_trunk/ogr/ogrsf_frmts -DHAVE_GEOS=1 -I/usr/local/include -DOGR_ENABLED -I/home/martin/src/gdal_trunk/port  -DHAVE_OPENCL -c -o gdalwarpkernel.lo gdalwarpkernel.cpp
libtool: compile:  g++ -Wall -pg -Wall -I/home/martin/src/gdal_trunk/port -I/home/martin/src/gdal_trunk/gcore -I/home/martin/src/gdal_trunk/alg -I/home/martin/src/gdal_trunk/ogr -I/home/martin/src/gdal_trunk/ogr/ogrsf_frmts -DHAVE_GEOS=1 -I/usr/local/include -DOGR_ENABLED -I/home/martin/src/gdal_trunk/port -DHAVE_OPENCL -c gdalwarpkernel.cpp  -fPIC -DPIC -o .libs/gdalwarpkernel.o
In file included from gdalwarpkernel.cpp:34:0:
gdalwarpkernel_opencl.h:41:23: fatal error: CL/opencl.h: No such file or directory
compilation terminated.

configure should check whether CL/opencl.h is available.

Change History (3)

comment:1 by warmerdam, 11 years ago

Milestone: 1.9.0

Removed milestone.

comment:2 by Jukka Rahkonen, 8 years ago

I can find from "configure" code like this:

if test "$ac_cv_header_CL_opencl_h" = "no" ; then
            as_fn_error $? "cannot find CL/opencl.h" "$LINENO" 5

if test "$OPENCL_LIB" = "missing"; then
        as_fn_error $? "--with-opencl requested, but libraries not found!" "$LINENO" 5

Does it mean that the check that was requested is now added and this ticket can be closed as fixed?

comment:3 by Jukka Rahkonen, 8 years ago

Resolution: fixed
Status: newclosed

Based on ticket #5872 GDAL seems to compile with OpenCL so I guess that this issue is resolved.

Note: See TracTickets for help on using tickets.