pulseaudio的交叉編譯


在/etc/profile里導入

1 export PATH==$PATH:/home/jack/arm-linux-gcc/x-tools/arm-unknown-linux-gnueabi/bin

配置參數

1 ./configure CC=arm-linux-gcc CXX=arm-linux-g++ --host=arm-unknown-linux-gnueabi --prefix=/home/jack/Ekho_work/ekho CPPFLAGS=-I/home/jack/Ekho_work/ekho/include LDFLAGS=-L/home/jack/Ekho_work/ekho/lib CFLAGS=-I/home/jack/Ekho_work/ekho/include

開發環境

1 ubuntu-11.04

 

./configure遇到的問題


1.問題一

 

1 checking for m4... no
2 configure: error: m4 missing
3 
4 solution:
5 http://ftp.gnu.org/gnu/m4/m4-1.4.10
6 
7 在終端將環境導入export PATH=$PATH:/home/jack/Ekho_work/ekho/bin

 

2.問題二

1 ./configure: line 6261: intltool-update: command not found
2 checking for intltool >= 0.35.0... found
3 configure: error: Your intltool is too old. You need intltool 0.35.0 or later.
4 
5 solution:
6 intltool-0.40.0.tar.bz2

 

3.問題三

1 configure: error: Unable to find libltdl version 2. Makes sure you have libtool 2.4 or later installed.
2 
3 solution:
4 libtool-2.4.2.tar.gz

 

4.問題四

1 configure: error: Package requirements ( json >= 0.9 ) were not met:
2 
3 No package 'json' found
4 
5 solution:
6 json-c-0.10-nodoc.tar.gz
7 
8 在/etc/profile里導入export PKG_CONFIG_PATH=/home/jack/Ekho_work/ekho/lib/pkgconfig:$PKG_CONFIG_PATH

 

5.問題五

1 configure: error: Package requirements ( sndfile >= 1.0.20 ) were not met:
2 
3 No package 'sndfile' found
4 
5 solution:
6 libsndfile-1.0.25.tar.gz

 

make遇到的問題

1.問題一

1 /home/jack/Ekho_work/ekho/include/json/json.h:27:34: error: json_object_iterator.h: No such file or directory
2 
3 solution:
4 將/home/jack/Ekho/package_4/json-c-0.10/json_object_iterator.h拷貝到/home/jack/Ekho_work/ekho/include/json下

 

2.問題二

 1 /home/jack/Ekho_work/ekho/lib/libjson.so: undefined reference to `rpl_malloc'
 2 collect2: ld returned 1 exit status
 3 /home/jack/Ekho_work/ekho/lib/libjson.so: undefined reference to `rpl_malloc'
 4 collect2: ld returned 1 exit status
 5 
 6 solution:
 7 在/home/jack/Ekho/package_4/json-c-0.10/config.h文件里注釋掉
 8 //#define malloc rpl_malloc
 9 //#define realloc rpl_realloc
10 這兩行,重新make -j8 ,make install

以上通過測試


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM