Install pidgin-lwqq in Linux

Source: Internet
Author: User
Tags decompress zip

Generally, follow the online tutorial:



Sudo add-Apt-repository PPA: lainme/pidgin-lwqq

Sudo apt-Get update

Sudo apt-Get install pidgin-lwqq libpurple0

However, sometimes the network is poor, causing the first step to fail. If the third part cannot find the file, compile it as follows:

For Your Own compilation, refer to the compilation dependency here.


Sudo apt-Get install build-essential cmake PKG-config libglib2.0-dev libcurl4-openssl-dev libpurple-Dev

Sqlite3 may be missing to install the related Dev package,
For example sqlite3 => libsqlite3-dev libev-Dev

The current version requires libpurple> = 2.8. Make is stuck in this step (my system is Ubuntu 10.04 ):

Code: [2, 5%] Building C object src/cmakefiles/webqq. DIR/liblwqq/async. c. o

/Home/XX/downloads/pidgin-lwqq-master/src/liblwqq/async. C: In function 'ev _ run_thread ':

/Home/XX/downloads/pidgin-lwqq-master/src/liblwqq/async. C: 170: Warning: Implicit declaration of function 'ev _ run'

/Home/XX/downloads/pidgin-lwqq-master/src/liblwqq/async. C: In function 'lwqq _ async_global_quit ':

/Home/XX/downloads/pidgin-lwqq-master/src/liblwqq/async. C: 243: Warning: Implicit declaration of function 'ev _ break'

/Home/XX/downloads/pidgin-lwqq-master/src/liblwqq/async. C: 243: Error: 'evbreak _ all' undeclared (first use in this function)

/Home/XX/downloads/pidgin-lwqq-master/src/liblwqq/async. C: 243: Error: (each undeclared identifier is reported only once

/Home/XX/downloads/pidgin-lwqq-master/src/liblwqq/async. C: 243: Error: for each function it appears in .)

Make [2]: *** [src/cmakefiles/webqq. DIR/liblwqq/async. c. o] Error 1

Make [1]: *** [src/cmakefiles/webqq. DIR/All] Error 2

Make: *** [all] Error 2






Thank you!




Install libev



Lucid or natty is libev3, but pidgin-lwqq requires libev4. You can download libev4's Deb package (https://launchpad.net /~ Lainme/+ archive/
.../+ Packages)


Or download the oneiric libev4 Source Code Compiled by yourself (may be oneiric Deb package can be used directly, first try, no compilation), the address is the http://packages.ubuntu.com/oneiric/libev4. The left navigation bar contains the source code link, "Download
The following is the Deb package address in libev4.


It turns out that the Ubuntu version is not debain. Use this source code for compilation.

Install pidgin first

sudo yum install pidgin

Then download pidgin-lwqq
Address: https://github.com/xiehuc/pidgin-lwqq
After the download is successful, the file name is: pidgin-lwqq-master.zip
Decompress ZIP

Lwqq needs to use cmake, so install cmake

sudo yum install cmake

After installation is complete. Enter the directory pidgin-lwqq-master/cmake to execute the command

cmake .. -DSSL=On

Error: the message "Purple missing" is displayed.

