ffmpeg - 如何使用新的 Flascc 编译器编译 ffmpeg?

标签 ffmpeg alchemy flascc

我尝试使用具有以下参数的新 flascc 编译器编译 ffmpeg(我只设置了 h263 能力作为测试):

PATH=/cygdrive/c/download/flascc/sdk/usr/bin:$PATH ./configure --enable-static 
--disable-shared --extra-libs=-static --extra-cflags=--static --disable-doc  --disable-ffplay 
--disable-ffprobe --disable-ffserver --disable-avdevice   --disable-avfilter   
--disable-pthreads  --disable-everything --enable-muxer=flv 
--enable-encoder=flv --enable-encoder=h263 --disable-mmx --disable-shared   
--prefix=bin/  --disable-protocols --disable-network --disable-optimizations --disable-debug 
--disable-asm --disable-stripping 
--prefix=/cygdrive/c/download/flascc/sdk/usr

然后我尝试如下:
PATH=/cygdrive/c/download/flascc/sdk/usr/bin:$PATH make

PATH=/cygdrive/c/download/flascc/sdk/usr/bin:$PATH make install

*.a 文件已在子目录中创建,例如:libavcodec.a。但是如何从 *.a 文件创建 .swf/.swc?

谢谢!
查尔斯

最佳答案

docs它说您可以使用 -emit-swf 生成 SWF

To generate a SWF, the executable format suitable for use in the Flash Runtime, you pass the -emit-swf argument to GCC:

gcc -emit-swf hello.c -o hello.swf



和带有 -emit-swc 的 SWC

-emit-swc= Emits a SWC that can be linked into a Flash Builder project or distributed for others to link into their own projects. You must specify the namespace that you want to use to replace the default com.adobe.flascc namespace, this lets you link multiple FlasCC-generated SWCs into a single project.



请注意,您需要为您的 AS3 代码编写某种 shim layer api,或者您可以使用 SWIG 将其自动化。

关于ffmpeg - 如何使用新的 Flascc 编译器编译 ffmpeg?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13690290/

相关文章:

video - RTP 的 H264 关键帧问题

ffmpeg - 使用 ffmpeg 的最小 SRT 流示例

flash - 将 STL 与 Alchemy 结合使用

c - 弹性炼金术 : Returning a ByteArray from C function

c++ - 奇怪的 Adob​​e Alchemy 编译器失败

c++ - FlasCC 支持哪些版本的 C 和 C++ 标准?

go - ffmpeg:读取 header 管道时出错:0:参数无效

ffmpeg - 将输入管道输入到 ffmpeg 标准输入