linux cmake编译指令
时间: 2023-10-15 07:23:57 浏览: 130
在Linux系统下,使用CMake进行编译的指令如下:
1. 首先,你需要安装CMake。你可以从官方网站下载CMake的源代码,并进行编译安装,或者使用包管理器进行安装。
2. 下载CMake的源代码,并解压缩:
```shell
wget https://github.com/Kitware/CMake/releases/download/v3.16.8/cmake-3.16.8.tar.gz
tar -xzf cmake-3.16.8.tar.gz
```
3. 进入解压缩后的目录,并创建一个build文件夹:
```shell
cd cmake-3.16.8
mkdir build
```
4. 进入build文件夹,并执行cmake命令,生成Makefile和其他构建文件:
```shell
cd build
cmake ..
```
5. 执行make命令,进行编译:
```shell
make
```
通过以上步骤,你可以使用CMake在Linux系统下进行编译。这些指令会帮助你在当前目录下创建一个build文件夹,并在其中生成Makefile和其他构建文件,然后使用make命令进行编译。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [paddlepaddle-2.5.0rc1-cp37-cp37m-linux-aarch64.whl](https://download.csdn.net/download/musicsxf/87917049)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Linux学习笔记:使用Cmake编译](https://blog.csdn.net/dingxiaoxv/article/details/126921859)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [linux-cmake常用指令](https://blog.csdn.net/m0_37792813/article/details/126403669)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文