工具包下载地址:
open pegasus install for linux
脚本文件pegs_linux.sh
-
#!/bin/bash
-
-
export BUILD_ROOT=/home/xiaohei
-
export PEGASUS_HOME=$BUILD_ROOT/pegasus
-
export PEGASUS_ROOT=$PEGASUS_HOME
-
unset BUILD_ROOT
-
export PEGASUS_PLATFORM=LINUX_IX86_GNU
在shell中执行:source pegs_linux.sh(使设置的环境变量在shell中生效)
进入解压后的pegasus,直接make即可
open pegasus install for windows
批处理文件pegs_windows.bat
-
call "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
-
set PEGASUS_DEBUG=true
-
set PEGASUS_ROOT=D:\pegasus
-
set PEGASUS_HOME=%PEGASUS_ROOT%
-
set PEGASUS_PLATFORM=WIN64_X86_64_MSVC
-
set path=%path%;%PEGASUS_HOME%\bin;C:\usr\local\bin
另外open pegasus 在windows上编译需要visual studio 编译环境,如bat脚本中call 就是指定编译环境路径
将附件中压缩包解压拷贝到C盘根目录下,win + r 进入pegasus所在目录直接make即可
pegs_windows.rar pegs_linux.rar usr.rar
本文参考工具包README.html和
阅读(1716) | 评论(0) | 转发(0) |