0207 SIP SIPPHONE MINISIP LINUX 编译

SIPPHONE MINISIP 的编译说明文档:
Compiling and installing libmutil
First we run the bootstrap script to generate the configure script.
        erik@dev:~/minisip/libmutil$ ./bootstrap 这个文件要先CHMOD
Now we will run the configure script. If you want to install the library in some other directory than the default locations (/usr/local/lib and /usr/local/include), we add for example –prefix=/home/$USER as argument to the configure script. Another argument, "–enable-debug" can be used to generate more debugging features and debug output.
        erik@dev:~/minisip/libmutil$ ./configure –enable-debug
Now we are ready to compile the source code of libmutil and install it:
        erik@dev:~/minisip/libmutil$ make
        erik@dev:~/minisip/libmutil$ make install

Compiling and installing libmnetutil
Configuring, compiling and installing libmutil is done the same way as with libmutil:
        erik@dev:~/minisip/libmnetutil$ ./bootstrap
        erik@dev:~/minisip/libmnetutil$ ./configure –enable-debug
报告:
checking for libmutil >= 0.3.1… Package libmutil was not found in the pkg-config search path.
Perhaps you should add the directory containing `libmutil.pc\’
to the PKG_CONFIG_PATH environment variable
No package \’libmutil\’ found
configure: error: Library requirements (libmutil >= 0.3.1) not met; consider adjusting the PKG_CONFIG_PATH environment variab
le if your libraries are in a nonstandard prefix so pkg-config can find them.
原来要:
# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

我在编译gDesklet的时候说要gnome-python2.0以上(我装的是slackware9.1,不敢肯定有没有,也不知道怎么查找,呵呵),下了gnome-python和python-gtk(因为依赖关系)安装。安装完python-gtk以后,接着安装gnome-python,configure时却仍然说找不到python-gtk,以及提示如果安装的软件不在标准路径下,需要在PKG_CONFIG_PATH另外指定。我不太明白怎么做,请兄弟们说明一下子,谢谢。
另外我发现安装的python-gtk在/usr/local/include下面而不是/usr/include下面,这是正常的吗?这是否是找不到的原因之一呢?
一般来说,下载源码自己编译安装,默认安装路径是/usr/local下面的子目录。
你的情况应该这么做: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

        erik@dev:~/minisip/libmnetutil$ make
        erik@dev:~/minisip/libmnetutil$ make install

Compiling and installing libmikey
Configuring, compiling and installing libmnetutil is done the same way as with libmutil:
        erik@dev:~/minisip/libmikey$ ./bootstrap

Compiling and installing libmsip
Configuring, compiling and installing libmnetutil is done the same way as with libmsip:
        erik@dev:~/minisip/libmsip$ ./bootstrap

Compiling and installing the minisip application
First, we run the bootstrap script.
        erik@dev:~/minisip/minisip$ ./bootstrap
结果这里又麻烦呢:
./bootstrap: you need automake version 1.7 or later
下载了AUTOMAKE 1.9,结果又是
configure: error: Autoconf 2.58 or better is required.
+ aclocal-1.9
/usr/local/share/aclocal/speex.m4:10: warning: underquoted definition of XIPH_PATH_SPEEX
  run info \’(automake)Extending aclocal\’
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
+ libtoolize –copy –force
You should update your `aclocal.m4\’ by running aclocal.
+ autoconf
configure.ac:41: error: possibly undefined macro: AC_LIBTOOL_DLOPEN
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:42: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:47: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:90: error: possibly undefined macro: AC_DEFINE

Now we need to run the configure script. A number of arguments are available to set what features will be compiled and what settings to use. The most important ones are:
–enable-textui, –enable-gtk or –enable-qt
This sets which user interface will be used. GTK is the default one, and the text interface is often used during development. It is also simple to use on dev.minisip.org. The QT one is not maintained any more and will probably not compile.
–enable-debug
This will enable some debug information from the console and will also result in more debug message output.
–enable-color-terminal
If you are using linux, you probably want to have the color coding of the text ui. You don\’t want this if you are compiling for windows (it will result in strange characters here and there).
If using the default user interface (GTK) with color terminal support, the configure command can look like this:
        erik@dev:~/minisip/minisip$ ./configure –enable-debug –enable-color-terminal
Other configure parameters for enabling other features such as video support can be read about by writing
        erik@dev:~/minisip/minisip$ ./configure –help
To compile the source code, run make:
        erik@dev:~/minisip/minisip$ make
The application will be generated in a sub direcroty called minisip. It can be run by writing: erik@dev:~/minisip/minisip$ minisip/minisip

历史博文

标签:, , ,
四月 16, 2006 at 9:17 上午 by yippee 1,107 次
Category: Dev
Tags: , , ,