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

fedora 23 libcl not found #397

Closed
arpu opened this issue Jan 29, 2017 · 9 comments
Closed

fedora 23 libcl not found #397

arpu opened this issue Jan 29, 2017 · 9 comments

Comments

@arpu
Copy link

arpu commented Jan 29, 2017

fedora 23

./configure --enable-libcl --enable-opencv --enable-debug

 libxcam configuration summary
 version                    : 0.8.0
 enable debug               : yes
 enable profiling           : no
 build GStreamer plugin     : no
 build aiq analyzer         : no
 use local aiq              : no
 use local atomisp          : yes
 have opencl lib            : no
 have opencv lib            : yes
 enable 3a lib              : no
 enable smart analysis lib  : no

any help what packages are needed?

@uartie
Copy link
Contributor

uartie commented Jan 30, 2017

I believe the package is beignet. Try dnf provides */libcl.so.

@arpu
Copy link
Author

arpu commented Jan 30, 2017

ok yes you are right but

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
./configure --enable-libcl --enable-opencv
checking for LIBCL... no
checking for LIBCL... no

locate libcl.so
/usr/lib64/beignet/libcl.so
dnf list installed | grep beignet
beignet.x86_64 1.2.0-1.fc24 @updates
beignet-devel.x86_64 1.2.0-1.fc24 @updates

any idea how i can solve this?

@uartie
Copy link
Contributor

uartie commented Jan 30, 2017

Yup, it looks like neither beignet nor beignet-devel provides a libcl.pc file. I'm not sure where to get it. @windyuan can you help with this?

@arpu
Copy link
Author

arpu commented Feb 3, 2017

as workaround
set HAVE_LIBCL=1 in configure.ac after the libcl check
and add -lOpenCL to the tests/Makefile

@windyuan
Copy link
Contributor

windyuan commented Feb 7, 2017

@uartie, sorry for late reply, just came back from Chinese New Year vacation.
yes, you are right, it's the beignet dependency. currently libxcam code depends on <CL/cl_intel.h> which can be get from beignet-devel. libcl.pc had ever been used in some other projects. Your code should go to here

if test "$enable_libcl" = "yes" && test "$HAVE_LIBCL" -eq 0; then
    PKG_CHECK_MODULES(LIBCL, [OpenCL], [HAVE_LIBCL=1], [HAVE_LIBCL=0])
fi

which means you have to install OpenCL.pc first.

@arpu , thanks for your workaround, force to set HAVE_LIBCL=1 in configure.ac is not necessary if OpenCL.pc was installed. could you submit your patch with OpenCL for tests/Makefile?

Thanks,
Wind Yuan

@arpu
Copy link
Author

arpu commented Feb 7, 2017

dnf provides OpenCL.pc
Last metadata expiration check: 22:08:54 ago on Mon Feb 6 19:44:30 2017.
Error: No Matches found

about the patch i will look at this!

@windyuan
Copy link
Contributor

windyuan commented Feb 8, 2017

@arpu, thanks.
sorry, I don't have a Fedora OS. In Ubuntu, OpenCL.pc is from ocl-icd-opencl-dev. you can check ocl-icl related package.

@arpu
Copy link
Author

arpu commented Apr 18, 2017

works now for me i think the problem was not installed ocl dev package

@arpu arpu closed this as completed Apr 18, 2017
@windyuan
Copy link
Contributor

thank you.

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

3 participants