我是ffmpeg新手,目前正在测试ffmepg的编码/解码功能。我打开ffmeg/example/decoding_encoding.c代码块中的文件和链接的相关库。但是构建时却出现错误:
||=== Build: Debug in c_official_ffmepg (compiler: GNU GCC Compiler) ===|
ld cannot find ../../opencv-2.4.10/build/include: File format not recognized
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
什么原因导致这个错误?如何解决?
最佳答案
这可能来自于错误的 CodeBlocks 配置,您的问题似乎与此类似 post :
Right-click your header file,
select properties,
choose the Build tab,
and uncheck the "Compile file" and "Link file" options.Do this for each header file. You should only ever use the Compile option on a header if you specifically want it to be used as a precompiled header, and you should never use the Link option for a header.
关于c - 在 CodeBlocks 中运行 ffmpeg 示例 c 程序时无法识别文件格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29139374/