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

[question] I cannot use boost from Conan on WSL #940

Open
markspacehub opened this issue Aug 19, 2024 · 1 comment
Open

[question] I cannot use boost from Conan on WSL #940

markspacehub opened this issue Aug 19, 2024 · 1 comment

Comments

@markspacehub
Copy link

I am trying to use Boost's dynamic_bitset class, my project currently uses Conan to get its dependencies and CMake to build. I added Boost to Conan's requires and then I used CMake to find_package(Boost REQUIRED) and target_link_libraries(MyProject PRIVATE boost::boost).
When I call conan install . it installs boost and then when I configure with CMake, it finds boost with all the header files etc.

When I build the project however, there is a chain of linked header files that ends with #include <boost/compute/cl/hpp>. This in turn tries to #include <CL/cl.h> which does not exist on my system, I can try and force define APPLE to try and #include <OpenCL/cl.h> instead, but again it doesnt appear to exist for me.

I am using WSL (v2.2.4) Ubuntu (v 24.04) to both build and run the application.

Why can I not find cl.h, why do I need it and what can I do to fix this?

Thanks :)

@mclow
Copy link
Contributor

mclow commented Aug 19, 2024

You will probably get more responses if you post this to the boost-users mailing list.
You can subscribe here: https://lists.boost.org/mailman/listinfo.cgi/boost-users

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