![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
cmake
StrugglePeach
The harder I work,the lucker I get!
展开
-
关于make提示must be enabled with the -std=c++11 or -std=gnu++11 compiler options
在make后,出现错误,提示如下:/usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental,原创 2016-12-02 19:03:19 · 12208 阅读 · 0 评论 -
cmake学习
(.so)共享库,shared object:节省空间,在运行时去连接,如果执行机器上没有这些库文件就不能执行。(.a)静态库,archive:静态库和程序化为一体,不会分开。通过 ldd命令可以查看一个可执行程序所依赖的的共享库。使用环境变量LD_LIBRARY_DIRECTORY可以指定共享库位置一、编译共享库:ADD_LIBRARY(hello SHARED转载 2016-12-02 19:27:41 · 364 阅读 · 0 评论 -
cmake 教程
CMake入门教程参考文献:http://www.ibm.com/developerworks/cn/linux/l-cn-cmake/index.html官方网址:http://www.cmake.org/下载网址:http://www.cmake.org/download/当前版本:3.1rc3本文基于CMake 2.8版本编写。转载 2016-12-02 19:39:24 · 491 阅读 · 0 评论 -
程序编译提示找不到头文件的解决方法
在编写的源程序中,使用cmake进行编译,提示OpenNI.h:no such file or directory我安装的openNI安装在/opt目录下,在home目录下的.bashrc文件中已经添加了系统环境变量 export OPENNI2_INCLUDE=”/opt/OpenNI/OpenNI-Linux-x64-2.2/Include” export OPENNI2_REDIS原创 2017-01-03 12:58:30 · 15539 阅读 · 1 评论