개발환경
Ubuntu 32bit 14.02.3
gcc 4.8.4
필요 패키지 : automake, build-essential, libtool, git-core, libffi-dev, libudev-dev, libqt4-dev
1. Ofono 구축
A. git clone git://git.kernel.org/pub/scm/network/ofono/ofono.git
B. cd ofono
C. ./bootstrap-configure
i. configure: error: GLib >= 2.28 is required
1.
Download Glib 2.44.1 http://ftp.acc.umu.se/pub/gnome/sources/glib/2.44/
2.
xz –d glib-2.44.1.tar.xz
3.
tar –xvf glib-2.44.1.tar
4.
cd glib-2.44.1
5.
./configure
A.
configure: error: *** Working
zlib library and headers not found ***
i. Download ZLib 1.2.8 http://zlib.net/zlib-1.2.8.tar.gz
ii. tar –zxvf zlib-1.2.8.tar.gz
iii. cd zlib-1.2.8
iv. ./configure
v. sudo make install
6.
sudo make install
1. sudo apt-get install libglib2.0-dev
ii. configure: error: D-Bus >= 1.4 is required
1.
Download D-Bus 1.8.20 http://dbus.freedesktop.org/releases/dbus/
2.
tar –zxvf dbus_1.8.12.orig.tar.gz
3.
cd dbus-1.8.12
4.
./configure
A.
configure: error: Explicitly
requested expat but expat not found
i. Download expat-2.1.0.tar.gz http://sourceforge.net/projects/expat/
ii. tar –zxvf expat-2.1.0.tar.gz
iii. cd expat-2.1.0
iv. ./configure
v. sudo make install
5.
sudo make install
1. sudo apt-get install libdbus-1.0-dev
D. sudo make install or make
2. phonesim 구축
A. git clone git://git.kernel.org/pub/scm/network/ofono/phonesim.git
B. cd phonesim
C. ./bootstrap-configure
D. make
3. ofono의 D-Bus 권한 획득
A. sudo cp ofono/src/ofono.conf /etc/dbus-1/system.d/
4. phonesim 정보 파일 등록
A. sudo mkdir /etc/ofono
B. cp ofono/plugin/phonesim.conf /etc/ofono/
5. ofono와 phonesim 실행
A.
phonesim Root Directory에서
./src/phonesim –gui ./src/default.xml
B. sudo ofonod –nd ‘*’
C. ofono/test에서 ./online-modem