1

在openSUSE上编译WizNote(为知笔记)

 2 years ago
source link: https://blog.chih.me/Compiler-WizNote-in-openSUSE.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

在openSUSE上编译WizNote(为知笔记)

0 Comments

Wiznote--为知笔记是一款优秀的全平台云笔记客户端,当初我从Windows切换到纯Linux平台的时候,就同时把我的在线笔记从Evernote切换到了WizNote

openSUSE的个人仓库里其实是有WizNotehttps://build.opensuse.org/package/show?project=home%3Agmg137&package=WizNote, 但它并不是最新版本。所以我打算自己编译一个最新版自用,同时因为是自用,直接源码编译安装了,并没有打包。如果需要在openSUSE下打包,可以参照苏姐的视频教学http://www.bilibili.com/video/av688454

  • 从github 上面 clone 为知笔记客户端源码到本地

    $ git clone https://github.com/WizTeam/WizQTClient.git
    
  • checkout到你想要的版本

    $ git checkout v2.1.15
    

准备编译环境

# zypper in fdupes hicolor-icon-theme update-desktop-files boost-devel cmake chrpath

安装Qt5

# zypper in libqt5-qtbase-devel libqt5-qttools-devel libQt5WebKit5-devel libQt5WebKitWidgets-devel

生成Makefile

创建一个build目录

$ cd ./WizQTClient
$ mkdir build

cmake生成Makefile

$ cd build
$ cmake \
-DWIZNOTE_USE_QT5=YES \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
../WizQTClient
$ make -jx

x为你cpu核数,并行编译,加快速度。

$ sudo make install

执行make install安装到系统目录时需root权限。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK