Chinaunix首页 | 论坛 | 博客
  • 博客访问: 477784
  • 博文数量: 154
  • 博客积分: 746
  • 博客等级: 入伍新兵
  • 技术积分: 1129
  • 用 户 组: 普通用户
  • 注册时间: 2011-05-20 09:20
个人简介

此生既入苦寒山,何妨再攀险峰!

文章分类

全部博文(154)

文章存档

2017年(1)

2016年(2)

2015年(25)

2014年(24)

2013年(8)

2012年(15)

2011年(79)

分类: LINUX

2015-02-05 15:02:36

一、编译DLNA需要安装的库:
    libglib2.0-dev ,bison ,flex ,intltool
    
二、具体操作:
    1、sudo apt-get install libglib2.0-dev
    2、sudo apt-get install bison
    3、sudo apt-get install flex
    4、sudo apt-get install intltool

三、出现问题与解决的记录:

    1、编译glib时出现gettext问题:
        a、现象:
            checking for msgfmt... no
            configure: error:
            *** You must have either have gettext support in your C library, or use the
            *** GNU gettext library. (

            make[2]: *** [glib-2.32.1/Makefile] Error 1
            make[2]: Leaving directory `/home/longjc/kh/DLNA_targetfs/dlna/source/glib'
            make[1]: *** [all] Error 1
            make[1]: Leaving directory `/home/longjc/kh/DLNA_targetfs/dlna/source'
            make: *** [source] Error 2
            
        b、解决办法,当时是直接将DLNA_targetfs\dlna\source\glib\glib-2.32.1下面的configure修改

            if test "$gt_cv_have_gettext" != "yes" ; then
              as_fn_error $? "
            *** You must have either have gettext support in your C library, or use the
            *** GNU gettext library. (
            " "$LINENO" 5
            fi

            改成:(仅仅是用于记录,不需要按照下面修改)
            if test "$gt_cv_have_gettext" != "yes" ; then
              echo $? "
            *** You must have either have gettext support in your C library, or use the
            *** GNU gettext library. (
            " "$LINENO" 5
            fi
            注意:这样修改后,后面还会出现gettext的编译错误,出现这个问题时直接安装intltool就好了,不需要我上面那样修改。

    2、编译gstreamer时出现Could not find bison:
        a、现象:
            checking how to hardcode library paths into programs... immediate
            configure: working c++ compiler found: yes
            checking for perl... /usr/bin/perl
            checking for bison... no
            configure: error: Could not find bison
            make[2]: *** [gstreamer-0.10.36/Makefile] 错误 1
            make[2]:正在离开目录 `/home/anyka/longjiacheng/DLNA/DLNA_targetfs/dlna/source/gstreamer'
            make[1]: *** [all] 错误 1
            make[1]:正在离开目录 `/home/anyka/longjiacheng/DLNA/DLNA_targetfs/dlna/source'
            make: *** [source] 错误 2

        b、解决办法: sudo apt-get install bison

    3、编译gstreamer时出现Could not find flex:
        a、现象:
            checking how to hardcode library paths into programs... immediate
            configure: working c++ compiler found: yes
            checking for perl... /usr/bin/perl
            checking for bison... /usr/bin/bison
            checking bison version 2.4.1 >= 1.875... yes
            checking for flex... no
            configure: error: Could not find flex
            make[2]: *** [gstreamer-0.10.36/Makefile] 错误 1
            make[2]:正在离开目录 `/home/anyka/longjiacheng/DLNA/DLNA_targetfs/dlna/source/gstreamer'
            make[1]: *** [all] 错误 1
            make[1]:正在离开目录 `/home/anyka/longjiacheng/DLNA/DLNA_targetfs/dlna/source'
            make: *** [source] 错误 2
            anyka@anyka-laptop:~/longjiacheng/DLNA/DLNA_targetfs/dlna$

        b、解决办法:sudo apt-get install flex

    4、编译rygel时遇到error: Your intltool is too old
        a、现象:
            checking whether NLS is requested... yes
            checking for intltool >= 0.40.0... ./configure: line 15446: intltool-update: command not found
             found
            configure: error: Your intltool is too old.  You need intltool 0.40.0 or later.
            make[2]: *** [rygel-0.14.0/Makefile] 错误 1
            make[2]:正在离开目录 `/home/anyka/longjiacheng/DLNA/DLNA_targetfs/dlna/source/rygel'
            make[1]: *** [all] 错误 1
            make[1]:正在离开目录 `/home/anyka/longjiacheng/DLNA/DLNA_targetfs/dlna/source'
            make: *** [source] 错误 2
            anyka@anyka-laptop:~/longjiacheng/DLNA/DLNA_targetfs/dlna$

        b、解决办法:当时是直接下载intltool-0.40.6.tar.gz安装
            wget
            tar zxvf intltool-0.40.6.tar.gz
            cd intltool-0.40.6
            ./configure
            make && make install


    5、编译rygel时遇到GNU gettext tools not found
        a、现象:
            checking for msgmerge... no
            checking for msgfmt... (cached) no
            checking for gmsgfmt... no
            configure: error: GNU gettext tools not found; required for intltool
            make[2]: *** [rygel-0.14.0/Makefile] 错误 1
            make[2]:正在离开目录 `/home/anyka/longjiacheng/DLNA/DLNA_targetfs/dlna/source/rygel'
            make[1]: *** [all] 错误 1
            make[1]:正在离开目录 `/home/anyka/longjiacheng/DLNA/DLNA_targetfs/dlna/source'
            make: *** [source] 错误 2
            anyka@anyka-laptop:~/longjiacheng/DLNA/DLNA_targetfs/dlna$

        b、解决办法:sudo apt-get install intltool
阅读(3267) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~