Debian7 编译WizNote Qt Project(为知笔记)

2014/03/07 01:28
阅读数 3K

Debian7 编译WizNote Qt Project(为知笔记)

Debian 编译为知笔记, 中间的心酸过程我就不吐槽了。 作为一名不会c++ & QT 的,编译 为知笔记 ,的确不是个容易的事啊。。

编译步骤:

  • 前面一篇文章 已经写了,如何从github 上面 clone 为知笔记 客户端到本地。
  • 切换到最新的分支
git checkout testing

准备编译环境

安装编译工具

sudo apt-get install build-essential

安装cmake

sudo apt-get install cmake

安装qt4

sudo apt-get install libqt4-dev
sudo apt-get install qtcreator

安装zlib

sudo apt-get install zlib1g-dev

QtCreator打开工程文件

http://weirdbird.u.qiniudn.com/wz6.png http://weirdbird.u.qiniudn.com/wz7.png

在cmake参数中,可以输入下面的参数:

-DCMAKE_BUILD_TYPE=Debug

如下图所示

http://weirdbird.u.qiniudn.com/wz1.png

然后执行 cmake

执行好后,就可以打开工程。将当前活动工程切换为wiznote ,开始build 了

http://weirdbird.u.qiniudn.com/wz2.png

build 好后 , 就可以启动了

http://weirdbird.u.qiniudn.com/wzt.png

成功,开始同步数据

http://weirdbird.u.qiniudn.com/wz3.png http://weirdbird.u.qiniudn.com/wza.png


展开阅读全文
打赏
1
4 收藏
分享
加载中
按照楼主说的,编出来了!!!79
2015/07/10 13:26
回复
举报

引用来自“coolcao”的评论

我进行编译的时候出现如下错误,不知道怎么回事,可否帮我看一下:
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/smmintrin.h:406:1: note: -fabi-version=6 (or =0) avoids this error with a change in mangling
_mm_insert_epi32 (__m128i __D, int __S, const int __N)
^
In file included from /home/coolcao/Downloads/WizQTClient/lib/cryptopp/seckey.h:10:0,
from /home/coolcao/Downloads/WizQTClient/lib/cryptopp/strciphr.h:31,
from /home/coolcao/Downloads/WizQTClient/lib/cryptopp/panama.h:4,
from /home/coolcao/Downloads/WizQTClient/lib/cryptopp/panama.cpp:9:
/home/coolcao/Downloads/WizQTClient/lib/cryptopp/simple.h:167:39: error: '__m128i _mm_shuffle_epi8(__m128i, __m128i)' conflicts with a previous declaration
class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Store : public AutoSignaling<InputRejecting<BufferedTransformation> >
^
In file included from /home/coolcao/Downloads/WizQTClient/lib/cryptopp/panama.cpp:11:0:
/home/coolcao/Downloads/WizQTClient/lib/
wiz自带的cryptopp库有问题,可以在WizNote/lib/CMakeLists.txt里面吧cryptopp的那行add加#注释掉。并且从源里安装libcrypto++-dev这个包。然后build。如果提示链接lcryptlib问题,就编辑WizNote/src/CMakeLists.txt文件,拉到最下面,将两个cryptlib注释掉,换为cryptopp再build即可。
2015/06/02 21:32
回复
举报
我进行编译的时候出现如下错误,不知道怎么回事,可否帮我看一下:
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/smmintrin.h:406:1: note: -fabi-version=6 (or =0) avoids this error with a change in mangling
_mm_insert_epi32 (__m128i __D, int __S, const int __N)
^
In file included from /home/coolcao/Downloads/WizQTClient/lib/cryptopp/seckey.h:10:0,
from /home/coolcao/Downloads/WizQTClient/lib/cryptopp/strciphr.h:31,
from /home/coolcao/Downloads/WizQTClient/lib/cryptopp/panama.h:4,
from /home/coolcao/Downloads/WizQTClient/lib/cryptopp/panama.cpp:9:
/home/coolcao/Downloads/WizQTClient/lib/cryptopp/simple.h:167:39: error: '__m128i _mm_shuffle_epi8(__m128i, __m128i)' conflicts with a previous declaration
class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Store : public AutoSignaling<InputRejecting<BufferedTransformation> >
^
In file included from /home/coolcao/Downloads/WizQTClient/lib/cryptopp/panama.cpp:11:0:
/home/coolcao/Downloads/WizQTClient/lib/
2015/05/10 14:39
回复
举报
40加官方源直接装好了。
2014/04/07 13:58
回复
举报
更多评论
打赏
4 评论
4 收藏
1
分享
返回顶部
顶部