I also found the process incredibly difficult. But I was able to compile it on a MAC the OS was El Capitan.
From: Linphone-developers [mailto:linphone-developers-bounces+address@hidden
On Behalf Of Alexander Khrustal
Sent: Wednesday, October 26, 2016 6:22 AM
To: address@hidden
Subject: [Linphone-developers] Error linking belle-sip on Ubuntu Linux
Hello,
Sorry I am new to Linphone and C/C++ building tools on Linux, so my question could sound trivial.
But I already made a lot of different attempts and now feel like in a dead end.
I am trying to compile belle-sip on Ubuntu server 16.04.1 LTS the following way:
# git clone
https://github.com/BelledonneCommunications/belle-sip.git
# cd belle-sip
# ./autogen.sh
# ./configure
# make
make will give a an error on linking stage, which looks like it can't find external library (I suspect bctoolbox).
and it happens only in tester directory.
Log details:
make[2]: Entering directory '/home/alexander/belle-sip/tester'
CC belle_sip_tester-auth_helper_tester.o
CC belle_sip_tester-belle_generic_uri_tester.o
CC belle_sip_tester-belle_http_tester.o
CC belle_sip_tester-belle_sdp_tester.o
CC belle_sip_tester-belle_sip_core_tester.o
CC belle_sip_tester-belle_sip_dialog_tester.o
CC belle_sip_tester-belle_sip_headers_tester.o
CC belle_sip_tester-belle_sip_message_tester.o
CC belle_sip_tester-belle_sip_refresher_tester.o
CC belle_sip_tester-belle_sip_register_tester.o
CC belle_sip_tester-belle_sip_resolver_tester.o
CC belle_sip_tester-belle_sip_tester.o
CC belle_sip_tester-belle_sip_uri_tester.o
CC belle_sip_tester-cast_test.o
CCLD belle_sip_tester
belle_sip_tester-auth_helper_tester.o: In function `bctbx_warning':
/usr/local/include/bctoolbox/logging.h:134: undefined reference to `bctbx_logv'
.....
and then a lot of similar errors
I have already successfully build bctoolbox in the previous step using the same chain of command:
# git clone
https://github.com/BelledonneCommunications/bctoolbox.git
# ./autogen.sh
# ./configure
# make
# sudo make install
# ldconfig
Which gave me the following message:
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to 'cd'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
I have tried the following flag:
# ./configure --prefix=/usr/local/lib
With no success.
Please help,
Kind Regards,
Alexander Khrustal