目前0.15版本只有源碼,作者沒有打包,所以只好自己動手了,記錄一下過程。
打包
打包步驟說明
1.首先download源碼 地址
2.安裝CMake
3.cd 到源碼oclint-scripts目錄
4.執行 ./make
5.打包完成后會在oclint-scripts同級目錄生成build/oclint-release,這個就是我們需要的包了
CMake安裝
步驟說明
1.首先download 地址
2.安裝后執行
sudo "/Applications/CMake.app/Contents/bin/cmake-gui" --install
*其它問題說明
CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
沒有Ninja
brew install ninja
這個打包非常的慢,大概花了我1個半小時
打包完成后替換之前的包
修改環境變量
open -e ./.bash_profile
source ~/.bash_profile
查看版本
oclint -version
也可以直接用我打好的,OCLint 0.15下載地址