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. 2019牛客多校第五场generator2——BSGS&&手写Hash

    题目 几乎原题 BZOJ3122题解 分析 先推一波公式,然后除去特殊情况分类讨论,剩下就是形如 $a^i \equiv b(mod \ p)$ 的方程,可以使用BSGS算法. 在标准的BSGS中,内 ...

  2. 后缀自动机求endpos集大小

    #include<bits/stdc++.h> #define fi first #define se second #define INF 0x3f3f3f3f #define LNF ...

  3. ACM-ICPC 2018 沈阳赛区现场赛 K. Let the Flames Begin (约瑟夫环问题)

    题目链接: 题意:有 n 个人围成一个圈,从 1 开始报到第 k 个人出环,问第 m 个出环的人是谁,n.m.k <= 1e18 且 min(m,k)<= 2e6. 题解:容易得出O(m) ...

  4. 利用Js的console对象,在控制台打印调式信息测试Js

    一次偶然的机会,打开百度的时候按下了F12,然后就见控制台里面输出了百度的招聘广告,感觉挺帅气的,再然后就有了这篇博文. 既然可以这样在控制台输出信息,那以后再调试Js的时候不就可以省去很多麻烦了嘛! ...

  5. 显示浏览访客的IP

    jQuery(function($){    var url = 'http://chaxun.1616.net/s.php?type=ip&output=json&callback= ...

  6. [Luogu] 矩阵加速(数列)

    题面:https://www.luogu.org/problemnew/show/P1939 题解:https://www.zybuluo.com/wsndy-xx/note/1153810

  7. 【概率论】2-3:贝叶斯定理(Bayes' Theorem)

    title: [概率论]2-3:贝叶斯定理(Bayes' Theorem) categories: Mathematic Probability keywords: Bayes' Theorem 贝叶 ...

  8. c 语言延时函数

    /*--- 等待x毫秒 ---*/ int sleep(unsigned long x) { clock_t c1 = clock(), c2; do { ) /* 错误 */ ; } while ( ...

  9. 利用 force index优化sql语句性能

    [转自:https://blog.csdn.net/bruce128/article/details/46777567]并进行总结 今天写了一个统计sql,在一个近亿条数据的表上执行,200s都查不出 ...

  10. Web Services之基本认识

    参考:http://www.w3school.com.cn/webservices 1.什么是Web Services Web Services 可使您的应用程序成为 Web 应用程序.Web Ser ...