-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e83a46b
commit 5661c4c
Showing
3 changed files
with
48 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<h1 align="center"> | ||
CGraph 编译说明 | ||
</h1> | ||
|
||
* 本工程支持`MacOS`、`Linux`、`Windows`和`Android`系统,无任何第三方依赖。默认使用C++11版本,推荐使用C++17版本,暂不支持C++11以下的版本 | ||
|
||
|
||
* 使用`CLion`(推荐)作为IDE的开发者,打开`CMakeLists.txt`文件作为工程,即可编译通过。本项目已经获得 [Jetbrains 开源开发许可证](https://www.jetbrains.com/zh-cn/community/opensource/#support ),感谢 Jetbrains 提供优秀的IDE,和对项目的认可 | ||
|
||
|
||
* Windows环境中,使用`Visual Studio`(2013版或以上版本)作为IDE的开发者,安装cmake之后,输入以下指令,即可生成`CGraph.sln`文件 | ||
```shell | ||
$ git clone https://github.com/ChunelFeng/CGraph.git | ||
$ cd CGraph | ||
$ cmake . -Bbuild # 在 build 文件夹下,生成对应的 CGraph.sln 文件 | ||
``` | ||
|
||
* MacOS环境中,使用`Xcode`作为IDE的开发者,安装cmake之后,输入以下指令,即可生成`CGraph.xcodeproj`文件 | ||
```shell | ||
$ git clone https://github.com/ChunelFeng/CGraph.git | ||
$ cd CGraph | ||
$ mkdir build && cd build | ||
$ cmake .. -G Xcode # 在 build 文件夹下,生成对应的 CGraph.xcodeproj 文件 | ||
``` | ||
|
||
* Linux环境开发者,在命令行模式下,输入以下指令,即可编译通过 | ||
```shell | ||
$ git clone https://github.com/ChunelFeng/CGraph.git | ||
$ cd CGraph | ||
$ cmake . -Bbuild | ||
$ cd build | ||
$ make -j8 | ||
``` | ||
|
||
* 提供online版本的编译调试环境,点击进入页面:[CGraph env online](https://gitpod.io/#/github.com/ChunelFeng/CGraph) ,通过github账号登录。进入后,输入以下指令,即可编译通过,并查看执行结果 | ||
```shell | ||
$ sudo apt-get install cmake -y # 安装cmake | ||
$ ./CGraph-build.sh # 编译CGraph工程,生成的内容在同级/build/文件夹中 | ||
$ ./build/tutorial/T00-HelloCGraph # 运行第一个实例程序,并且在终端输出 Hello, CGraph. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters