cgal4.4+boost1.55+cmake2.86_MSVC90

2023-07-08 10:25:36 浏览数 (2)

注意

BOOST_INCLUDE_DIR

用/D:devlibboost_1_71_0

路径D:devlibboost_1_71_0用/反斜杠

Boost_USE_STATIC_LIB

CGAL_Boost_USE_STATIC_LIBS:BOOL=ON,这个默认是off,编译静态库,要修改,否则找不到

代码语言:javascript复制
CGAL/config.h(155) : fatal error C1189: #error :  "This compiler does not have a working STL"

这个错误可能是CGAL_CFG_NO_STL_COMPILED这个参数的问题,太坑了

代码语言:javascript复制
CGAL_CFG_NO_STL:BOOL=OFF
代码语言:javascript复制
//Result of TRY_COMPILE
CGAL_CFG_NO_NEXTAFTER_COMPILED:INTERNAL=FALSE
CGAL_CFG_NO_STL:INTERNAL=0

注意

以下vs2008

代码语言:javascript复制
6)使用bjam之前需要修改配置文件user-config.jam。搜索或直接打开D:/Boost/tools/build/v2/user-config.jam 。

首先找到以下模块:

# ----------------------
# MSVC configuration.

# ----------------------

修改该模块最后一行,去掉注释的“#”号,将msvc版本设置正确:

# Configure specific msvc version (searched for in standard locations and PATH).
 using msvc : 9.0 ;

其次找到以下模块:
代码语言:javascript复制
# ----------------------
# STLPort configuration.
# ----------------------

修改该模块最后一行,如:

# Configure specifying location of both headers and libraries explicitly.
 using stlport : 5.2.1 : "D:/STLport/stlport" : "D:/STLport/lib" ;

7)进入Boost根目录,如执行命令: " cd d:/Boost  " 。

8)执行命令: " bjam --toolset=msvc --build-type=complete stdlib=stlport stage  "

9)编译成功后可在 D:/Boost/stage/lib 目录下找到所有的库文件,之后可将D:/Boost/bin.v2目录删除以节约空间。

输出目录

代码语言:javascript复制
D:/cgal/cgal-releases-CGAL-4.4/outPut/libCgal_x64_msvc80_release
D:/cgal/cgal-releases-CGAL-4.4/outPut/libCgal_win32_msvc80_release
D:/cgal/cgal-releases-CGAL-4.4/outPut/libCgal_x64_msvc90_release
D:/cgal/cgal-releases-CGAL-4.4/outPut/libCgal_win32_msvc90_release
D:/cgal/cgal-releases-CGAL-4.4/outPut/libCgal_x64_msvc100_release
D:/cgal/cgal-releases-CGAL-4.4/outPut/libCgal_win32_msvc100_release
D:/cgal/cgal-releases-CGAL-4.4/outPut/libCgal_x64_msvc110_release
D:/cgal/cgal-releases-CGAL-4.4/outPut/libCgal_win32_msvc110_release


D:/cgal/cgal-releases-CGAL-4.4/outPut/libCgal_x64_msvc80_debug
D:/cgal/cgal-releases-CGAL-4.4/outPut/libCgal_win32_msvc80_debug
D:/cgal/cgal-releases-CGAL-4.4/outPut/libCgal_x64_msvc90_debug
D:/cgal/cgal-releases-CGAL-4.4/outPut/libCgal_win32_msvc90_debug
D:/cgal/cgal-releases-CGAL-4.4/outPut/libCgal_x64_msvc100_debug
D:/cgal/cgal-releases-CGAL-4.4/outPut/libCgal_win32_msvc100_debug
D:/cgal/cgal-releases-CGAL-4.4/outPut/libCgal_x64_msvc110_debug
D:/cgal/cgal-releases-CGAL-4.4/outPut/libCgal_win32_msvc110_debug

bjam

