准备
sudo apt-get install cmake
sudo apt-get install kdelibs5-dev
下载最新的代码
svn checkout http://kmess.svn.sourceforge.net/svnroot/kmess/trunk/kmess/
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=release ../kmess
make
sudo make install
或者
sudo checkinstall --backup=no make install
kmess会安装到/usr/local/bin/kmess下
如果要重新编译,我的土办法是cd build && rm -rf *
然后重新执行一遍上面的命令。
[update for ubuntu8.10 kmess 1104 svn build]
CMake Error : ERROR : cmake /modules /FindKDE4Internal .cmake not found in /home/dg/. kde4/share/apps;/usr/lib/kde4/share/kde4/apps ...
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:72 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/sunbaoming/.kde/share/apps;/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps
Call Stack (most recent call first):
CMakeLists.txt:15 (FIND_PACKAGE)
+ QCA 2: A cryptographic library written in Qt to access various encryption methods <http://delta.affinix.com/qca/>
Required for the Windows Live Messenger login process.
* You will need this package and the matching development package: for example, 'kmess' and 'kmess-dev' or 'kmess-devel'.
* Usually the package names for this library are on Ubuntu: 'libqca2' and 'libqca2-dev', and on openSUSE: 'libqca2'and 'libqca2-devel'.
出现上面的提示
sudo aptitude install kdelibs5-dev libqca2-dev libxss-dev