[Merge] pull request #1352 from nanoric/new_doc

updated build instruments
This commit is contained in:
vn.py 2019-01-23 08:53:58 +08:00 committed by GitHub
commit fd4ce4e6a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 14 deletions

View File

@ -4,7 +4,7 @@
所有的封装都是使用脚本生成的使用的脚本为autocxxpy 所有的封装都是使用脚本生成的使用的脚本为autocxxpy
若要看如何构建,请看Build.md 若要看如何构建,请看[build.md](./doc/build.md)
--- ---

View File

@ -13,5 +13,5 @@ vnpy.binding使用CMake作为构建系统正常地使用CMake去构建即可
## 简单教程 ## 简单教程
针对不同操作系统有不同的构建方式,请查看对应的文件。 针对不同操作系统有不同的构建方式,请查看对应的文件。
* Windows : Build.Windows.md * Windows : [build.windows.md](./build.windows.md)
* Linux : Build.Linux.md * Linux : [build.linux.md](./build.linux.md)

View File

@ -9,19 +9,18 @@
## 编译步骤 ## 编译步骤
确保你安装好了Python3CMake还有Visual Studio和C++编译环境之后到vnpy/binding目录下打开控制台执行CMake: 确保你安装好了Python3CMake还有Visual Studio和C++编译环境,下载好[vnpy]并解压。
打开开始菜单-Visual Studio 2017-x64 Native Tools Command Prompt for VS 2017
在弹出的控制台中运行以下命令假设你解压到C:\vnpy下
```bat ```bat
mkdir build cd C:\vnpy
cd build mkdir binding/build
cmake-gui .. cd binding/build
``` cmake -G "Visual Studio 15 2017 Win64" ..
> 如果提示找不到Python请自行设置USER_PYTHON_INCLUDE_DIR和USER_PYTHON_LIBRARIY msbuild vnpy_binding.sln /p:Configuration=Release /p:Platform=x64
打开vnpy_binding.sln编译或者在x64 Native Tools Command Prompt for VS 2017中运行以下代码·
```bat
msbuild vnpy_binding.sln
``` ```
[Python]:https://www.python.org/ftp/python/3.7.2/python-3.7.2-amd64-webinstall.exe [Python]:https://www.python.org/ftp/python/3.7.2/python-3.7.2-amd64-webinstall.exe
[CMake]:https://github.com/Kitware/CMake/releases/download/v3.13.3/cmake-3.13.3-win64-x64.msi [CMake]:https://github.com/Kitware/CMake/releases/download/v3.13.3/cmake-3.13.3-win64-x64.msi
[VS2017]:https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&rel=15# [VS2017]:https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&rel=15#
[vnpy]:https://github.com/vnpy/vnpy/archive/v2.0-DEV.zip