Code Monkey home page Code Monkey logo

Comments (9)

uartie avatar uartie commented on June 17, 2024 1

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?

from libxcam.

uartie avatar uartie commented on June 17, 2024

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

from libxcam.

arpu avatar arpu commented on June 17, 2024

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?

from libxcam.

arpu avatar arpu commented on June 17, 2024

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

from libxcam.

windyuan avatar windyuan commented on June 17, 2024

@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

from libxcam.

arpu avatar arpu commented on June 17, 2024

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!

from libxcam.

windyuan avatar windyuan commented on June 17, 2024

@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.

from libxcam.

arpu avatar arpu commented on June 17, 2024

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

from libxcam.

windyuan avatar windyuan commented on June 17, 2024

thank you.

from libxcam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.