xiehuc / pidgin-lwqq

a pidgin plugin based on lwqq, a excellent safe useful library for webqq protocol
GNU General Public License v3.0
660 stars 185 forks source link

在Debian上编译的问题 #666

Closed yangdaweihit closed 9 years ago

yangdaweihit commented 9 years ago
libpurple 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 variable
No package 'purple' found
libpurple version outdate
===============pidgin-lwqq flags===============
-- Native Language Support : true
-- Install Path            : 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 variable
No package 'purple' found
===============================================
-- Configuring incomplete, errors occurred!

我已经安装过pidgin了,不知道如何处理这个问题,请给些指导。

lainme commented 9 years ago

安装了 libpurple-dev 么?

https://github.com/xiehuc/pidgin-lwqq/wiki/Install-From-Source

yangdaweihit commented 9 years ago
-- checking for module 'lwqq>=0.6.1'
--   package 'lwqq>=0.6.1' not found
CMake Error at /usr/share/cmake-3.0/Modules/FindPkgConfig.cmake:341 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.0/Modules/FindPkgConfig.cmake:395 (_pkg_check_modules_internal)
  CMakeLists.txt:23 (pkg_check_modules)

libpurple version:2.10.11
===============pidgin-lwqq flags===============
-- Native Language Support : true
-- Install Path            : /usr/lib/purple-2
===============================================
-- Configuring incomplete, errors occurred!

这是安装 libpurple-dev之后再编译的结果。

lainme commented 9 years ago

需要先安装lwqq,再安装pidgin-lwqq

yangdaweihit commented 9 years ago

对不起,没有搞懂lwqq和pidgin-lwdqq的关系。现在安装了lwqq再编译后报错如下。

-- checking for module 'lwqq>=0.6.1'
--   package 'lwqq>=0.6.1' not found
CMake Error at /usr/share/cmake-3.0/Modules/FindPkgConfig.cmake:341 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.0/Modules/FindPkgConfig.cmake:395 (_pkg_check_modules_internal)
  CMakeLists.txt:23 (pkg_check_modules)

libpurple version:2.10.11
===============pidgin-lwqq flags===============
-- Native Language Support : true
-- Install Path            : /usr/lib/purple-2
===============================================
-- Configuring incomplete, errors occurred!
See also "/home/yangdawei/pidgin-lwqq/build/CMakeFiles/CMakeOutput.log".
lainme commented 9 years ago

lwqq的安装路径需要在/usr下,如果装到别的地方需要改环境变量。

https://github.com/xiehuc/lwqq/wiki/Build-From-Source

需要注意,可以使用 cmake .. -DCMAKE_INSTALL_PREFIX=/usr 来指定安装到/usr 目录下.或者在 ~/.xprofile 文件中加入 export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH 才能在桌面(如pidgin)中加载 liblwqq.so成功

yangdaweihit commented 9 years ago

查了一下,liblwqq.so确实在 /usr/local/lib中,但执行了

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

并在~/.xprofile中也填加了这行后再登录(我猜这样就会使这个设置生效吧)再编译还是不行。

lainme commented 9 years ago

那就删掉改装在/usr下

anthonyfok commented 9 years ago

长远可以考虑向 Debian 的 Bug Tracking System 为 pidgin-lwqq 提交一个 RFP (Request for Package), 这样慢慢地 Debian 和 Ubuntu 都会有 pidgin-lwqq 的官方 .deb 包了,盼望。 :wink:

xiehuc commented 9 years ago

没有长远考虑, 已经停止更新了.