zoukankan      html  css  js  c++  java
  • windows 编译c++库的安装CURL、64位Boost

    1.CURL

    本文使用vs2010

    下载:

    git clone https://github.com/curl/curl.git

    https://github.com/curl/curl

    vs的工具下的命令行:(一定)

    32位:vcvarsall.bat x86

    64:vcvarsall.bat x64

    下一步:执行curl目录下的buildconf.bat,然后cd winbuild

    windows下编译(MT):

    32-debug: nmake /f Makefile.vc mode=static vc=10debug=yes rtlibcfg=static machine=x32 ENABLE_IDN=no

    32-release: nmake /f Makefile.vc mode=static vc=10debug=no rtlibcfg=static machine=x32 ENABLE_IDN=no

    64-debug: nmake /f Makefile.vc mode=static vc=10debug=yes rtlibcfg=static machine=X64 ENABLE_IDN=no

    64-release: nmake /f Makefile.vc mode=static vc=10debug=no rtlibcfg=static machine=X64 ENABLE_IDN=no

    windows下编译(MD):

    32-debug: nmake /f Makefile.vc mode=static vc=10debug=yes machine=x32 ENABLE_IDN=no

    32-release: nmake /f Makefile.vc mode=static vc=10debug=no machine=x32 ENABLE_IDN=no

    64-debug: nmake /f Makefile.vc mode=static vc=10debug=yes machine=X64 ENABLE_IDN=no

    64-release: nmake /f Makefile.vc mode=static vc=10debug=no machine=X64  ENABLE_IDN=no

    重点是一定要加ENABLE_IDN=no,默认是打开的,不加的话编译会出错

    X64不行就换AMD64

    Boost安装64位的

    1.  从boost官网(www.boost.org)下载boost库,已经更新到1.62.0,下载boost_1_62_0.zip并解压到指定的路径(我选择的路径是E:oost)。

    2.  从开始->所有程序->Microsoft Visual Studio 2010,打开Visual Studio Tools的Visual Studio x64 Win64命令提示。

    3.  切换到解压路径E:oostoost_1_62_0下,运行bootstrap.bat,建立编译工具bjam.exe,b2.exe。

    4. b2 --toolset=msvc-10.0 --build-type=complete link=static address-model=64 threading=multi variant=release

  • 相关阅读:
    make clean,make distclean与make depend的区别
    HSTS 与 307 状态码
    阿里云CentOS中vsftp安装、配置、卸载
    vsftp管理脚本(CentOS6用)
    通过修改源码,免插件实现wordpress去除链接中的category
    (转载)Peter Norvig:十年学会编程
    BT觀念分享和常見問題彙整
    Mysql 字符编码
    Mysql 整数类型的字段的属性设置及常用的函数
    MySql快速入门
  • 原文地址:https://www.cnblogs.com/adjk/p/9441350.html
Copyright © 2011-2022 走看看