两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 |
public:it:cplusplus:conan [2024/11/07 14:36] – oakfire | public:it:cplusplus:conan [2024/11/07 16:31] (当前版本) – [Conan 1 笔记] oakfire |
---|
* [[https://conan.io/|conan.io]] - the C/C++ Package Manager, | * [[https://conan.io/|conan.io]] - the C/C++ Package Manager, |
* 仓库:https://conan.io/center/ | * 仓库:https://conan.io/center/ |
* 结合 [[https://jfrog.com/|JFrog]] 可构建私有C/C++二进制包管理 | |
* 私有仓创建下载 [[https://conan.io/downloads.html]] | |
* https://docs.conan.io/en/latest/uploading_packages/artifactory/artifactory_ce.html | |
==== Conan 2 笔记 ==== | ==== Conan 2 笔记 ==== |
* 安装 conan2:<code bash> | * 安装 conan2:<code bash> |
sudo pip install conan | sudo pip install conan |
| conan profile detect --force |
</code> | </code>生成的默认配置文件在 ''~/.conan2/profiles/default '' |
| * 更新<code bash>sudo pip install conan --upgrade</code> |
| * 二进制包管理私有仓创建: |
| * https://docs.conan.io/2/tutorial/conan_repositories/setting_up_conan_remotes.html |
| * https://docs.conan.io/2/tutorial/conan_repositories/setting_up_conan_remotes/artifactory/artifactory_ce_cpp.html |
==== Conan 1 笔记 ==== | ==== Conan 1 笔记 ==== |
| * 结合 [[https://jfrog.com/|JFrog]] 可构建私有C/C++二进制包管理 |
| * 私有仓创建下载 [[https://conan.io/downloads.html]] |
| * https://docs.conan.io/en/latest/uploading_packages/artifactory/artifactory_ce.html |
* conan 的[[https://docs.conan.io/en/latest/reference/generators/cmake.html|cmake 变量表]] | * conan 的[[https://docs.conan.io/en/latest/reference/generators/cmake.html|cmake 变量表]] |
* 关于打包[[https://docs.conan.io/en/latest/creating_packages/understand_packaging.html|understand_packaging]] | * 关于打包[[https://docs.conan.io/en/latest/creating_packages/understand_packaging.html|understand_packaging]] |
* vscode 整合 conan 头文件:在 ''c/c++'' 插件设置里 ''includePath'' 添加 ''~/.conan/data/**'' | * vscode 整合 conan 头文件:在 ''c/c++'' 插件设置里 ''includePath'' 添加 ''~/.conan/data/**'' |
| |
===== Android NDK 交叉编译 ===== | === Android NDK 交叉编译 === |
* 官方文档参考这个链接 https://docs.conan.io/en/latest/integrations/cross_platform/android.html, 而不是这个链接<del>https://docs.conan.io/en/latest/systems_cross_building/cross_building.html</del>, 后者的示例在 armv8 会错误编译成 armv7。 | * 官方文档参考这个链接 https://docs.conan.io/en/latest/integrations/cross_platform/android.html, 而不是这个链接<del>https://docs.conan.io/en/latest/systems_cross_building/cross_building.html</del>, 后者的示例在 armv8 会错误编译成 armv7。 |
* 可直接使用官方[[https://docs.conan.io/en/latest/integrations/cross_platform/android.html|这个链接]]的第一种办法,即在 profile 里直接使用 ''android-ndk''包作为 tool_requires, 比如编译 armv8:<code ini>include(default) | * 可直接使用官方[[https://docs.conan.io/en/latest/integrations/cross_platform/android.html|这个链接]]的第一种办法,即在 profile 里直接使用 ''android-ndk''包作为 tool_requires, 比如编译 armv8:<code ini>include(default) |