编译CMake-2.8.12.2

Reference:http://www.linuxfromscratch.org/blfs/view/7.5/general/cmake.html

Beyond Linux® From Scratch - Version 7.5

Chapter 13. Programming

CMake-2.8.12.2

Introduction to CMake

The CMake package contains a modern toolset used for generating Makefiles. It is a successor of the auto-generated configure script and aims to be platform- and compiler-independent. A significant user of CMake is KDE since version 4.

This package is known to build and work properly using an LFS-7.5 platform.

Package Information

  • Download (HTTP): http://www.cmake.org/files/v2.8/cmake-2.8.12.2.tar.gz

  • Download MD5 sum: 17c6513483d23590cbce6957ec6d1e66

  • Download size: 5.8 MB

  • Estimated disk space required: 222 MB (additional 175 MB for tests)

  • Estimated build time: 1.5 SBU (additional 3.5 SBU for tests)

Additional Downloads

CMake Dependencies

Recommended

cURL-7.35.0libarchive-3.1.2 and expat-2.1.0

Optional

Subversion-1.8.5 (for testing) and Qt-4.8.5 or Qt-5.2.1 (for the Qt-based GUI)

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/cmake

Installation of CMake

Install CMake by running the following commands:

./bootstrap --prefix=/usr       \
            --system-libs       \
            --mandir=/share/man \
            --docdir=/share/doc/cmake-2.8.12.2   --qt-gui&&
make

注意:启用 --system-libs会导致编译时提示很多类库找不到,故可以将其去除。

To test the results, issue: make -k test. Some tests may fail for unknown reasons. Other tests depend on the availability of remote sites, and may fail if those sites are not available.

Now, as the root user:

make install

Command Explanations

--system-libs: This switch forces the build system to link against Zlib, Bzip2, cURL, Expat and libarchive installed on the system.

--qt-gui: This switch enables building of the Qt-based GUI for CMake.

Contents

Installed Programs:ccmake, cmake, cmake-gui (optional), cpack and ctest

Installed Libraries:None

Installed Directories:/usr/share/cmake-2.8 and /usr/share/doc/cmake-2.8.12.2

Short Descriptions

ccmake

is a curses based interactive frontend to cmake.

cmake

is the makefile generator.

cmake-gui

(optional) is the Qt-based frontent to cmake.

cpack

is the CMake packaging program.

ctest

is a testing utility for cmake-generated build trees.

Last updated on 2014-03-02 03:28:39 -0800

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值