cmake ccmake

下载libqrencode源码编译过程
 git clone https://github.com/fukuchi/libqrencode.git

2001  mkdir build
 2002  cd build/
 2004  cmake ..
 2009  make
 2027  sudo make install
 
 2029  cd ~
 2030  qrencode -o test.png nihao

2037  sudo apt-get install ccmake
 2038  sudo apt-get install cmake-curses-gui

2043  cd build/
 2045  ccmake ..
 2046  make
 2047  sudo make install

-------------------------------------------------------------------------------
[email protected]:~/libqrencode/build$ make
Scanning dependencies of target qrencode
[ 10%] Building C object CMakeFiles/qrencode.dir/qrencode.c.o
[ 20%] Building C object CMakeFiles/qrencode.dir/qrinput.c.o
[ 30%] Building C object CMakeFiles/qrencode.dir/bitstream.c.o
[ 40%] Building C object CMakeFiles/qrencode.dir/qrspec.c.o
[ 50%] Building C object CMakeFiles/qrencode.dir/rsecc.c.o
[ 60%] Building C object CMakeFiles/qrencode.dir/split.c.o
[ 70%] Building C object CMakeFiles/qrencode.dir/mask.c.o
[ 80%] Building C object CMakeFiles/qrencode.dir/mqrspec.c.o
[ 90%] Building C object CMakeFiles/qrencode.dir/mmask.c.o
Linking C static library libqrencode.a
[ 90%] Built target qrencode
Scanning dependencies of target qrenc
[100%] Building C object CMakeFiles/qrenc.dir/qrenc.c.o
Linking C executable qrencode
[100%] Built target qrenc
-------
[email protected]:~/libqrencode/build$ make
[ 10%] Building C object CMakeFiles/qrencode.dir/qrencode.c.o
[ 20%] Building C object CMakeFiles/qrencode.dir/qrinput.c.o
[ 30%] Building C object CMakeFiles/qrencode.dir/bitstream.c.o
[ 40%] Building C object CMakeFiles/qrencode.dir/qrspec.c.o
[ 50%] Building C object CMakeFiles/qrencode.dir/rsecc.c.o
[ 60%] Building C object CMakeFiles/qrencode.dir/split.c.o
[ 70%] Building C object CMakeFiles/qrencode.dir/mask.c.o
[ 80%] Building C object CMakeFiles/qrencode.dir/mqrspec.c.o
[ 90%] Building C object CMakeFiles/qrencode.dir/mmask.c.o
Linking C shared library libqrencode.so
[ 90%] Built target qrencode
Linking C executable qrencode
[100%] Built target qrenc
----------------------------------------------------------------------------

[email protected]:~/libqrencode/build$ make
[ 90%] Built target qrencode
[100%] Built target qrenc

-----------------------------------------------------------------------------
[email protected]:~/libqrencode/build$ sudo make install
[sudo] password for wang:
[ 90%] Built target qrencode
[100%] Built target qrenc
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/bin/qrencode
-- Installing: /usr/local/share/man/man1/qrencode.1
-----------------
[email protected]:~/libqrencode/build$ sudo make install
[ 90%] Built target qrencode
[100%] Built target qrenc
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/bin/qrencode
-- Removed runtime path from "/usr/local/bin/qrencode"
-- Up-to-date: /usr/local/share/man/man1/qrencode.1
-- Installing: /usr/local/lib/pkgconfig/libqrencode.pc
-- Installing: /usr/local/lib/libqrencode.so
-- Installing: /usr/local/include/qrencode.h
-------------------------------------------------------------------------

This compiles and installs the library and header file to the appropriate directories. By default, /usr/local/lib and /usr/local/include.

You can change the destination directory by passing some options to the configure script. Run "./configure --help" to see the list of options.

It also installs a binary "qrencode" to /usr/local/bin. If you want not to install it, give "--without-tools" option to the configure script.

库:/usr/local/lib

头文件:/usr/local/include

二进制可执行文件:/usr/local/bin

时间: 2024-08-27 21:25:48

cmake ccmake的相关文章

Linux下PSUADE安装全过程(CentOS6.4——RPMforge——cmake、ccmake——PAUADE)

由于项目需要,需使用PSUADE软件(PSUADE介绍).之前从没接触过Linux系统,因此走了不少弯路,在这里总结下 一.CentOS6.4系统安装 建议不要装ubuntu,直接装CentOS6.4,32位64位的都可以.安装参考:U盘安装CentOS 6.4 + Windows 7双系统 (Windows 7下安装 CentOS 6.4). 二.安装第三方软件(epel.rpm) 参照第一步完成系统安装后,首先安装第三方源RPMforge.参考:安装 RPMforge:让CentOS6 yu

Ubuntu编译环境构建(ssh)

# Jason Gao # [email protected] # Now in Xidian University 1 基础构建 sudo apt-get install subversion git-core git-svn sudo apt-get install make gcc g++ libX11-dev libXt-dev libgl1-mesa-dev libosmesa6-dev libglu1-mesa-dev libfontconfig-dev libxrender-dev

CMake命令:CMake构建系统的骨架

CMake命令:CMake构建系统的骨架 80个命令(转载自http://www.cnblogs.com/coderfenghc/archive/2012/06/16/CMake_ch_01.html#2996205) CMD#1: add_custom_command为生成的构建系统添加一条自定义的构建规则. add_custom_command命令有两种主要的功能:第一种是为了生成输出文件,添加一条自定义命令. add_custom_command(OUTPUT output1 [outpu

CMake 使用方法(转)

CMake是一个跨平台的安装(编译)工具,可以用简单的语句来描述所有平台的安装(编译过程).他能够输出各种各样的makefile或者project文件,能测试编译器所支持的C++特性,类似UNIX下的automake. CMake 使用方法 CMake的所有的语句都写在一个叫:CMakeLists.txt 的文件中.当CMakeLists.txt文件确定后,可以用ccmake命令对相关 的变量值进行配置.这个命令必须指向CMakeLists.txt所在的目录.配置完成之后,应用cmake命令生成

configue cmake make make install

./configure是源代码安装的第一步,主要的作用是对即将安装的软件进行配置,检查当前的环境是否满足要安装软件的依赖关系:cmake也是源代码安装的第一步,配置作用:如果是二进制的包,解压后直接就能使用 CMake 是一个跨平台的自动化建构系统,它使用一个名为 CMakeLists.txt 的文件来描述构建过程,可以产生标准的构建文件,如 Unix 的 Makefile 或Windows Visual C++ 的 projects/workspaces .文件 CMakeLists.txt

Ubuntu下安装最新版本的CMake

本文采用Binary distributions的安装方式: 在链接:http://www.cmake.org/download/ 下载cmake-3.3.0-rc2-Linux-x86_64.tar.gz二进制分发包,在Linux下通过 tar -zxvf cmake-3.3.0-rc2-Linux-x86_64.tar.gz命令进行解压. Ubuntu自带的apt-get install方式安装的CMake版本有点老.项目中需要最新版本的CMake 2.8.9, 这个版本还是采用CPack打

CMake 入门实战【转】

本文转载自:http://www.hahack.com/codes/cmake/ 什么是 CMake All problems in computer science can be solved by another level of indirection. David Wheeler 你或许听过好几种 Make 工具,例如 GNU Make ,QT 的 qmake ,微软的 MS nmake,BSD Make(pmake),Makepp,等等.这些 Make 工具遵循着不同的规范和标准,所执

Linux命令:Mysql系列之二cmake编译安装使用mysqladmin管理工具

MySQL相关概念:MySQL是单进程多线程接收应用的请求. SQL/MySQL 1.事务,隔离,并发控制,锁 2.用户和权限 3.监控 STATUS 4.索引类型:查询 VARIABLES 5.备份和恢复 6.复制功能 7.集群 DML:数据操作语言 INSERT:插入 DELETE:删除 SELECT:挑选,选择,查询 UPDATE:更新,修改 DDL:数据定义语言 CREATE:创建 DROP:删除 ALTER:修改 DCL:数据控制语言 GRANT:授权 REVOKE:取消权限 MySQ

浅学CMake

CMake是一个跨平台的安装(编译)工具,可以用简单的语句来描述所有平台的安装(编译过程).CMake不构建出最终的可执行文件,而是产生一个标准的建构档(即根据目标用户的平台进一步生成所需的本地化 Makefile 和工程文件),然后再依一般的建构方式使用,从而实现软件的跨平台. <1>Linux下CMake的安装: 先到官网下载CMake源码包:https://cmake.org/download/ 打开终端依次执行以下命令: tar -xzvf cmake-2.6.4.tar.gz cd