cygwin 编译 android vlc,Cygwin 编译 VLC 问题

Cygwin 编译 VLC

遇到了这么多问题,不过还好最后编译过去了。

问题

1:

gcc -mno-cygwin -Wsign-compare

-Wall -mms-bitfields -pipe -o libaccess_output_dummy_plugin.dll

-g

-shared -u _vlc_entry__0_8_6 -L/usr/win32/lib

libaccess_output_dummy_plugin.a -L/usr/local/lib

if gcc -mno-cygwin -DHAVE_CONFIG_H -I. -I.

-I../.. -I/usr/win32/include

-I/usr/win32/include/ebm

l -D_OFF_T_ -D_off_t=long -DSYS_MINGW32 -I../../include

`top_builddir="../.." ../../vlc-config --c

flags plugin access_output_file` -Wsign-compare

-Wall -mms-bitfields -pipe -MT

libaccess_output_f

ile_plugin_a-file.o -MD -MP -MF

".deps/libaccess_output_file_plugin_a-file.Tpo" -c -o

libaccess_ou

tput_file_plugin_a-file.o `test -f 'file.c' || echo './'`file.c;

\

then mv -f ".deps/libaccess_output_file_plugin_a-file.Tpo"

".deps/libaccess_output_file_pl

ugin_a-file.Po"; else rm -f

".deps/libaccess_output_file_plugin_a-file.Tpo"; exit 1; fi

In file included from file.c:30:

/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/sys/stat.h:113:

error: pars

e error before "off_t"

/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/sys/stat.h:118:

error: pars

e error before '}' token

make[4]: *** [libaccess_output_file_plugin_a-file.o] 错误 1

make[4]: Leaving directory

`/tmp/vlc-0.8.6i/modules/access_output'

make[3]: *** [all-modules] 错误 1

make[3]: Leaving directory

`/tmp/vlc-0.8.6i/modules/access_output'

make[2]: *** [all-recursive] 错误 1

make[2]: Leaving directory `/tmp/vlc-0.8.6i/modules'

make[1]: *** [all-recursive] 错误 1

make[1]: Leaving directory `/tmp/vlc-0.8.6i'

make: *** [all] 错误 2

解决办法:

/usr/i686-pc-mingw32/include/sys目录下

在stat.h的文件开始处添加

#ifndef _OFF_T DEFINED

typedef long off_t;

#define _OFF_T DEFINED

#endif

问题

2:

gcc -mno-cygwin -Wsign-compare

-Wall -mms-bitfields -pipe -o libdtstofloat32_plugin.dll -g

-shared

-u _vlc_entry__0_8_6 -L/usr/win32/lib libdtstofloat32_plugin.a -L/usr/local/lib

-ldts_pic

libdtstofloat32_plugin.a(libdtstofloat32_plugin_a-dtstofloat32.o):

In function `Open':

/tmp/vlc-0.8.6i/modules/audio_filter/converter/dtstofloat32.c:219:

undefined reference to `_dca_in

it'

libdtstofloat32_plugin.a(libdtstofloat32_plugin_a-dtstofloat32.o):

In function `DoWork':

/tmp/vlc-0.8.6i/modules/audio_filter/converter/dtstofloat32.c:303:

undefined reference to `_dca_sy

ncinfo'

/tmp/vlc-0.8.6i/modules/audio_filter/converter/dtstofloat32.c:312:

undefined reference to `_dca_fr

ame'

/tmp/vlc-0.8.6i/modules/audio_filter/converter/dtstofloat32.c:331:

undefined reference to `_dca_bl

ocks_num'

/tmp/vlc-0.8.6i/modules/audio_filter/converter/dtstofloat32.c:335:

undefined reference to `_dca_bl

ock'

/tmp/vlc-0.8.6i/modules/audio_filter/converter/dtstofloat32.c:341:

undefined reference to `_dca_sa

mples'

/tmp/vlc-0.8.6i/modules/audio_filter/converter/dtstofloat32.c:331:

undefined reference to `_dca_bl

ocks_num'

libdtstofloat32_plugin.a(libdtstofloat32_plugin_a-dtstofloat32.o):

In function `Destroy':

/tmp/vlc-0.8.6i/modules/audio_filter/converter/dtstofloat32.c:376:

undefined reference to `_dca_fr

ee'

libdtstofloat32_plugin.a(libdtstofloat32_plugin_a-dtstofloat32.o):

In function `CloseFilter':

/tmp/vlc-0.8.6i/modules/audio_filter/converter/dtstofloat32.c:430:

