当前位置: 首页 > news >正文

河北建设执业信息网站长春网站建设方案优化

河北建设执业信息网站,长春网站建设方案优化,宁波网络公司做网站,win10做的网站其他电脑访问Windows conan环境搭建 1 安装conan1.1 安装依赖软件1.1.1 python安装1.1.2 git bash安装1.1.3 安装Visual Studio Community 20191.1.3.1 选择安装的组件1.1.3.2 选择要支持的工具以及对应的SDK 1.1.4 vscode安装 1.3 验证conan功能1.4 查看conancenter是否包含poco包1.5 查看…

Windows conan环境搭建

  • 1 安装conan
    • 1.1 安装依赖软件
      • 1.1.1 python安装
      • 1.1.2 git bash安装
      • 1.1.3 安装Visual Studio Community 2019
        • 1.1.3.1 选择安装的组件
        • 1.1.3.2 选择要支持的工具以及对应的SDK
      • 1.1.4 vscode安装
    • 1.3 验证conan功能
    • 1.4 查看conancenter是否包含poco包
    • 1.5 查看poco/1.9.4的conan信息
    • 1.6 新建conanfile.txt
    • 1.7 安装所需的依赖项并生成构建系统的信息

1 安装conan

1.1 安装依赖软件

1.1.1 python安装

pip需要依赖python (>= 3.9),我本地安装的3.10.10版本的python。
Python 软件包:
python软件包直接去官网下载比较慢,在安装时选中安装路径添加到环境变量(Add Python to PATH)的选项,其他的默认安装即可。
python的官方网站:
https://www.python.org/downloads/windows/

1.1.2 git bash安装

可以在http://www.git-scm.com/download/下载对应的windows版本的git去安装使用。

1.1.3 安装Visual Studio Community 2019

打开Microsoft Store中搜索Visual Studio Community 2019,选择安装。
如果选择Visual Studio Community 2022请参考该篇博文:windows环境下VSCode配置C++教程(使用msvc编译器),需要注意的是Visual Studio Community 2022对应的MSVC是17而不是2019版的16,如果使用msvc16去编译需要对应的适配一个msvc17的profile配置文件。

1.1.3.1 选择安装的组件

[图片]

1.1.3.2 选择要支持的工具以及对应的SDK

[图片]

1.1.4 vscode安装

可以直接在vscode官网下载Download Visual Studio Code - Mac, Linux, Windows,需要选择System Installer软件包安装。
在这里插入图片描述

1.2 安装1.55.0版本的conan
conan在windows上最新的版本是2.xx的,conan的1.xx版本和2.xx版本的差异非常大,我们在开发时目前需要的是conan 1.xx版本去做代码库管理工作,在安装时需要制定要安装的1.xx的conan版本号。

pip install conan=1.55

1.3 验证conan功能

直接在windows的powershell视图执行conan命令即可,执行之后会显示conan的帮助信息。

PS C:\Users\test> conan
Consumer commandsinstall    Installs the requirements specified in a recipe (conanfile.py or conanfile.txt).config     Manages Conan configuration.get        Gets a file or list a directory of a given reference or package.info       Gets information about the dependency graph of a recipe.search     Searches package recipes and binaries in the local cache or a remote. Unless aremote is specified only the local cache is searched.
Creator commandsnew        Creates a new package recipe template with a 'conanfile.py' and optionally,'test_package' testing files.create     Builds a binary package for a recipe (conanfile.py).upload     Uploads a recipe and binary packages to a remote.export     Copies the recipe (conanfile.py & associated files) to your local cache.export-pkg Exports a recipe, then creates a package from local source and build folders.test       Tests a package consuming it from a conanfile.py with a test() method.
Package development commandssource     Calls your local conanfile.py 'source()' method.build      Calls your local conanfile.py 'build()' method.package    Calls your local conanfile.py 'package()' method.editable   Manages editable packages (packages that reside in the user workspace, but areconsumed as if they were in the cache).workspace  Manages a workspace (a set of packages consumed from the user workspace thatbelongs to the same project).
Misc commandsprofile    Lists profiles in the '.conan/profiles' folder, or shows profile details.remote     Manages the remote list and the package recipes associated with a remote.user       Authenticates against a remote with user/pass, caching the auth token.imports    Calls your local conanfile.py or conanfile.txt 'imports' method.copy       Copies conan recipes and packages to another user/channel.remove     Removes packages or binaries matching pattern from local cache or remote.alias      Creates and exports an 'alias package recipe'.download   Downloads recipe and binaries to the local cache, without using settings.inspect    Displays conanfile attributes, like name, version, and options. Works locally,in local cache and remote.help       Shows help for a specific command.lock       Generates and manipulates lock files.frogarian  Conan The FrogarianConan commands. Type "conan <command> -h" for help
PS C:\Users\weihanwu>

1.4 查看conancenter是否包含poco包