[leeassamite@leeassamite-NB cmake]$ cmake .. -DSSL=On-- The C compiler identification is GNU 4.7.2-- The CXX compiler identification is GNU 4.7.2-- Check for working C compiler: /usr/bin/cc-- Check for working C compiler: /usr/bin/cc -- works-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Check for working CXX compiler: /usr/bin/c++-- Check for working CXX compiler: /usr/bin/c++ -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Found PkgConfig: /usr/bin/pkg-config (found version "0.27") -- checking for module 'purple'--   package 'purple' not foundCMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:279 (message):  A required package was not foundCall Stack (most recent call first):  /usr/share/cmake/Modules/FindPkgConfig.cmake:333 (_pkg_check_modules_internal)  CMakeLists.txt:13 (pkg_check_modules)-- checking for module 'glib-2.0'--   package 'glib-2.0' not foundCMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:279 (message):  A required package was not foundCall Stack (most recent call first):  /usr/share/cmake/Modules/FindPkgConfig.cmake:333 (_pkg_check_modules_internal)  CMakeLists.txt:14 (pkg_check_modules)-- checking for module 'libcurl'--   found libcurl, version 7.27.0-- checking for module 'sqlite3'--   found sqlite3, version 3.7.13libpurple version:Package purple was not found in the pkg-config search path.Perhaps you should add the directory containing `purple.pc'to the PKG_CONFIG_PATH environment variableNo package 'purple' foundwould install to: libpurple version outdate-- Found Gettext: /usr/bin/msgmerge (found version "0.18.1") CMake Error at cmake/FindEV.cmake:39 (MESSAGE):  Could not find libev libraryCall Stack (most recent call first):  CMakeLists.txt:47 (find_package)-- Configuring incomplete, errors occurred!

Install the purple Development Library

sudo yum install libpurple-devel

After the installation is complete, run the cmake command again.

[leeassamite@leeassamite-NB cmake]$ cmake .. -DSSL=On-- checking for module 'purple'--   found purple, version 2.10.7-- checking for module 'glib-2.0'--   found glib-2.0, version 2.34.2libpurple version:2.10.7would install to: /usr/lib64/purple-2CMake Error at cmake/FindEV.cmake:39 (MESSAGE):  Could not find libev libraryCall Stack (most recent call first):  CMakeLists.txt:47 (find_package)-- Configuring incomplete, errors occurred!

An error is reported. If libev is missing, install libev.

sudo yum install libev-devel

After libdev is installed, it is compiled again.

[Leeassamite @ leeassamite-Nb cmake] $ cmake .. -dssl = onlibpurple version: 2.10.7wocould install to:/usr/lib64/purple-2 -- found libev:/usr/lib64/libev. so -- creating ing done -- generating done -- build files have been written to:/home/leeassamite/download/pidgin-lwqq-master/cmake

Run the make command. The compilation is successful.

[Leeassamite @ leeassamite-Nb cmake] $ makescanning dependencies of target webqq [4%] Building C object src/cmakefiles/webqq. DIR/liblwqq/URL. c. O [8%] Building C object src/cmakefiles/webqq. DIR/liblwqq/md5.c. O [13%] Building C object src/cmakefiles/webqq. DIR/liblwqq/Unicode. c. O [17%] Building C object src/cmakefiles/webqq. DIR/liblwqq/logger. c. O [21%] Building C object src/cmakefiles/webqq. DIR/liblwqq/login. c. O [26%] Building C object src/cmakefiles/webqq. DIR/liblwqq/JSON. c. O [30%] Building C object src/cmakefiles/webqq. DIR/liblwqq/MSG. c. O [34%] Building C object src/cmakefiles/webqq. DIR/liblwqq/type. c. O [39%] Building C object src/cmakefiles/webqq. DIR/liblwqq/smemory. c. O [43%] Building C object src/cmakefiles/webqq. DIR/liblwqq/info. c. o/home/leeassamite/download/pidgin-lwqq-master/src/liblwqq/info. c: 46: 12: Warning: [-wunused-function] [47%] Building C object src/cmakefiles/webqq is not used after 'lwqq _ gdb_list_group_member 'is defined. DIR/liblwqq/lwdb. c. O [52%] Building C object src/cmakefiles/webqq. DIR/liblwqq/swsqlite. c. O [56%] Building C object src/cmakefiles/webqq. DIR/liblwqq/vplist. c. O [60%] Building C object src/cmakefiles/webqq. DIR/liblwqq/util. c. O [65%] Building C object src/cmakefiles/webqq. DIR/liblwqq/internal. c. O [69%] Building C object src/cmakefiles/webqq. DIR/liblwqq/async. c. o/home/leeassamite/download/pidgin-lwqq-master/src/liblwqq/async. c: 318: 12: Warning: [-wunused-function] [73%] Building C object src/cmakefiles/webqq is not used after 'lwqq _ gdb_still_waiting 'is defined. DIR/liblwqq/HTTP. c. o/home/leeassamite/download/pidgin-lwqq-master/src/liblwqq/HTTP. c: 97: 12: Warning: [-wunused-function] [78%] Building C object src/cmakefiles/webqq is not used after 'lwqq _ gdb_whats_running' is defined. DIR/trex. c. o/home/leeassamite/download/pidgin-lwqq-master/src/trex. c: In the 'trex _ newnode' function:/home/leeassamite/download/pidgin-lwqq-master/src/trex. c: 92: 7: Warning: unused variable 'oldsize' [-wunused-variable]/home/leeassamite/download/pidgin-lwqq-master/src/trex. c: In the 'trex _ element' function:/home/leeassamite/download/pidgin-lwqq-master/src/trex. c: 272: 7: Warning: the variable 'op' is set but not used [-wunused-but-set-variable]/home/leeassamite/download/pidgin-lwqq-master/src/trex. c: In the 'trex _ matchnode' function:/home/leeassamite/download/pidgin-lwqq-master/src/trex. c: 494: 4: Warning: we recommend that you add brackets [-wparentheses]/home/leeassamite/download/pidgin-lwqq-master/src/trex before and after '&' in '|. c: 506: 3: warning: the calculated value is not [-wunused-value]/home/leeassamite/download/pidgin-lwqq-master/src/trex. c: 512: 4: warning: the calculated value is not [-wunused-value]/home/leeassamite/download/pidgin-lwqq-master/src/trex. c: 518: 4: warning: the calculated value is not [-wunused-value]/home/leeassamite/download/pidgin-lwqq-master/src/trex. c: 524: 3: warning: the calculated value is not [-wunused-value]/home/leeassamite/download/pidgin-lwqq-master/src/trex. c: In the 'trex _ searchrange' function:/home/leeassamite/download/pidgin-lwqq-master/src/trex. c: 614: 3: warning: the calculated value is not [-wunused-value] [82%] Building C object src/cmakefiles/webqq. DIR/webqq. c. o/home/leeassamite/download/pidgin-lwqq-master/src/webqq. c: 289: 13: Warning: [-wunused-function]/home/leeassamite/download/pidgin-lwqq-master/src/webqq is not used after 'qq _ open_recent 'is defined. c: 645: 13: Warning: [-wunused-function] [86%] Building C object src/cmakefiles/webqq is not used after 'qq _ conv_open' is defined. DIR/translate. c. O [91%] Building C object src/cmakefiles/webqq. DIR/qq_types.c.o [95%] Building C object src/cmakefiles/webqq. DIR/ft. c. O [100%] Building C object src/cmakefiles/webqq. DIR/cgroup. c. olinking C Shared module libwebqq. so [1, 100%] built target webqq

Run the installation command

sudo make install

The installation is complete.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.