Skip to content

Install from source eng

xiehuc edited this page Aug 24, 2013 · 1 revision

Build dependencies

Install the following packages (Note that the package names may be different on your distribution)

gcc g++ make cmake pkg-config glib(dev package) curl(dev package) libpurple(dev package) 
sqlite3(dev package) libev(dev package) zlib(dev package) js(dev package)

On Ubuntu/Debian, you can use the followings

$ sudo apt-get install build-essential cmake pkg-config libglib2.0-dev libcurl4-openssl-dev\
  libpurple-dev libsqlite3-dev libev-dev

If you are installing from the dev branch, you might need to install the following additional package:

$ sudo apt-get install libmozjs185-dev

If you want to enable the support for Ubuntu online account, also install

$ sudo apt-get install libaccount-plugin-1.0-dev libaccounts-glib-dev empathy

Please note that the compilation requires libpurple>=2.8. And it's recommended to have curl>=7.22.0 to make the picture sending/receiving works as expected.

On Fedora, you can use the followings

$ sudo yum install gcc gcc-c++ make cmake pkgconfig glib-devel libcurl-devel libpurple-devel\
  sqlite-devel libev-devel zlib-devel js-devel

If you are installing from the dev branch, you might need to install the following additional package:

$ sudo yum install js-devel

Build and install

$ git clone https://github.com/xiehuc/pidgin-lwqq.git

$ cd pidgin-lwqq

If you are installing from the dev branch, you need to type in the following additional command:

$ git checkout dev

$ git submodule init
$ git submodule update
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install

Note: you didn't need to configure out CMAKE_INSTALL_PREFIX macro.because pidgin-lwqq would detect what's path of libpurple plugin.

If you want to enable Ubuntu online account support, replace the previous cmake command as follows

$ cmake -DUOA=On ..

Other Flags can see README.md

Hint

You can use checkinstall rather than "make install", you can uninstall the package easily that way round. Please refer to: https://help.ubuntu.com/community/CheckInstall

Clone this wiki locally