1、HOME

1、官网:https://botan.randombit.net/
Win下 编译步骤:https://botan.randombit.net/handbook/building.html#on-windows,是如下4步:
$ python configure.py --cc=msvc --os=windows
$ nmake
$ botan-test.exe
$ nmake install 2、ZC:我在家的笔记本上安装的是 vs2017x64
2.1、nmake的最后的几行输出信息为 如图"01_namke.png"所示(貌似和 SHH的vs2017x86执行该命令后的最后输出是一样的。使用 vs2017x86时使用的命令行是自己拼凑的x64的环境变量"path"&"include"&"lib"。)
2.2、命令"nmake install"执行之后的输出为 如图"02_nmakeinstall.png"所示
1、vs2017x64 的 "x64Native Tools Command Prompt for VS 2017"中,执行下面的命令:
F:\IDE\CPP_3rd\zclxy-botan-2.12.1\zclxy-botan-2.12.1>python configure.py --cc=msvc --os=windows --with-debug-info --debug-mode
... ... F:\IDE\CPP_3rd\zclxy-botan-2.12.1\zclxy-botan-2.12.1> 1.1、ZC:找到"x64Native Tools Command Prompt for VS 2017"的位置是:
"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2017\Visual Studio Tools\VC\x64 Native Tools Command Prompt for VS 2017"
它的属性,显示为“%comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"”

2、SHH

 2.1、_____ZC_编译botan.txt

1、官网的编译步骤 在 “https://botan.randombit.net/handbook/building.html#on-windows”中,使用vs的话 是这几条命令:
$ python configure.py --cc=msvc --os=windows
$ nmake
$ botan-test.exe
$ nmake install ZC:配置文件中的一些参数 在这里查看:https://botan.randombit.net/handbook/building.html#configure-script-options
ZC: python configure.py --cc=msvc --os=windows --with-debug-info
ZC: python configure.py --cc=msvc --os=windows --with-debug-info --debug-mode 2、官网:“https://botan.randombit.net/”,代码我是在这里下载的:“https://github.com/randombit/botan” 3、我使用 vs2017编译,我装的vs2017是32位的,然后发现 它的命令行 都是设置的 32位的文件路径,所以直接用这个命令行是不行的...
3.1、CMD显示全部环境变量命令:set
3.2、主要使用的 环境变量就是 "path"、"include"、"lib"。
我的做法:打开vs2017的命令行,然后得到这3个环境变量的值,然后改成 x64的文件路径,再在新的CMD中设置x64的3个环境变量值。
(ZC:环境变量"libpath"的值 在新的CMD中设置了之后貌似没起作用... 于是这里 就没有提到它)
3.3、LINK : fatal error LNK1181: 无法打开输入文件“crypt32.lib”:
环境变量"LIB"中添加:“C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\SDK\ScopeCppSDK\SDK\lib;” 4、编译成功之后,结果如图:编译成功_01.png
5、

 2.2、__ZC_环境变量.txt

1、比较环境变量的"path",得到如下 18个不同的项
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCPackages";
"C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.1";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\bin\Roslyn";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Team Tools\Performance Tools";
"C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\";
"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\FSharp\";
"C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86";
"C:\Program Files (x86)\Windows Kits\10\bin\x86";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\\MSBuild\15.0\bin";
"C:\Windows\Microsoft.NET\Framework\v4.0.30319";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja"; 1.1、改成 x64的形式:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCPackages";
"C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.1";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\bin\Roslyn";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Team Tools\Performance Tools";
"C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\";
"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\FSharp\";
"C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64";
"C:\Program Files (x86)\Windows Kits\10\bin\x64";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\\MSBuild\15.0\bin";
"C:\Windows\Microsoft.NET\Framework\v4.0.30319";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja"; 1.2、合并成一行之后:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64";"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCPackages";"C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.1";"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow";"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer";"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\bin\Roslyn";"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Team Tools\Performance Tools";"C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\";"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\";"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\FSharp\";"C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64";"C:\Program Files (x86)\Windows Kits\10\bin\x64";"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\\MSBuild\15.0\bin";"C:\Windows\Microsoft.NET\Framework\v4.0.30319";"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\";"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\";"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin";"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja"; 2、include
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\ATLMFC\include;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt 3、lib
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\lib\x86;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x86;C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x86;C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x86; 3.1、改成 x64的形式:(最后面 还加了一个)
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\atlmfc\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\lib\x64;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\SDK\ScopeCppSDK\SDK\lib; 4、
5、

 2.3、path_z.txt

"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCPackages";
"C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.1";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\bin\Roslyn";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Team Tools\Performance Tools";
"C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\";
"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\FSharp\";
"C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64";
"C:\Program Files (x86)\Windows Kits\10\bin\x64";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\\MSBuild\15.0\bin";
"C:\Windows\Microsoft.NET\Framework\v4.0.30319";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin";
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja";

3、20191120 在SH 想编译 x86版本

 3.1、运行配置文件 出现问题:

