Set up Asterisk Server on Ubuntu VM in VirtualBox to test Linphone : Part 1

When working with VOIP, it’s helpful to have Asterisk server on the development machine. Asterisk server is Digium’s software implementation of PBX (private branching exchange), which provides features like voice calls, video and voice conferencing, and messaging.  This blog entry details how to set up and apply basic configuration to an Asterisk on an Ubuntu virtual machine.

Continue reading “Set up Asterisk Server on Ubuntu VM in VirtualBox to test Linphone : Part 1” »

Build or Compile Linphone from Source for iPhone and iPad

By Jessica Chiang

This entry documents how to build Linphone from source for iPhone and iPad

Updated for Mac Maverick(v10.9.5 v10.9.3), Version 6.1 (6A1052d) XCode6 Beta3, iOS 8.1 7.1, and the latest Linphone source (as of 01/17/15 7/29/14 ). Tested deploying to iPhone5, iPhone5s, iPhone6, and iPhone6 Plus simulators.

To build Linphone for iPhone and iPad

Continue reading “Build or Compile Linphone from Source for iPhone and iPad” »

libtool and glibtool

This is the content of a typical autogen.sh (for Linux and Unix systems) script which utilize auto tools such as aclocal, libtool, and automake to generate necessary files for building a project.
#! /bin/sh
# a quick hack script to generate necessary files from
# auto* tools.
#
# WARNING: if you run this you will change the versions
# of the tools which are used and, maybe, required!
        touch Makefile.am configure.ac
{
        echo "running libtoolize"
        glibtoolize --force --copy --automake
}  {
        echo "running aclocal"
        aclocal
} {
        echo "running autoheader [ignore the warnings]"
        autoheader
}  {
        echo "running automake"
        automake --force-missing --foreign -a -c
}  {
        echo "running autoconf"
        autoconf
}
        echo "autogen complete"  ||
        echo "ERROR: autogen.sh failed, autogen is incomplete"

For MacOS, just replace libtool with bligtool, and libtoolize with glibtoolize.

        echo "running libtoolize"
        glibtoolize --force --copy --automake

Build OpenCV on Snow Leopard

t took me whole day yesterday to build OpenCV for my Snow Leopard. I still need to add the FFMPEG support but for now, it is turned off. I’ve followed the Mac OS X OpenCV Port doc.

svn co https://code.ros.org/svn/opencv/trunk opencv
cd opencv mkdir opencv/build cmake ..
ccmake .

Hit ‘t’ to toggle advanced mode.

Set
CMAKE_CXX_COMPILER to “/usr/bin/g++-4.0″ and CMAKE_C_COMPILER” to /usr/bin/gcc-4.0″.

I also need to turn off FFMPEG and LIBDB1394, because I could not get them to install properly yet on Snow Leopard.

Turn on the BUILD_EXAMPLE. Hit ‘c’ to configure and then ‘g’ to generate the config files and exit ccmake.

make -j8 su
make install

To build the example, I need to change the opencv/sample/c/build_all.sh to the following: (change gcc to gcc-4.0 and g++ to g++-4.0, and also add “-arch i386”)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
if [[ $# > 0 ]] ; then
	base=`basename $1 .c`
	echo "compiling $base"
	gcc-4.0 -arch i386 -ggdb `pkg-config opencv --cflags --libs` $base.c -o $base
else
	for i in *.c; do
		echo "compiling $i"
		gcc-4.0 -arch i386 -ggdb `pkg-config --cflags opencv` -o `basename $i .c` $i `pkg-config --libs opencv`;
	done
	for i in *.cpp; do             
		echo "compiling $i"             
		g++-4.0 -arch i386 -ggdb `pkg-config --cflags opencv` -o `basename $i .cpp` $i `pkg-config --libs opencv`;
done fi

To build the c sample, just type:
./build_all.sh

Next step for me would be to build the universal library for OpenCV from Snow Leopard. Reference: