본문 바로가기

배우고픈 공돌이

pulseaudio source 설치 시 에러 해결 본문

ARM/BBBW

pulseaudio source 설치 시 에러 해결

내 마음 아홉수 2017. 12. 16. 05:03

Unzip and go to the directory:
tar xvf pulseaudio-6.0.tar.xz
cd pulseaudio-6.0

Run bootstrap script:
./bootstrap.sh

I will sum up here all errors I encountered (in case people search them by copy/paste):
./bootstrap.sh: line 46: intltoolize: command not found
configure: error: Unable to find libltdl version 2. Makes sure you have libtool 2.4 or later installed.
configure: error: *** sys/capability.h not found. Use --without-caps to disable capabilities support
No package 'json-c' found
No package 'sndfile' found

So install all above libraries:
sudo apt-get install intltool libtool libcap-dev libjson0-dev libsndfile1-dev

The script should now ends correctly, and in the command line you can see a table of the configuration done, with enabled/disabled parts. On my side: udev, bluez5, ofono, native-headset, alsa, X11, systemd, … were not enabled, so I installed additional libraries:
sudo apt-get install libudev-dev libsbc-dev libbluetooth-dev libx11-xcb-dev libasound2-dev libsystemd-dev libsamplerate0-dev


-> install libltdl-dev

-> ./configure


===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING =====

You do not have speex support enabled. It is strongly recommended

that you enable speex support if your platform supports it as it is

the primary method used for audio resampling and is thus a critical

part of PulseAudio on that platform.

===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING =====


->install speex

-> ./configure


ARM Thumb error: r7 cannot be used in asm here

Platform

ARM (Thumb assembly)

What

Depending on the GCC compiler options used, you can receive an error:

error: r7 cannot be used in asm here

Reason

The assembly code in bn_mul.h is optimized for the ARM platform and uses some registers, including r7 to efficiently do an operation. GCC also uses r7 as the frame pointer under ARM Thumb assembly.

Solution

Add -fomit-frame-pointer to your GCC compiler options.

If you have already added -O, -O2, etc you do not need to add -fomit-frame-pointer as the optimization options already include it on most systems by default.


'ARM > BBBW' 카테고리의 다른 글

Bluecove 개발 환경 구축  (0) 2017.12.04
JNA 개발 환경 구축  (0) 2017.11.29
java FX 개발 환경 구축  (0) 2017.11.28
JAVA 개발 환경 구축  (0) 2017.11.13
3. 모니터 사용하기  (0) 2017.10.16
Comments