• 5547阅读
  • 2回复

[提问]有偿求助!! 50话费。QT达人请进,关键词::libsearpc [复制链接]

上一主题 下一主题
离线meng0001
 

只看楼主 倒序阅读 楼主  发表于: 2014-05-29
安装完QT等一系列工具之后,搭建起了QT的开发平台
1.空工程可以跑
2.打开已有的源代码(从某开源社区下载的),seafile-client.pro   时候也没问题,问题出现在按了绿色三角运行后
有如下错误:-1: error: libsearpc development package not found

谁能帮我解决下,50话费送上,小弟也不是X二代略表心意,不白白耽误大神时间

在线等,也可加我QQ帮帮小弟:122825655
离线jnny_cn

只看该作者 1楼 发表于: 2014-05-29
上工程,给你看看
离线jnny_cn

只看该作者 2楼 发表于: 2014-05-29



搜了一下,你没安装libsearpc-2.0.8.tar.gz 吧?













Build and use seafile client from source

allo- edited this page Monday at 12:51am · 30 revisions





Pages 59



Clone this wiki locally


Clone in Desktop



Build Seafile Client



The components of Seafile client

Seafile client v2.0 consists of three components:
  • ccnet-daemon: for networking
  • seafile-daemon: for file syncing
  • seafile-applet: GUI


Linux



Preparation

The following list is what you need to install on your development machine. You should install all of them before you build seafile.Package names are according to Ubuntu 12.04. For other Linux distros, please find their corresponding names yourself.
  • autoconf/automake/libtool
  • libevent-dev ( 2.0 or later )
  • libcurl4-openssl-dev (1.0.0 or later)
  • libgtk2.0-dev ( 2.24 or later)
  • uuid-dev
  • intltool ( 0.40 or later)
  • libsqlite3-dev (3.7 or later)
  • valac (only needed if you build from git repo)
  • libjansson-dev
  • libqt4-dev
  • valac
  • cmake
  • libfuse-dev (for seafile >= 2.1)
  • python-simplejson (for seaf-cli)
sudo apt-get install autoconf automake libtool libevent-dev libcurl4-openssl-dev libgtk2.0-dev uuid-dev intltool libsqlite3-dev valac libjansson-dev libqt4-dev cmake libfuse-devFor a fresh Fedora 20 installation, the following will install all dependencies via YUM:$ sudo yum install wget gcc libevent-devel openssl-devel gtk2-devel libuuid-devel sqlite-devel jansson-devel intltool cmake qt-devel fuse-devel libtool vala gcc-c++

Building

First you should get the latest source of libsearpc/ccnet/seafile/seafile-client:Download the source tarball of the latest tag fromFor example, if the latest released seafile client is 2.0.8, then just use the v2.0.8 tags of the four projects. You should get four tarballs:
  • libsearpc-2.0.8.tar.gz
  • ccnet-2.0.8.tar.gz
  • seafile-2.0.8.tar.gz
  • seafile-client-2.0.8.tar.gz
export version=2.0.8alias wget='wget --content-disposition -nc'wget https://github.com/haiwen/libsearpc/archive/v${version}.tar.gzwget https://github.com/haiwen/ccnet/archive/v${version}.tar.gzwget https://github.com/haiwen/seafile/archive/v${version}.tar.gzwget https://github.com/haiwen/seafile-client/archive/v${version}.tar.gzNow uncompress them:tar xf libsearpc-${version}.tar.gztar xf ccnet-${version}.tar.gztar xf seafile-${version}.tar.gztar xf seafile-client-${version}.tar.gzTo build Seafile client, you need first build libsearpc and ccnet, seafile.

set paths

export PREFIX=/usrexport PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH"export PATH="$PREFIX/bin:$PATH"

libsearpc

cd libsearpc-${version}./autogen.sh./configure --prefix=$PREFIXmakesudo make install

ccnet

cd ccnet-${version}./autogen.sh./configure --prefix=$PREFIXmakesudo make install

seafile

cd seafile-${version}/./autogen.sh./configure --prefix=$PREFIX --disable-guimakesudo make install

seafile-client

cd seafile-client-${version}cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX .makesudo make install

custom prefix

when installing to a custom $PREFIX, i.e. /opt, you may need a script to set the path variables correctlycat >$PREFIX/bin/seafile-applet.sh <<END#!/bin/bashexport LD_LIBRARY_PATH="$PREFIX/lib:$LD_LIBRARY_PATH"export PATH="$PREFIX/bin:$PATH"exec seafile-applet $@ENDcat >$PREFIX/bin/seaf-cli.sh <<ENDexport LD_LIBRARY_PATH="$PREFIX/lib:$LD_LIBRARY_PATH"export PATH="$PREFIX/bin:$PATH"export PYTHONPATH=$PREFIX/lib/python2.7/site-packagesexec seaf-cli $@ENDchmod +x $PREFIX/bin/seafile-applet.sh $PREFIX/bin/seaf-cli.shyou can now start the client with $PREFIX/bin/seafile-applet.sh.

Use Seafile Client

After you build and install Seafile client on Linux, you can start it by the seafile-applet command   $ sudo ldconfig  ### (it is need sometimes after compilation)$ seafile-applet ### use seafile-applet.sh if seafile was installed into a custom prefix
快速回复
限100 字节
 
上一个 下一个