zoukankan      html  css  js  c++  java
  • 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

    以上通过测试

  • 相关阅读:
    全局变量、局部变量
    结构体位域
    关键字(static const volatile extern sizeof)
    预处理#
    头文件<time.h>
    头文件<string.h>
    头文件<stdlib.h>
    session 入库
    php中的匿名函数和闭包
    redis 的 RDB 和 AOF 持久化的区别
  • 原文地址:https://www.cnblogs.com/wanzaiyimeng/p/3277530.html
Copyright © 2011-2022 走看看