如何使用Visual c++编译器运行Cmake for boost 1.39.0构建库
How to use Visual c++ compiler to run Cmake for boost 1.39.0 building library
我需要编译boost 1.39.0库,在这个版本上,不提供安装程序,以便运行Visual Studio 2008
解决方案。Cmake
抛出这个异常。
-- Building for: Visual Studio 9 2008
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt: 28 (project):
No CMAKE_C_COMPILER could be found.
No CMAKE_CXX_COMPILER could be found.
我不知道如何指定在哪里可以找到visual studio编译器。
我使用boost 1.39.0
和CMake 3.0.0
亲切的问候。
我通常使用bjam:
构建Boost- 运行bootstrap.bat(这是boost源的根目录)。这将创建一个bjam.exe。
- bjam运行。使用以下参数(对于64位):
bjam toolset=msvc-9.0——build-type=complete address-model=64 stage
您将在stage目录中找到所有构建的二进制文件。
相关文章:
- 尝试将 boost::stacktrace 添加到 CMake 项目时出现构建错误
- 如何在 Linux for Windows 上通过 MinGW 构建静态 ICU 的 Boost
- 在 Boost::fiber 中引发的BOOST_ASSERT故障 Visual Studio "Debug" 构建
- 虽然我添加了boost库,但Eclipse并不是用C++构建的.为什么
- 如何使用VS 2015构建Boost 1.44
- 无法从 bazel 使用 boost/iostream 构建项目包
- 使用 python3 为 msvc 构建 boost python - 链接器错误
- C++ CMake 构建错误:未定义对"boost::throw_exception(std::exception const&)"的引用
- BOOST :: MUTEX版本与调试构建
- 将Windows上32位和64位的Boost构建到同一文件夹中
- 当我使用 boost 构建绝对路径时,无限递归
- 当我使用 boost 构建 CAGL 演示时,如何修复错误 1001
- 使用boost构建Python扩展
- boost构建中的多个构建目标
- 在Windows上使用SSL和预构建Boost构建Mongo-Cpp驱动程序
- 使用boost构建NodeJ模块(或任何其他库)
- 使用Boost构建单元测试时发生链接器错误
- 是否可以使用boost构建并发进程间消息队列
- 使用Boost.构建和提升.测试链接器错误
- 当使用(自定义)GCC 4时,Boost构建无法进行c++ 11特性检查.X或5