D:\Documents\Downloads\botan\botan-2.12.1>python configure.py --cc=msvc --os=win
dows
INFO: configure.py invoked with options "--cc=msvc --os=windows"
INFO: Configuring to build Botan 2.12.1 (revision unknown)
INFO: Running under 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MS
C v.1916 64 bit (AMD64)]
INFO: Autodetected platform information: OS="Windows" machine="AMD64" proc="I
ntel64 Family 6 Model 158 Stepping 10, GenuineIntel"
INFO: Guessing target processor is a x86_64 (use --cpu to set)
INFO: Canonicalized CPU target AMD64 to x86_64
INFO: Auto-detected compiler version 19.16
INFO: Auto-detected compiler arch x86_32
ERROR: Configured target is x86_64 but compiler probe indicates x86_32 D:\Documents\Downloads\botan\botan-2.12.1>

  ZC:现在想先 之前(上面) 折腾SH的机子的配置,估计也是 报了这个问题的缘故

 3.2、上面也贴了 配置文件的 参数的网址:https://botan.randombit.net/handbook/building.html#configure-script-options,可以看到 参数cpu 可以指定CPU的架构,于是 配置命令就变成了:(加上了本文上面的 调试信息参数)

  python configure.py --cc=msvc --os=windows --with-debug-info --debug-mode --cpu=x86_32

  然后 就可以直接使用 SH的32位的vs2017的"VS 2017的开发人员命令提示符"直接跑上面的命令了,

  然后命令 nmake

  然后命令 nmake install

  然后命令 botan-test.exe      ZC:这次 这个放在了最后面,∵它会卡在那边无法退出程序,于是先安装 安装完后再测试

4、

5、

3rd.botan的更多相关文章

  1. Taxi Trip Time Winners' Interview: 3rd place, BlueTaxi

    Taxi Trip Time Winners' Interview: 3rd place, BlueTaxi This spring, Kaggle hosted two competitions w ...

  2. unix network programming(3rd)Vol.1 [第1章]《读书笔记系列》

    文章最开头介绍了 获取时间的C/S 模型的代码, 还用了实现了IPV6的版本 unix 介绍了errno值,以及在多进程/多线程中的问题 多线程中不用全局errno,而是用返回值 处理error 详细 ...

  3. The 3rd tip of DB QueryAnalyzer

     The 3rd tip of DB Query Analyzer Ma Genfeng (Guangdong Unitoll Services incorporated, Guangzhou 510 ...

  4. Codeforces Round #519 by Botan Investments

    Codeforces Round #519 by Botan Investments #include<bits/stdc++.h> #include<iostream> #i ...

  5. List of 3rd Party .NET UI & Reporting Components

    https://www.codeproject.com/Reference/788434/List-of-rd-Party-NET-UI-Reporting-Components Introducti ...

  6. APUE 3rd

    以下是APUE 3rd edition 的preface,从04年的第二版到现在的第三版,APUE内容有所更新.点击下载. It’s been almost eight years since I fi ...

  7. ICDM Winner's Interview: 3rd place, Roberto Diaz

    ICDM Winner's Interview: 3rd place, Roberto Diaz This summer, the ICDM 2015 conference sponsored a c ...

  8. Guide to installing 3rd party JARs

    Although rarely, but sometimes you will have 3rd party JARs that you need to put in your local repos ...

  9. Oracle Database Hang While Loading 3rd party SBT Library And After This Nobody Can Access The Database (windows login 登陆hang )

    Applies to: Oracle Database - Enterprise Edition - Version 11.2.0.4 and later Microsoft Windows x64 ...

随机推荐

  1. 编译安装PTLib和H.323 Plus Core

    下载PTLib和H.323 Plus Core,官方网站很容易下载:http://www.h323plus.org/source/. 我下载这两个库后存放到目录/home/ynq/h323plus下, ...

  2. 将vim打造成python开发工具

    1.创建vim插件工作目录 [root@ray ~]# mkdir -p ~/.vim/bundle 2.下载插件 [root@ray ~]# cd ~/.vim/bundle [root@ray b ...

  3. FWT 等总结 题解

    目录 与卷积: 代码: 或卷积: 代码: 异或卷积: 代码: FST:子集卷积 代码: 例题: CF914G 代码: uoj310[UNR #2]黎明前的巧克力 代码: CF662C Binary T ...

  4. 用pyinstaller打包python程序、打包pyqt程序

    将.py脚本拷贝到一个文件夹中: 然后shift+右键,打开Powershell窗口: -F:设置打包为一个.exe文件.(缺点打开速度慢,不加-F则不打包为一个.exe,优点简洁方便) -w:设置不 ...

  5. P4136 谁能赢呢? 脑子

    思路:脑子(教练说是博弈论?) 提交:1次 题解: 结论:若\(n\)为奇数后手胜,若\(n\)为偶数先手胜. 大致证明: 我们发现,若我们把棋盘黑白染色并设左上角为黑色,那么显然有:若\(n\)为奇 ...

  6. MySQLSyntaxErrorException: Table 'taotao.tbuser' doesn't exist

    先看看表名是不是有下划线,再看看实体类有没有@TableName("tb_user") 逆向生成代码里添加设置

  7. ERROR 1010 (HY000): Error dropping database (can't rmdir './zabbix/', errno: 17)

    在删除数据库的时候报标题所示错误 mysql> drop database zabbix; ERROR 1010 (HY000): Error dropping database (can't ...

  8. 下载安装Xocde并创建一个C语言的项目工程

    安装好Xcode后,新建工程 选择command line tool 选择c语言 点击创建 可以设置运行平台版本 设置 设置c标准 去掉c++ 支持 打开编辑页面 运行 参考: https://www ...

  9. servlet 中session的使用方法(创建,使用)

    创建: protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, ...

  10. MySQL inodb cluster部署

    innodb cluster是基于组复制来实现的. 搭建一套MySQL的高可用集群innodb. 实验环境: IP 主机名 系统 软件 192.168.91.46 master RHEL7.4 mys ...