首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

在windows上使用zlib编译boost 1.62/1.63

在Windows上使用zlib编译Boost 1.62/1.63,需要按照以下步骤进行操作:

  1. 下载zlib库:首先,需要下载zlib库的源代码。可以从zlib的官方网站(https://www.zlib.net/)上下载最新的稳定版本。
  2. 解压zlib源代码:将下载的zlib源代码解压到一个合适的目录。
  3. 编译zlib库:打开命令提示符(cmd),进入到zlib源代码所在的目录。执行以下命令编译zlib库:nmake -f win32/Makefile.msc
  4. 下载Boost库:从Boost官方网站(https://www.boost.org/)下载所需版本的Boost库源代码。
  5. 解压Boost源代码:将下载的Boost源代码解压到一个合适的目录。
  6. 配置Boost库:打开命令提示符(cmd),进入到Boost源代码所在的目录。执行以下命令配置Boost库:bootstrap.bat
  7. 编辑用户配置文件:使用文本编辑器打开Boost源代码目录下的project-config.jam文件,添加以下内容:using zlib : 1.62 : <zlib-path> ;

其中,<zlib-path>是zlib库源代码所在的路径。

  1. 编译Boost库:在命令提示符中执行以下命令编译Boost库:b2 --with-zlib

这将编译Boost库,并将zlib作为其中的一个模块进行链接。

完成以上步骤后,您将成功在Windows上使用zlib编译Boost 1.62/1.63。请注意,以上步骤仅适用于Windows平台,具体操作可能会因系统版本和环境而有所差异。

页面内容是否对你有帮助?
有帮助
没帮助

相关·内容

boost编译汇总

rem 编译64位boost rem 一直以来都是在Win32环境下Build和使用boost,但现在基本上每天都在64位Win7下工作, rem 所以很有必要把这几天的经验总结下来。和32位环境不同, rem x64环境下编译得先从开始菜单启动Visual Studio的Visual Studio 2008 x64 Win64 Command Prompt进入命令提示符, rem 而不是随便打开任意一个命令行窗口就行。然后转到boost根文件夹,运行bootstrap.bat生成x64版的bjam.exe。然后运行命令: rem bjam --build-type=complete toolset=msvc-9.0 threading=multi link=shared address-model=64 rem 即可生成DLL版平台库,如果要编译静态库版就把shared改为static。 rem 只生成一个库的话加上例如–with-python得编译选项,避免生成东西太多、时间太长。 rem 要有address-model=64属性,如果没有这个属性的话,会默认生成32位的平台库,加入这个选项才能生成64位的DLL。 rem 如果要生成Boost.Python库,需要先下载安装x64版的Python安装包,我用的版本是3.2.3。 rem 在使用这个库编写Python扩展DLL时,默认是使用动态库版的Boost.Python,要使用静态版的必须 rem 在C++项目中定义BOOST_PYTHON_STATIC_LIB宏,这样就不用在使用或发布扩展时带着boost_python-vc90-mt-1_50.dll一起了, rem 当然扩展DLL的尺寸会大些,如果做实验没必要这样,编译又慢生成的文件也大。 rem vs工具链版本:vs2003 : msvc-7.1,vs2005 : msvc-8.0,vs2008 : msvc-9.0,vs2010 : msvc-10.0

04

centos6.8下配置lamp

一、系统环境 系统平台:CentOS 6.8 64位 Apache版本: httpd-2.4.25.tar.gz MySQL版本: mysql-5.7.18.tar.gz PHP版本: php-7.1.4.tar.gz phpMyAdmin版本:phpMyAdmin-4.7.0-all-languages.tar.gz 二、安装前准备 在安装PHP之前,应先安装PHP需要的最新版本库文件,例如libxml2、libmcrypt以及GD2库等文件。安装GD2库是为了让PHP支持GIF、PNG和JPEG等图片格式,所以在安装GD2库之前还要先安装最新的zlib、libpng、freetype和jpegsrc等库文件。而且整个环境的搭建中还会穿插安装一些扩展和软件,可按照步骤安装。 1、准备所需库文件(有的安装了后面也没用,但是统统安装吧) autoconf-2.69.tar.gz freetype-2.7.1.tar.gz libgd-2.1.0.tar.gz jpegsrc.v9.tar.gz libmcrypt-2.5.8.tar.gz libpng-1.6.29.tar.gz libxml2-2.7.8.tar.gz zlib-1.2.11.tar.gz apr-1.5.2.tar.gz apr-util-1.5.4.tar.gz pcre-8.40.tar.gz curl-7.54.0.tar.gz 2、安装系统所需依赖库(由于在后面的安装过程中遇到很多缺少依赖的问题,所以现在整理了一下,集中在这一步安装) yum -y install gcc gcc-c++ gcc-g77 make cmake bison ncurses-devel autoconf automake zlib* fiex* libxml* libmcrypt* libtool-ltdl-devel* libaio libaio-devel bzr libtool ncurses5-devel imake libxml2-devel expat-devel 3、卸载之前安装的旧版本环境 a、使用yum remove xxxx命令 b、使用rpm -e xxxx命令 c、删除相关文件rm -rf xxxx

05

Check for working CXX compiler using: Visual Studio 10

Check for working CXX compiler using: Visual Studio 10 Check for working CXX compiler using: Visual Studio 10 – works Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done ERRORNeither ‘svn’ nor ‘git’ as SCM found Git branch Build CGAL from git-branch: n/a Removed not-a-package: .gitattributes;.gitignore;out Installation package directory: D:/Cgal/cgal-releases-CGAL-4.0_vs2005/Installation Maintenance package directory: D:/Cgal/cgal-releases-CGAL-4.0_vs2005/Maintenance Core package directory: D:/Cgal/cgal-releases-CGAL-4.0_vs2005/Core Packagenames: AABB_tree;Algebraic_foundations;Algebraic_kernel_d;Algebraic_kernel_for_circles;Algebraic_kernel_for_spheres;Alpha_shapes_2;Alpha_shapes_3;Apollonius_graph_2;Approximate_min_ellipsoid_d;Arithmetic_kernel;Arrangement_on_surface_2;BGL;Boolean_set_operations_2;Box_intersection_d;CGAL_ipelets;CGALimageIO;Cartesian_kernel;Circular_kernel_2;Circular_kernel_3;Circulator;Combinatorial_map;Conic_2;Convex_decomposition_3;Convex_hull_2;Convex_hull_3;Convex_hull_d;Core;Developers_manual;Distance_2;Distance_3;Envelope_2;Envelope_3;Filtered_kernel;Generator;Geomview;GraphicsView;HalfedgeDS;Hash_map;Homogeneous_kernel;Installation;Interpolation;Intersections_2;Intersections_3;Interval_skip_list;Interval_support;Inventor;Jet_fitting_3;Kernel_23;Kernel_d;Kinetic_data_structures;LEDA;Largest_empty_rect_2;Linear_cell_complex;MacOSX;Maintenance;Manual;Manual_tools;Matrix_search;Mesh_2;Mesh_3;Min_annulus_d;Min_circle_2;Min_ellipse_2;Min_quadrilateral_2;Min_sphere_d;Min_sphere_of_spheres_d;Minkowski_sum_2;Minkowski_sum_3;Modifier;Modular_arithmetic;Nef_2;Nef_3;Nef_S2;Number_types;OpenNL;Optimisation_basic;Optimisation_doc;Partition_2;Periodic_3_triangulation_3;Point_set_2;Point_set_processing_3;Polygon;Polyhedron;Polyhedron_IO;Polynomial;Polytope_distance_d;Principal_component_analysis;Profiling_tools;QP_solver;Qt_widget;Random_numbers;Ridges_3;Robustness;STL_Extension;Scripts;SearchStructures;Segment_Delaunay_graph_2;Skin_surface_3;Snap_rounding_2;Solver_interfa

02
领券