1. 进入cherrytree 的 github 页面,链接如下:
https://github.com/giuspen/cherrytree#building-cherrytree-on-macos
2. 在 README.md 的Installation Guide 点击 MacOs
3. 按照下面的指令依次执行

Building Cherrytree on MacOS
Install dependencies:
brew install python3 cmake pkg-config gtksourceviewmm3 gnome-icon-theme gspell libxml++ cpputest pip3 install lxml
Get cherrytree source, compile and run:
git clone https://github.com/giuspen/cherrytree.git //git时可能下载速度很慢导致出错,下面有解决方法
mkdir cherrytree/build //在你终端所在目录创建 cherrytree/build 文件夹
cd cherrytree/build //进入上面创建好的 cherrytree/build 文件夹
cmake ../ //cmake编译
make -j$(sysctl -n hw.ncpu) //执行完这句才可以安装cherrytree
./build/cherrytree //执行这句就可以运行cherrytree,如果这句执行报错 直接执行下面的 make install 就行
To install:
make install
其中执行 git clone https://github.com/giuspen/cherrytree.git 下载速度会非常慢,最后导致网络超时,可以先把github导入到码云上,在码云上面下载速度就快多了
5. 创建快捷方式
当执行完 make install 后所有目录如下:

点击最右边第一个黑色的 cherrytree 图标会显示UNIX可执行文件,双击就会运行cherrytree

可以右键-->制作替身,然后将替身拖动到桌面,以后直接点击桌面的按钮就可以运行cherrytree了,或者你直接按 command+c 复制,然后粘贴到桌面

双击桌面的文件后,运行界面如下:

网友评论