본문 바로가기
카테고리 없음

Raspberry pi alsa-utils compile

by BABEL-II 2019. 10. 5.

Raspberry Pi로 IP 스피커를 만들라는 지시를 받았다.

소리를 내려면 alsautil이 필수이다.

다운로드 받아서 컴파일 한다.

깃헙에서 받은 소스는 빌드할 때 오류가 난다.

 

alsa-utils-1.1.9.tar.bz2

 파일 다운로드

Raspberry PI에서 alsa-utils를 빌드할 때에 아래 사이트에서 알려준 파일을 받아와야 한다.

http://www.linuxfromscratch.org/blfs/view/svn/multimedia/alsa-utils.html

 

alsa-utils-1.1.9

Introduction to ALSA Utilities The ALSA Utilities package contains various utilities which are useful for controlling your sound card. This package is known to build and work properly using an LFS-9.0 platform. Package Information Download (FTP): ftp://ftp.alsa-project....

www.linuxfromscratch.org

pi@raspberrypi:~$ git clone https://github.com/alsa-project/alsa-utils

이렇게 받은 파일은 사용할 수 없다.

pi@raspberrypi:~/alsa-utils$ wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.1.9.tar.bz2

pi@raspberrypi:~$ bunzip2 alsa-utils-1.1.9.tar.bz2

pi@raspberrypi:~$ tar xvf alsa-utils-1.1.9.tar

pi@raspberrypi:~$ cd alsa-utils-1.1.9/

pi@raspberrypi:~/alsa-utils-1.1.9$ ls

ABOUT-NLS alsamixer ChangeLog COPYING m4 speaker-test

acinclude.m4 alsaucm compile depcomp Makefile.am test-driver

aclocal.m4 amidi config.guess gitcompile Makefile.in TODO

alsaconf amixer config.rpath iecset missing topology

alsactl aplay config.sub include po utils

alsa-info axfer configure INSTALL README.md

alsaloop bat configure.ac install-sh seq

pi@raspberrypi:~/alsa-utils-1.1.9$ ./configure

configure: error: Sufficiently new version of libasound not found.

pi@raspberrypi:~/alsa-utils-1.1.9$ ldconfig -p | grep libsound-dev

pi@raspberrypi:~/alsa-utils-1.1.9$ sudo apt-get install libasound-dev

Reading package lists... Done

Building dependency tree

Reading state information... Done

Note, selecting 'libasound2-dev' instead of 'libasound-dev'

pi@raspberrypi:~/alsa-utils-1.1.9$ ./configure

configure: error: this packages requires a curses library

pi@raspberrypi:~/alsa-utils-1.1.9$ sudo apt-get install libncurses5-dev libncursesw5-dev

패키지 설치가 잘 안 될 때에는, sudo apt update; sudo apt-get update 명령 실행 후에 재설치.

./configure

make -j4

mv: cannot stat 't-ru.gmo'mv: cannot stat 't-ja.gmo': No such file or directory: No such file or directory

make[2]: *** [Makefile:41: ja.gmo] Error 1

make[2]: *** Waiting for unfinished jobs....

make[2]: *** [Makefile:41: ru.gmo] Error 1

pi@raspberrypi:~/alsa-utils-1.1.9$ ./configure --disable-nls

pi@raspberrypi:~/alsa-utils-1.1.9$ make -j4

SUCCESS

추가 : sudo apt-get install filezilla

한 방에 할 수 있도록 정리:

sudo apt update;

sudo apt-get update

sudo apt-get install libasound-dev

sudo apt-get install libncurses5-dev

sudo apt-get install libncursesw5-dev

./configure --disable-nls

make -j4