Conan软件包管理器的Qt 6.2.4软件包

Qt 6.2.4 packages for the Conan package manager

Conan软件包管理器的Qt 6.2.4软件包

Wednesday April 20, 2022 by Iikka Eklund | Comments

​2022年4月20日星期三 Iikka Eklund | 评论

Qt 6.2.4 Conan Technology Preview packages are now available via the Conan package manager from our Conan server. Desktop packages are available for Windows (MSVC2019 and MinGW), macOS, and Linux.

​Qt 6.2.4Conan技术预览软件包现在可以通过Conan软件包管理器,从我们的Conan服务器上获得。桌面软件包可用于Windows(MSVC2019和MinGW)、macOS和Linux。

Conan is the open-source, decentralized, and multi-platform package manager to create and share native binaries for C/C++. Our long term goal has been to support installing and/or building Qt modules "in the package manager way" via Conan.

Conan是一个开源的、分散的、多平台的软件包管理器,用于为C/C++创建和共享本机二进制文件。我们的长期目标是支持通过Conan“以软件包管理器的方式”安装或构建Qt模块。

What are the benefits of using the Conan package manager for Qt?

使用Conan软件包管理器进行Qt有什么好处?

  • You consume/download exactly what you need. Qt Conan packages are modularized so you can use only the modules your project really needs (qtbase, qtcharts, qtserialport, ..).
  • 你消费/下载的正是你所需要的。Qt-Conan包是模块化的,因此您只能使用项目真正需要的模块(qtbase、qtcharts、qtserialport等等)。
  • You tell your direct dependencies and Conan (package manager) will take care of the rest i.e. dependencies and their exact versions.
  • 你告诉你的直接依赖项,Conan(package manager)会处理其余的依赖项及其确切版本。
  • Should your project depend on yet another library too? You can utilize other packages as well using Conan in your project from a larger ecosystem: Conan center: OpenSSLProtobufCMakeBoostsqlite3zlib, ..
  • ​你的项目是否也应该依赖另一个库?您也可以在更大的生态系统中使用Conan,在您的项目中使用其他软件包:Conan中心:OpenSSL、Protobuf、CMake、Boost、sqlite3、zlib等等。。
  • Didn't find the binaries/build configuration you needed? Just edit the provided build profiles for your needs and pass "--build" and Conan will build everything you need from sources (provided you have compilation tools in your environment). The built binaries are stored in your local Conan cache, from where the binaries can be then easily re-used.
  • 没有找到所需的二进制文件/构建配置?只需根据您的需要编辑提供的构建概要文件,并传递“-build”,Conan就会从源代码构建您所需的一切(前提是您的环境中有编译工具)。构建的二进制文件存储在本地的Conan缓存中,从那里可以轻松地重复使用这些二进制文件。
  • Conan caches the binaries locally so additional installations are faster.
  • Conan将二进制文件缓存在本地,因此额外的安装速度更快。

How to get started?

如何开始?

Install Conan from here. Using the latest version is preferred (1.47).

​从这里安装Conan。最好使用最新版本(1.47)。

To get access to our Conan packages, go to the "Conan Package Manager" page in Qt Account to generate your personal credentials for the Conan server.

​要访问我们的Conan软件包,请转到Qt帐户中的“Conan软件包管理器”页面,生成Conan服务器的个人凭据。

Add the remote to your local configuration:

将远程设备添加到本地配置:

$ conan remote add qt https://qtpkgtest.jfrog.io/artifactory/api/conan/qt

Authenticate to our server:

向我们的服务器进行身份验证:

$ conan user -p PASSWORD -r qt USERNAME

What dependencies your project has?

你的项目有哪些依赖关系?

my_app_deps.txt:
[requires]
qtbase/6.2.4@qt/everywhere
qtdeclarative/6.2.4@qt/everywhere

# you can access the release build configurations / build profiles:

#您可以访问发布版本配置/版本配置文件:

$ conan install qtbuildprofiles/6.2.4@qt/everywhere --remote=qt

# After installation e.g. on Linux desktop use linux-x86_64-gcc 

#安装后,例如在Linux桌面上使用Linux-x86_64-gcc

Install the needed Qt packages + create a virtualenv script to access those:

安装所需的Qt软件包,并创建一个virtualenv脚本来访问这些软件包:
 

$ conan install my_app_deps.txt --profile=linux-x86_64-gcc --update --generator=virtualenv --remote=qt
 # wait for the installation to complete ...
$ source activate.sh  # on windows run the activate.bat
# build your app
$ cd <my app dir>
$ cmake CMakeLists.txt
$ cmake --build .
# run your app

 

Please see more details provided here.

​请参阅此处提供的更多详细信息。

Future plans

未来规划

There are still bits and pieces we need to fix to support cross-building fully. With prior Qt Conan 6.x Tech Preview releases we published e.g. Android packages but those were not fully usable yet. This work continues. The Boot2Qt support is also in the works.

我们仍然需要修复一些零碎的东西,以充分支持交叉建设。与之前发布的Conan6.x预览版,例如Android软件包,但这些软件包尚未完全可用。这项工作仍在继续。Boot2Qt支持也正在开发中。

With Qt Conan 6.2.3 Tech Preview release we included ICU as the first 3rd party package which is a dependency for qtbase (If Qt is configured with 'icu' support). This is also available in Qt 6.2.4 Conan Technology Preview.

在Qt Conan 6.2.3技术预览版中,我们将ICU作为第一个第三方软件包,这是qtbase的依赖项(如果Qt配置了“ICU”支持)。这也可以在Qt 6.2.4Conan技术预览版中找到。

CMake, Ninja, OpenSSL, libpng, libjpeg, and many other 3rd party Conan packages are planned to be integrated into Qt Conan packages depending on the build configuration. This means Conan will take care of installing these for you as dependencies, as the package managers do.

CMake、Ninja、OpenSSL、libpng、libjpeg和许多其他第三方Conan软件包计划根据构建配置集成到Qt Conan软件包中。这意味着Conan将像软件包管理器一样,为您安装这些依赖项。

Your feedback is valuable!

你的反馈很有价值!

We are interested to hear how Qt Conan packages would fit in your workflow? I.e. using Qt "the package manager way". Any of the following feedback channels can be used: 

我们有兴趣了解Qt Conan软件包如何适合您的工作流程?也就是说,使用Qt“包管理器方式”。可以使用以下任何反馈渠道:

  • Please let us know your thoughts in this blog post comments.
  • 请在这篇博客评论中告诉我们你的想法。
  • Please use Qt Bug Tracker to file bugs and suggestions. Please use the component Conan to allow easy filtering.
  • ​请使用Qt Bug Tracker来提交错误和建议。请使用组件Conan,以便于过滤。
  • Please fill in a mini-survey as well and tell us, what you think about Conan and your Conan needs shortly.
  • ​请同时填写一份小型调查,并告诉我们您对Conan的看法以及您的Conan需求。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值