undefined reference to `_dca_fr

ee'

collect2: ld returned 1 exit status

make[6]: *** [libdtstofloat32_plugin.dll] 错误 1

make[6]: Leaving directory

`/tmp/vlc-0.8.6i/modules/audio_filter/converter'

make[5]: *** [all-modules] 错误 1

make[5]: Leaving directory

`/tmp/vlc-0.8.6i/modules/audio_filter/converter'

make[4]: *** [all-recursive] 错误 1

make[4]: Leaving directory

`/tmp/vlc-0.8.6i/modules/audio_filter'

make[3]: *** [all] 错误 2

make[3]: Leaving directory

`/tmp/vlc-0.8.6i/modules/audio_filter'

make[2]: *** [all-recursive] 错误 1

make[2]: Leaving directory `/tmp/vlc-0.8.6i/modules'

make[1]: *** [all-recursive] 错误 1

make[1]: Leaving directory `/tmp/vlc-0.8.6i'

make: *** [all] 错误 2

解决方法:

./configure 后会生成 vlc-config

文件

修改 vlc-config 文件中

dtstofloat32)

ldflags="${ldflags} -ldts_pic"

为:

dtstofloat32)

ldflags="${ldflags} -ldts"

重新make

问题

3:gcc

-mno-cygwin -Wsign-compare -Wall -mms-bitfields -pipe -o

libflacdec_plugin.dll -g -shared -u _

vlc_entry__0_8_6 -L/usr/win32/lib

libflacdec_plugin.a -L/usr/local/lib /usr/win32/lib/libFLAC.a

-

lm /usr/win32/lib/libogg.a

/usr/win32/lib/libFLAC.a(bitwriter.o):bitwriter.c:(.text+0x3fb):

undefined reference to `_ntohl@4'

/usr/win32/lib/libFLAC.a(bitwriter.o):bitwriter.c:(.text+0x488):

undefined reference to `_ntohl@4'

/usr/win32/lib/libFLAC.a(bitwriter.o):bitwriter.c:(.text+0x4e5):

undefined reference to `_ntohl@4'

/usr/win32/lib/libFLAC.a(bitwriter.o):bitwriter.c:(.text+0x57f):

undefined reference to `_ntohl@4'

/usr/win32/lib/libFLAC.a(bitwriter.o):bitwriter.c:(.text+0x5d5):

undefined reference to `_ntohl@4'

/usr/win32/lib/libFLAC.a(bitwriter.o):bitwriter.c:(.text+0x66f):

more undefined references to `_ntohl@4'

follow

collect2: ld returned 1 exit status

make[4]: *** [libflacdec_plugin.dll] 错误 1

make[4]: Leaving directory `/tmp/vlc-0.8.6i/modules/codec'

make[3]: *** [all-modules] 错误 1

make[3]: Leaving directory `/tmp/vlc-0.8.6i/modules/codec'

make[2]: *** [all-recursive] 错误 1

make[2]: Leaving directory `/tmp/vlc-0.8.6i/modules'

make[1]: *** [all-recursive] 错误 1

make[1]: Leaving directory `/tmp/vlc-0.8.6i'

make: *** [all] 错误 2

解决方法:

./configure 后会生成 vlc-config

文件

修改 vlc-config 文件中

flacdec)

ldflags="${ldflags} -lFLAC"

为:

flacdec)

ldflags="${ldflags} -lFLAC -lws2_32"

重新make

问题

4:

Making all in activex

make[2]: Entering directory `/tmp/vlc-0.8.6i/activex'

make all-am

make[3]: Entering directory `/tmp/vlc-0.8.6i/activex'

if g++ -mno-cygwin -DHAVE_CONFIG_H -I. -I.

-I.. -I/usr/win32/include

-I/usr/win32/include/ebml -

D_OFF_T_ -D_off_t=long -DSYS_MINGW32 -I../include

`top_builddir=".." ../vlc-config --cxxflags acti

vex` -Wsign-compare -Wall -mms-bitfields -pipe -MT libaxvlc_a-main.o -MD

-MP -MF ".deps/libaxvlc

_a-main.Tpo" -c -o libaxvlc_a-main.o `test -f 'main.cpp' || echo

'./'`main.cpp; \

then mv -f ".deps/libaxvlc_a-main.Tpo" ".deps/libaxvlc_a-main.Po";

else rm -f ".deps/libax

vlc_a-main.Tpo"; exit 1; fi

In file included from

/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:54,

from

/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/postypes.h:46,

from

/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iosfwd:50,

from

/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_algobase.h:70,

from

/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/vector:67,

from utils.h:28,

from main.cpp:24:

/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/wchar.h:419:

error: `off_t'

