Using Conan to install packages directly from GitHub

送分小仙女□ 提交于 2020-06-17 09:43:53

问题


Following this feature request, there are some Conan packages hosted on Bincrafters GitHub organization:

  1. Conan package for OpenCL Headers
  2. Conan package for Khronos OpenCL CLHPP
  3. Conan package for OpenCL ICD Loader

I tried searching them on the command line with conan search <packageName> using different queries with no avail. I'm not sure how Conan package manager works. With HomeBrew one could tap different repositories or with pip directly install from a GitHub repository. I would appreciate it if you could help me know how I can install the above packages and how my conanfile.txt should look like.

P.S.1. Sorry in advance if the tags are not appropriate. I wasn't sure what should I use, so feel free to edit and add or remove them.

P.S.2. Possible solution from here, running

conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan

now I can find the above packages with

conan search -r bincrafters khronos-opencl-icd-loader
conan search -r bincrafters khronos-opencl-icd-loader

and my conanfile.txt should look something like:

[requires]
khronos-opencl-headers/20190806@bincrafters/stable
khronos-opencl-icd-loader/20191007@bincrafters/stable

[generators]
cmake

来源:https://stackoverflow.com/questions/62261869/using-conan-to-install-packages-directly-from-github

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!