PS D:\work> conan search poco --remote=conancenter
Existing package recipes:poco/1.8.1
poco/1.9.3
poco/1.9.4
poco/1.10.0
poco/1.10.1
poco/1.11.0
poco/1.11.1
poco/1.11.2
poco/1.11.3
poco/1.12.5p1
poco/1.12.0
poco/1.12.1
poco/1.12.2
poco/1.12.3
poco/1.12.4
PS D:\work>

1.5 查看poco/1.9.4的conan信息

PS D:\work> conan inspect poco/1.9.4
name: poco
version: 1.9.4
url: https://github.com/conan-io/conan-center-index
homepage: https://pocoproject.org
license: BSL-1.0
author: None
description: Modern, powerful open source C++ class libraries for building network- and internet-based applications that run on desktop, server, mobile and embedded systems.
topics: ('building', 'networking', 'server', 'mobile', 'embedded')
generators: ['txt']
exports: None
exports_sources: None
short_paths: False
apply_env: True
build_policy: None
revision_mode: hash
settings: ('os', 'arch', 'compiler', 'build_type')
options:enable_active_record: [True, False, 'deprecated']enable_activerecord: [True, False]enable_activerecord_compiler: [True, False]enable_apacheconnector: [True, False]enable_cppparser: [True, False]enable_crypto: [True, False]enable_data: [True, False]enable_data_mysql: [True, False]enable_data_odbc: [True, False]enable_data_postgresql: [True, False]enable_data_sqlite: [True, False]enable_encodings: [True, False]enable_fork: [True, False]enable_json: [True, False]enable_jwt: [True, False]enable_mongodb: [True, False]enable_net: [True, False]enable_netssl: [True, False]enable_netssl_win: [True, False]enable_pagecompiler: [True, False]enable_pagecompiler_file2page: [True, False]enable_pdf: [True, False]enable_pocodoc: [True, False]enable_prometheus: [True, False]enable_redis: [True, False]enable_sevenzip: [True, False]enable_util: [True, False]enable_xml: [True, False]enable_zip: [True, False]fPIC: [True, False]shared: [True, False]
default_options:enable_active_record: deprecatedenable_activerecord: Trueenable_activerecord_compiler: Falseenable_apacheconnector: Falseenable_cppparser: Falseenable_crypto: Trueenable_data: Trueenable_data_mysql: Trueenable_data_odbc: Falseenable_data_postgresql: Trueenable_data_sqlite: Trueenable_encodings: Trueenable_fork: Trueenable_json: Trueenable_jwt: Trueenable_mongodb: Trueenable_net: Trueenable_netssl: Trueenable_netssl_win: Falseenable_pagecompiler: Falseenable_pagecompiler_file2page: Falseenable_pdf: Falseenable_pocodoc: Falseenable_prometheus: Falseenable_redis: Trueenable_sevenzip: Falseenable_util: Trueenable_xml: Trueenable_zip: TruefPIC: Trueshared: False
deprecated: None
PS D:\work>

1.6 新建conanfile.txt

conanfile.txt [requires]poco/1.9.4[generators]cmake

1.7 安装所需的依赖项并生成构建系统的信息

mkdir build && cd build
conan install .. --build=missing
http://www.hkea.cn/news/930281/

相关文章:

  • 建筑模板规格型号郑州厉害的seo顾问
  • ppt做书模板下载网站有哪些内容国际婚恋网站排名
  • 上海网站建设内容更新网络营销策划目的
  • 重庆市建设信息网站关键词查询网
  • 做哪种网站流量大怎么打广告宣传自己的产品
  • 免费表白网站制作seo网络优化推广
  • 网站建设中可能升级中国科技新闻网
  • 网站制作内容文案网站如何快速被百度收录
  • 淘宝淘宝网页版登录入口免费seo公司
  • 竹溪县县建设局网站短视频营销
  • 好的网站有哪些搜索引擎seo是什么意思
  • 做音乐网站赚钱吗做小程序的公司
  • 坪地网站建设域名流量查询工具
  • 网站建设部署万能推广app
  • 网站的重要性怎么做个网站
  • 做网站的经验百度旗下有哪些app
  • 化工网站开发推广点击器
  • 怎么访问日本竹中建设网站外贸seo推广
  • 惠阳建设局网站引流推广接单
  • 北京通州网站建设公司如何建立公司网站网页
  • 网站换程序301seo优化按天扣费
  • html5 网站自适应长尾关键词挖掘爱站工具
  • 网站设计公司(信科网络)潍坊网站定制模板建站
  • 番禺网站开发报价百度竞价排名软件
  • 做企业网站接单seo网站优化技术
  • 建设网站行业云网络推广理实一体化软件
  • 如何用自己公司网站做邮箱关键字是什么意思
  • 古典网站建设欣赏马鞍山网站seo
  • 商城网站建设报价方案免费建网站软件下载
  • 中国做美国酒店的网站好竞价托管收费标准