代码语言:javascript复制
SET PATH=%PATH%;E:Cgalcmakeboost_1_40_toolstoolsbin;
bjam --toolset=msvc-10.0 --with-system --with--thread stage debug release threading=multi link=shared link=static runtime-link=shared runtime-link=static 
 
bjam --toolset=msvc-10.0 install --prefix=E:/Cgal/cmake/boost_1_40_tools/tools/output --without-python --with-system --with--thread --build-type=complete  link=static  threading=multi  runtime-link=static debug release 
bjam --toolset=msvc-10.0 install --prefix=E:/Cgal/cmake/boost_1_40_tools/tools/output --without-python --with-system --with--thread --build-type=complete  link=static  threading=multi  runtime-link=static debug release 
bjam stage --toolset=msvc-12.0 --with-system --with--thread --stagedir="binvc12-x32" link=static runtime-link=static threading=multi debug release
bjam stage --toolset=msvc-10.0 --with-system --with--thread --stagedir="binvc10-x32" link=static runtime-link=static threading=multi debug release
  bjam -–stage -–toolset=msvc-10.0 -–stagedir=”C:SDKboostbin” link=static runtime-link=static threading=multi debug release
  bjam stage -–toolset=msvc-10.0 -–stagedir=”C:SDKboostbin” link=static runtime-link=static threading=multi debug release
  bjam toolset=msvc-10.0 stage -–stagedir=”C:SDKboostbin” link=static runtime-link=static threading=multi debug release
  bjam toolset=msvc-10.0
  bjam toolset=vc10.0
  bjam --toolset=10.0
  bjam --toolset=vc10
  bjam --toolset=msvc-10.0 --prefix=E:/Cgal/cmake/boost_1_40_tools/tools/output --without-python --build-type=complete  link=shared  threading=multi install
  bjam se –toolset=msvc-10.0 –without-python –sedir=”E:SDKboost_1_45_0vs2010” link=shared runtime-link=shared threading=multi debug release 
  
  bjam stage --toolset=msvc-10.0 --with-system --with-thread --stagedir="binvc10-x64" link=static runtime-link=static threading=multi debug release
  bjam --toolset=msvc-10.0 --prefix="vc10-x64output" --with-system --with-thread --build-type=complete  link=static runtime-link=static  threading=multi debug release install
  bjam address-model=64 --toolset=msvc-10.0 --prefix="outputvc10-x64" --with-system --with-thread  link=static runtime-link=static  threading=multi debug release install
  bjam address-model=32 --toolset=msvc-10.0 --prefix="outputvc10-x32" --with-system --with-thread  link=static runtime-link=static  threading=multi debug release install
  
  bjam stage address-model=64 --toolset=msvc-10.0 --prefix="outputvc10-x64" --with-system --with-thread  link=static runtime-link=static  threading=multi debug release install
  bjam stage address-model=32 --toolset=msvc-10.0 --prefix="outputvc10-x32" --with-system --with-thread  link=static runtime-link=static  threading=multi debug release install
  cmake -G"Visual Studio 10 Win64" -DWITH_examples=OFF -DWITH_demos=OFF -DCMAKE_BUILD_TYPE=Release
	rem cmake -G"Visual Studio 10 Win64" -DWITH_examples=OFF -DWITH_demos=OFF -DCMAKE_BUILD_TYPE=Debug/Release   这个不对
	cmake -G"Visual Studio 10 Win64" -DWITH_examples=OFF -DWITH_demos=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
	cmake -G"Visual Studio 10" -DWITH_examples=OFF -DWITH_demos=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
	cmake -G"Visual Studio 10 2010" -DWITH_examples=OFF -DWITH_demos=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
  cmake -DCMAKE_BUILD_TYPE=Debug/Release
  cmake  -G"Visual Studio 10 2010"
echo 当前路径是 �%

bjam stage address-model=64 --toolset=msvc-9.0 --with-system --with-thread  link=static runtime-link=static  threading=multi debug release

0 人点赞