Re: [reSIProcate] Building a software using Resiprocate
Hey,
Well, I downgraded to version 0.9.x and it turns out that it was
simple to compile:
[root@localhost test]# pwd
/root/resiprocate-0.9.0-5019/resiprocate/test
[root@localhost test]# g++ -lresiprocate testServer.cxx -o test
[root@localhost test]#
Any drawbacks in using version 0.9.x?
Best Regards,
Felipe Louback
--
Master Student - Electrical Engineering Department
Computer Engineering and Telecommunications Research Group
Universidade Federal de Minas Gerais - Brazil
"Come to me, all you who are weary and burdened, and I will give you rest."
Matthews 11:28
On 2/20/07, Felipe Louback <louback@xxxxxxxxx> wrote:
Hi all,
I am trying to build a small application using resiprocate, but I
didnt get how to compile things.
At /resiprocate-1.0.2/resip/README it is written:
===============================================================
Creating an application based on the stack:
Option 2: (Using a third party build system)
Prerequisites:
- Install ares library from sip/contrib/ares
- cd sip/contrib/ares
- ./configure
- make
- make install
Pass the following flags to C++ compiler:
Assumptions:
- have pthreads
- have openssl installed
- have ares installed
- resiprocate library is built and installed
# Linux Example
CXXFLAGS += -Wall -fPIC -Wno-deprecated -march=i686 \
-D_REENTRANT -DUSE_SSL -DNEW_MSG_HEADER_SCANNER -DUSE_IPV6
-DUSE_ARES \
-I/usr/kerberos/include -I$(RESIP_DIR)/lib.debug.Linux.i686
LDFLAGS += -L$(RESIP_DIR)/lib.debug.Linux.i686
LDLIBS += -lresiprocate -lssl -lcrypto -lares -lpthread
===============================================================
So I decided to recompile the testServer.cxx available at
/resiprocate-1.0.2/resip/stack/test.
I wrote the following line(after installing resiprocate) according to
the README above:
g++ -Wall -fPIC -Wno-deprecated -march=i686 -D_REENTRANT -DUSE_SSL
-DNEW_MSG_HEADER_SCANNER -DUSE_IPV6 -DUSE_ARES -I/usr/kerberos/include
-I$(RESIP_DIR)/obj.debug.Linux.i686
-L$(RESIP_DIR)/obj.debug.Linux.i686 -lresip -lssl -lcrypto -lares
-lpthread testServer.cxx -o testServe
but I couldn't figure out what the $(RESIP_DIR) is. I even looked for
any directory that had obj.debug.Linux.i686, but I found none.
If I try to compile without it:
#g++ -Wall -fPIC -Wno-deprecated -march=i686 -D_REENTRANT -DUSE_SSL
-DNEW_MSG_HEADER_SCANNER -DUSE_IPV6 -DUSE_ARES -I/usr/kerberos/include
-lresip -lssl -lcrypto -lares -lpthread testServer.cxx -o testServe
/tmp/ccu4pVo8.o(.text+0x223): In function `main':
: undefined reference to `resip::Data::Data(char const*)'
/tmp/ccu4pVo8.o(.text+0x243): In function `main':
: undefined reference to `resip::Data::Data(char const*)'
/tmp/ccu4pVo8.o(.text+0x24e): In function `main':
: undefined reference to `resip::Log::toLevel(resip::Data const&)'
/tmp/ccu4pVo8.o(.text+0x278): In function `main':
: undefined reference to `resip::Log::initialize(resip::Log::Type,
resip::Log::Level, resip::Data const&, char const*,
resip::ExternalLogger*)'
/tmp/ccu4pVo8.o(.text+0x291): In function `main':
: undefined reference to `resip::Data::~Data()'
/tmp/ccu4pVo8.o(.text+0x2a4): In function `main':
: undefined reference to `resip::Data::~Data()'
/tmp/ccu4pVo8.o(.text+0x2bd): In function `main':
: undefined reference to `resip::Data::~Data()'
/tmp/ccu4pVo8.o(.text+0x2dc): In function `main':
: undefined reference to `resip::Data::~Data()'
/tmp/ccu4pVo8.o(.text+0x2fa): In function `main':
: undefined reference to `resip::DnsStub::EmptyNameserverList'
/tmp/ccu4pVo8.o(.text+0x314): In function `main':
: undefined reference to `resip::SipStack::SipStack(resip::Security*,
std::vector<resip::GenericIPAddress,
std::allocator<resip::GenericIPAddress> > const&,
resip::AsyncProcessHandler*, bool, void (*)(int, int, char const*,
int))'
/tmp/ccu4pVo8.o(.text+0x3bf): In function `main':
: undefined reference to `resip::Data::Empty'
/tmp/ccu4pVo8.o(.text+0x3c9): In function `main':
: undefined reference to `resip::Data::Empty'
/tmp/ccu4pVo8.o(.text+0x3d3): In function `main':
: undefined reference to `resip::Data::Empty'
/tmp/ccu4pVo8.o(.text+0x407): In function `main':
: undefined reference to
`resip::SipStack::addTransport(resip::TransportType, int,
resip::IpVersion, resip::StunSetting, resip::Data const&, resip::Data
const&, resip::Data const&, resip::SecurityTypes::SSLType)'
/tmp/ccu4pVo8.o(.text+0x4ab): In function `main':
: undefined reference to `resip::ThreadIf::run()'
Could anyone, please, point me what I am doing wrong or how to compile
my own application using resiprocate or where to find information
about it?
Thanks a lot in advance for your time.
Best Regards,
Felipe
--
Master Student - Electrical Engineering Department
Computer Engineering and Telecommunications Research Group
Universidade Federal de Minas Gerais - Brazil
"Come to me, all you who are weary and burdened, and I will give you rest."
Matthews 11:28