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
哇咔咔咔咔~~~~~~~~~~臭美一会~~~~~
cygwin 编译 android vlc,Cygwin 编译 VLC 问题相关推荐
- android+busybox+编译,Android版busybox编译
Android版busybox编译 1下载busybox源码 2解压 tar -xvf busybox-1.23.2.tar.bz2 3 android版的配置脚本 解压后的源码里,configs文件 ...
- 最新i7编译android源码,编译ROC-RK3328-CC Android7.1源码教程
环境安装 windows准备 首先在windows中划分一块100左右的分区安装ubuntu16,在linux环境编译Android源码 安装ubuntu16(注意一定要16的ubuntu,其他版本的 ...
- mac 编译android系统,mac 编译 Android 系统杂记
挂载android分区 sudo hdiutil attach ~/android_code/android7.dmg.sparseimage -mountpoint /Volumes/android ...
- dcmtk编译 android,windows下编译dcmtk的Android版本
1.下载最新的dcmtk http://support.dcmtk.org/redmine/attachments/download/77/dcmtk-3.6.1_20150217.tar.gz解压. ...
- 如何编译Android的kernel,编译Android的kernel
一 下载 cd kernel 进入我们刚才创建的kernel文件夹 git branch -avv 查看远程的git 库 我们选择remotes/origin/android-goldfish-2.6 ...
- 如何快速编译android,MTKandroid快速编译方法.doc
[FAQ10625] 提升Android编译速度 Platform: MT6572 MT6582 MT6588 MT6589 MT6592 MT6595 MT6571 MT6582/92+MT6290 ...
- android.mk 优化编译,android下ndk编译c优化
android开发中,有时候需要控制包的大小,这样就会要求对代码进行优化, 下面这个文章不错.大家可参考 原文链接 https://blog.algolia.com/android-ndk-how-t ...
- 《深入解析Android 虚拟机》——第1章,第1.3节编译Android源码
本节书摘来自异步社区<深入解析Android 虚拟机>一书中的第1章,第1.3节编译Android源码,作者 钟世礼,更多章节内容可以访问云栖社区"异步社区"公众号查看 ...
- 【Android 系统开发】 编译 Android文件系统 u-boot 内核 并烧写到 OK-6410A 开发板上
博客地址 : http://blog.csdn.net/shulianghan/article/details/40299813 本篇文章中用到的工具源码下载 : -- ok-6410A 附带的 A ...
- ubuntu 20.04.4编译 继续尝试编译Android 12,13
之前使用虚拟机编译过Android10,现在开始记录编译12,上次忘记给镜像了这次补上镜像ubuntu-20.04.4-desktop-amd64: 链接:https://pan.baidu.com/ ...
最新文章
- 图像在计算机中通过什么方式表示_万物皆可“计算机视觉”
- python主辅线程_python主线程捕获子线程的方法
- ICCV 2019 论文解读:用图神经网络改善视频的多标签分类
- go string 换行_从词法分析角度聊 Go 代码组成
- CCF201612-4 压缩编码(100分)
- 一起教育科技携手神策数据,数据赋能智能教育新时代
- nginx配置反向代理示例
- Spring中的后置处理器BeanPostProcessor讲解
- Storyboard中segue使用总结
- Netty中的策略者模式
- 工作134:custom组件
- class属性表种类集合,以及字段详解
- 2011年01月18日
- Atitit 稳定性提升的艺术 之技术解决之道 目录 1. 2. 为什么会发生稳定性问题	1	1 2. 大原则	1 2.1. 尽快释放资源类似php最好的稳定性	1 2.2. Nginx 负载均衡
- 11.30 iptables filter表案例 iptables nat表应用
- 学术论文搜索相关的网址推荐
- 地图编辑器开发(四)
- BoomBeach海水效果实现
- 【乐逍遥网站设计】2022年网站设计与UI元素的趋势
- 本题要求根据火车的出发时间和达到时间,编写程序计算整个旅途所用的时间。
热门文章
- idea配置的导入导出
- pythonpygame中主函数_从0开始学Python-14.2 pygame的核心对象
- C语言 函数指针 - C语言零基础入门教程
- java 多线程 临界区_多线程编程的设计模式 临界区模式
- 不是区块链的特征_上市公司日照港物流区块链平台上线,不是谁都能玩“区块链+物流”?...
- php有哪些高级扩展,php扩展有哪些
- a*算法matlab代码_NSGAII多目标优化算法讲解(附MATLAB代码)
- axure html 360安装扩展,小编搞定win7系统360浏览器添加Axure扩展的设置方案
- java thread 线程销毁_手把手带你了解Java线程的实现方式及生命周期原理
- linux可用的ftp,linuxunix下有很多可用的ftp服务器