My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Installing_OSIP2  

osip, osip2, eXosip, eXosip2
Updated Sep 13, 2010 by hoan...@gmail.com

Installing OSIP2 & eXosip2 Library

Download: http://ftp.gnu.org/gnu/osip/libosip2-3.3.0.tar.gz

tar xzfv libosip2-3.3.0.tar.gz
cd libosip2-3.3.0
./configure --enable-test
make
sudo make install

Download eXosip: http://mirror.lihnidos.org/GNU/savannah/exosip/libeXosip2-3.3.0.tar.gz

tar xzfv libeXosip2-3.3.0.tar.gz
cd libeXosip2-3.3.0
./configure
make
make install

Config OMNeT++ IDE to build with osip library

Example sourcecode

main.c Class: HOSIP.h, .cc

Compiling

gcc main.c -losip2 -lpthread -o test_osip

Compiling in Eclipse

Goto: Project/ Properties / Settings / C/C++ Build /Tool Settings / GCC C Linker / Libraries

Add: osip2 to (-l)

Add: /usr/local/lib to (-L)

Add: -lpthread to Miscellaneous of GCC C Compiler, GCC C++ Compiler, GCC C Linker

Running

./test_osip: error while loading shared libraries: libosip2.so.3: cannot open shared object file: No such file or directory

FIX: Add export LD_LIBRARY_PATH=/usr/local/lib to /etc/profile

Add /usr/local/lib to /etc/ld.so.conf


Sign in to add a comment
Powered by Google Project Hosting