does not name a type

make[3]: *** [libaxvlc_a-main.o] 错误 1

make[3]: Leaving directory `/tmp/vlc-0.8.6i/activex'

make[2]: *** [all] 错误 2

make[2]: Leaving directory `/tmp/vlc-0.8.6i/activex'

make[1]: *** [all-recursive] 错误 1

make[1]: Leaving directory `/tmp/vlc-0.8.6i'

make: *** [all] 错误 2

解决办法:

/usr/i686-pc-mingw32/include/目录下

在wchar.h的文件开始处添加

#ifndef _OFF_T DEFINED

typedef long off_t;

#define _OFF_T DEFINED

#endif

问题 5:

编译成功后运行vlc.exe

bash: ./vlc.exe: Permission

denied

解决办法:

aaronvox#aaronvox

/tmp/vlc-0.8.6i

$ chmod 755 vlc.exe vlc.exe.manifest

aaronvox#aaronvox

/tmp/vlc-0.8.6i

$ ./vlc.exe

哇咔咔咔咔~~~~~~~~~~臭美一会~~~~~

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/533475.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

kvm上添加万兆网卡_烂泥:为KVM虚拟机添加网卡

本文首发于烂泥行天下。前几篇文章介绍了有关KVM安装虚拟机以及如何给虚拟机添加硬盘,今天我们再来介绍下有关如何给KVM虚拟机添加网卡。给KVM虚拟机添加网卡,可以分为两种形式:图形界面的和virsh attach-interface命令的。图形界面的很简单&…

android studio日历小程序,android studio无法加载日历界面

LayoutInflater inflater (LayoutInflater) getApplicationContext().getSystemService(LAYOUT_INFLATER_SERVICE); //载入界面view inflater.inflate(R.layout.pumkin_calendar,null);AlertDialog.Builder ad;ad new AlertDialog.Builder(pumkinLand.this);ad.setView(view);…

gazebo 直接获取传感器数据_5个使传感器更简单的技巧

传感器遍布地球表面和周围空间,为世界提供数据。这些廉价的传感器是物联网背后的驱动力之一,也是我们社会现在面临的数字革命。然而,连接到传感器并从传感器获取数据并不总是直截了当或容易的。这里有五个提示,可以帮助工程师第一…

paylinks.php_毕业设计-基于PHP的网上购物网站系统设计

毕业设计-基于PHP的网上购物网站系统设计,共45页,14912字,附完整的程序源代码。包括前台,后台的实现,先运行phpStudyAdmin后打开dzsw/install.php摘要随着Internet技术的发展,人们的日常生活已经离不开网络…

com/android/dx/command/main,com/android/dx/command/dexer/Main : Unsupported major.minor version 52.0

如果你在开发过程中遇到了上述的Bug,基本上是JDK版本不一致造成的,指的是高版本的JDK编译的class不能放在低版本的JDK上运行。如果是Version 52,就表示JDK8编译的class不能运行在JDK7上,所以需要在本地安装JDK8. 如果是Version 51…

谷歌浏览器怎么重发请求_Googel 浏览器 模拟发送请求工具--Advanced REST Client

Advanced REST Client是 Chrome 浏览器下的一个插件,通过它可以发送 http、https、WebSocket 请求。在 Chrome 商店下搜索 Advanced REST Client,即可找到如果搜索不到的可到CSDN 下载:1.下载插件:Advanced Rest Client2.因为最新…

鸿蒙os吃内存吗,终于上手机!华为鸿蒙 OS 2.0 系统:128KB 内存就能跑

终于上手机!华为鸿蒙 OS 2.0 系统:128KB 内存就能跑2020-09-11 10:51:480点赞0收藏0评论9月11日消息,华为昨天下午在东莞松山湖举办了全球开发者大会,本次大会带来了全新的 EMUI 11 系统和备受期待的鸿蒙 OS 2.0 操作系统&#xf…

flink 不设置水印_区分理解Flink水印延迟与窗口允许延迟的概念

link 在开窗处理事件时间(Event Time) 数据时,可设置水印延迟以及设置窗口允许延迟(allowedLateness)以保证数据的完整性。这两者因都是设置延迟时间所以刚接触时容易混淆。本文接下将展开讨论分析“水印延迟”与“窗口允许延迟”概念及区别。水印延迟(WaterMark)(1…

爱特php文件管理器2.8_查找「超级蜘蛛池开发者中心 抠:44564876易」安卓应用 - 豌豆荚...

8.6万人安装开发者头条 - 程序员分享平台 2015 年获「最美应用」官方推荐,程序员必装的应用。 开发者头条是由一群程序员创建的,我们运营了 developerWorks 的微博、微信,创建了码农周刊,已覆盖百万程序员; 我们更懂程…

谈华为鸿蒙内核和操作系统,谈华为鸿蒙内核和操作系统

作者 | 陆首群谈到华为自研鸿蒙内核和操作系统,从华为透漏出来的信息来看,有点自相矛盾、扑朔迷离!我曾说过:真真假假,虚虚实实!这里有技术原因,也有外部原因。一开始(大概是 2016 年左右)&…

弹跳机器人 桌游_MIT机器人轻松搞定桌游叠叠乐:你能玩过它算我输 |《科学》子刊...

乾明 发自 凹非寺 量子位 报道 | 公众号 QbitAI江湖上,一直流传着一种叠叠乐的试炼。规则很简单,从下方的积木中,抽一根往上搭。你能往上搭几层?对MIT团队研发的机器人来说,玩这个游戏基本上不费吹灰之力。而且&#x…

华为鸿蒙无人驾驶,特斯拉最大的对手竟是华为?Hicar+鸿蒙OS无人驾驶技术不再一家独大!...

原标题:特斯拉最大的对手竟是华为?Hicar鸿蒙OS无人驾驶技术不再一家独大!短短几个月的时间,特斯拉的市值翻了近4倍,对于一个超级企业来说一切都显得那么不可思议,如果把它单纯的看成一家车企,恐…

new_picview_一款漂亮的图片查看器PictureViewer

前段时间写了一款查看妹子图片的客户端宅男福利妹子客户端SuperGank,于是后来就把其中的一个图片查看的功能封装成了一个library,使用简单,可以进行多项设置。先来看一眼效果图吧!下面来看看如何使用它:首先把图片url的…

鸿蒙系统会不会影响游戏,令人担心,鸿蒙系统会不会让人失望?未来难说

如今,一直被炒的沸沸扬扬的鸿蒙系统,终于在2019年8月9日发布了,次日,也就是8月10日,荣耀的智慧屏又带着鸿蒙系统出现了一次,荣耀智慧屏也成为了首次搭载鸿蒙系统的终端,见证了中国操作系统的历史…

buck电路上下管_推荐 | 学好电路设计与仿真?你不能错过这两本书籍 ~

网 友小编,有没有 Saber 相关书籍可以推荐一下?还有,Saber 软件下载那个版本比较好?当然有啦!小 编《Saber 电路仿真及开关电源设计》柯福波 等编著本书以 Saber 开关电源为基础,以具体工程电路为范例&am…

html5画电池状态,HTML5的一个显示电池状态的API简介

这篇文章主要介绍了HTML5的一个显示电池状态的API简介,由Mozilla设计,具体的设备和浏览器支持情况还要通过检测才能确定,需要的朋友可以参考下移动设备的份额在网络流量中在大量增长,其所贡献的网络流量非常庞大,以至于为了移动设备,我们单独…

redux异步action_react-redux--异步Action

上两篇文章叙述的都是同步操作,每当 dispatch action 时,state 会被立即更新。但是实际应用中,我们有很多操作执行后,过一段时间,才会得到结果。那么怎么处理这种情况呢?先熟悉一个概念中间件本质就是一个通…

怎么批量修改html文件后缀,如何批量修改文件后缀名

我们都知道电脑文件都有一个格式,比如JPG、MP3等等格式,每个格式都代表不一样文件类型,那么我们该如何批量更改文件类型的后缀呢?比如把JPG更改为MP3,只要在电脑里设置不隐藏文件扩展名,然后建立统一的文件夹&#xf…

python 怎么调用 矩阵 第几行_第58集 python机器学习:混淆矩阵精度指标

混淆矩阵的精度计算公式为:精度(TPTN)/(TPTNFPFN),也就是说,精度就是指正确的预测数目除以所有样本的数量。准确率、召回率与f-分数:总结混淆矩阵还有几种方法,其中最常见的就是准确率和召回率。准确率度量的是被预测为…

android seekbar闪退,android seekbar 踩坑之路

最近项目中有用到seekbar,之前对这东西不太了解,趁机来踩坑。seekbar样式按我觉得Material 中的还不算难看了。但是美工给了自己的样式,还是得改。主要有这2个属性:android:thumb"drawable/thumb"android:progressDrawable"dr…