728x90

blueZ를 우선 linux에 설치해보기로 함

http://www.bluez.org/download/


checking for GLIB... no

configure: error: GLib >= 2.28 is required

에러를 만남


GLIB를 설치하기로 함

https://launchpad.net/glib/+milestone/2.28.7


*** You must have either have gettext support in your C library, or use the

*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html

에러를 만남


$apt-get install gettext

cd glib-2.28.7

$./configure

$make

$make install


GLIB 설치 완료됨


configure: error: D-Bus >= 1.4 is required

에러를 만남


$apt-get install dbus

1.4.14 설치 되나 제대로 해결되지 않음

configure: error: D-Bus >= 1.4 is required

동일한 에러를 만남


source를 받아서 설치하기로 함

https://launchpad.net/ubuntu/+source/dbus/1.4.6-1ubuntu6


checking for XML_ParserCreate_MM in -lexpat... no

configure: error: Could not find expat.h, check config.log for failed attempts

에러를 만남


http://downloads.sourceforge.net/expat/expat-2.0.1.tar.gz

$cd expat-2.0.1

$./configure

$make

$make install


$cd dbus-1.4.6

$./configure

$make

$make install

D-BUS 설치 됨


checking for USB... no

configure: error: USB library support is required

에러를 만남


$apt-get install libusb-dev

http://sourceforge.net/projects/libusb/files/

받아서 설치함

libusb-1.0.9


checking for UDEV... no

configure: error: libudev >= 143 is required

에러를 만남


$apt-get install libudev-dev


checking for ICAL... no

configure: error: libical is required

에러를 만남


$apt-get install libical-dev


checking for readline/readline.h... no

configure: error: readline header files are required

에러를 만남


http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html

leadline download


$cd readline-6.2

$./configure

$make

$make install

readline 설치함


checking sytemd system unit dir... configure: error: systemd system unit directory is required

에러를 만남


./configure --disable-systemd


힘겨운 configure 지나감


$make


/usr/local/lib/libreadline.so: undefined reference to `tputs'

/usr/local/lib/libreadline.so: undefined reference to `tgoto'

/usr/local/lib/libreadline.so: undefined reference to `tgetflag'

/usr/local/lib/libreadline.so: undefined reference to `UP'

/usr/local/lib/libreadline.so: undefined reference to `tgetent'

/usr/local/lib/libreadline.so: undefined reference to `tgetnum'

/usr/local/lib/libreadline.so: undefined reference to `PC'

/usr/local/lib/libreadline.so: undefined reference to `tgetstr'

/usr/local/lib/libreadline.so: undefined reference to `BC'

collect2: ld returned 1 exit status

에러를 만남


./configure --disable-systemd

$apt-get install libreadline-gplv2-dev

$apt-get build-dep libreadline-gplv2-dev


$cd /usr/local/lib

$ln -s /usr/lib/libreadline.so ./libreadline.so


드이어 make 됨


728x90
728x90

목표 : blueZ proting

1차 target : Mango64 board, csr bc06


환경 : 

vmware 7.0.0

linux ubuntu 11.04


linux 설치 후 

http://source.android.com/source/initializing.html

참조하여 기본적인 tool들 설치

Python, GNU Make는 별도로 down 받아서 설치



$ sudo apt-get install git-core gnupg flex bison gperf build-essential \

  zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \

  x11proto-core-dev libx11-dev lib32readline-gplv2-dev lib32z-dev \

  libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \

  libxml2-utils xsltproc


$ sudo apt-get install libx11-dev:i386


sun-java6-jdk설치 도중 오류 발생
Package 'sun-java6-jdk' has no installation candidate
Solution :
$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:ferramroberto/java
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk sun-java6-plugin

http://source.android.com/source/downloading.html

$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.2.1_r1
적용하여 Download

728x90
728x90

다운로드 http://www.openssl.org/source/


localhost opt # wget http://www.openssl.org/source/openssl-0.9.8e.tar.gz


localhost opt # tar xvzf openssl-0.9.7a.tar.gz 


localhost opt # cd openssl-0.9.7a


localhost openssl-0.9.7a #vi Configure

Configure파일 수정

 "linux-elf" "gcc, ...................." <- 이부분을 찾아 다음처럼 수정한다.(line : 320)

=> "linux-elf-arm" "arm-linux-gcc,............." 변경후 아래를 실행한다.


localhost openssl-0.9.7a #./Configure linux-elf-arm --prefix=/usr/local/openssl-arm --openssldir=/usr/local/openssl-arm shared no-threads no-asm


Make File 수정 

-CC= gcc

+CC= arm-linux-gcc

-EX_LIBS=

+EX_LIBS= -ldl

-AR=ar $(ARFLAGS) r

-RANLIB= /usr/bin/ranlib

+AR=arm-linux-ar $(ARFLAGS) r

+RANLIB= arm-linux-ranlib


make 

make install

728x90

+ Recent posts