Ubuntu 下编译 VLC-Win32

来源:互联网 发布:adidas淘宝官方旗舰店 编辑:程序博客网 时间:2024/05/16 08:55

步骤http://www.rosoo.net/a/201212/16406.html

到  ./bootstrap时报错


 m4/with_pkg.m4:34: PKG_WITH_MODULES is expanded from...
m4/with_pkg.m4:83: PKG_ENABLE_MODULES_VLC is expanded from...
configure.ac:4030: the top level
configure.ac:1: error: possibly undefined macro: dnl
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:38: error: possibly undefined macro: AS_IF
configure.ac:57: error: possibly undefined macro: AC_DEFINE
configure.ac:203: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:323: error: possibly undefined macro: AC_PREPROC_IFELSE
configure.ac:323: error: possibly undefined macro: AC_LANG_PROGRAM
configure.ac:464: error: possibly undefined macro: AC_CHECK_LIB
configure.ac:474: error: possibly undefined macro: AC_CACHE_CHECK
configure.ac:636: error: possibly undefined macro: AC_COMPILE_IFELSE
configure.ac:745: error: possibly undefined macro: AC_CHECK_HEADERS
configure.ac:839: error: possibly undefined macro: AC_MSG_WARN
configure.ac:865: error: possibly undefined macro: AC_LANG_PUSH
configure.ac:867: error: possibly undefined macro: AC_LANG_POP
configure.ac:1527: error: possibly undefined macro: AC_PATH_PROGS
configure.ac:1956: error: possibly undefined macro: AC_CHECK_HEADER
configure.ac:2326: error: possibly undefined macro: AC_MSG_NOTICE
configure.ac:3348: error: possibly undefined macro: AC_PATH_PROG
configure:15408: error: possibly undefined macro: m4_n
autoreconf: /usr/local/bin/autoconf failed with exit status: 1 

解决办法参照
https://forum.videolan.org/viewtopic.php?f=13&t=39983 

 Your autotools probably can't see certain m4 macros. I had the exact same error message as you. The problem in my case was that the macros for pkg-config could not be found. So I added "-I /opt/pkg-config/share/aclocal" (pkg-config is installed under /opt/pkg-config on my system) to the contents of the environment variable "ACLOCAL_ARGS", re-ran bootstrap and it worked.

The macros mentioned in the error message, "dnl", "AS_IF", etc., had nothing to do with my problem. The error messages produced by the autotools appear to be useless. They should just print "Something went wrong, I don't know what." That would at least be honest, and arguably more helpful. 

找到 vlc目录下的 bootstrap 文件,打开编辑->
将 “ACLOCAL_ARGS="-I m4 ${ACLOCAL_ARGS}"  这一行改为 
 ”ACLOCAL_ARGS="-I m4 ${ACLOCAL_ARGS} -I /usr/share/aclocal"  (/usr/share/aclocal 是我的aclocal目录所在位置)
保存再./bootstrap。即可成功


0 0
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 激光祛斑的红印怎么办 脸上疤掉了红印怎么办 痘痘发炎了红肿怎么办 脸上的斑越来越多了怎么办 点痣留下的疤痕怎么办 额头又高又大怎么办 脸太长额头太高怎么办 动车因台风停运怎么办 爸妈50了要离婚怎么办 鸿利彩票黑了钱怎么办 忘了锁屏图案怎么办 黄金被水银沾上怎么办 被股东了我该怎么办 异地恋没话题聊怎么办 谈了半年分手了怎么办 博士6年没毕业怎么办 发现孩子早恋家长应该怎么办 异地恋想嘿嘿嘿怎么办 妈妈溜冰溜大了怎么办 皮鞋被雨水泡了怎么办 老婆提出离婚我不想离怎么办 极度缺爱的人怎么办 生二胎住院大宝怎么办 爸妈偏心我该怎么办 无创21体高风险怎么办 无创检查高风险怎么办 唐氏筛查21三体高危怎么办 唐筛年龄高风险怎么办 21三体综合症高风险怎么办 朋友深陷李强365怎么办 飞机上烟瘾犯了怎么办 怀孕一个月吸烟了怎么办 烟瘾犯了没烟怎么办 押金交了不租了怎么办 买车首付款不够怎么办 双11订金不退怎么办 在商场买到假货怎么办 网上买到假手机怎么办 网上买了假手机怎么办 网银转账被骗了怎么办 支付宝被骗了钱怎么办