2015-03-19 12 views
0

我是ffmpeg的新手,目前我正在測試ffmepg的編碼/解碼功能。我在Codeblocks中打開ffmeg/example/decoding_encoding.c文件並鏈接相關的庫。但是當構建時,它會給出錯誤:運行ffmpeg時無法識別的文件格式CodeBlocks中的示例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)) ===| 

什麼原因導致此錯誤?如何解決它?

回答

0

它可能來自一個壞的代碼塊配置,您的問題似乎與此類似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.

+0

嗨,雅問題得到有效解決,謝謝。但一些新的問題彈出。很多包含**「config.h」的頭文件**顯示錯誤'致命錯誤:config.h沒有這樣的firl或目錄。「什麼問題。 – Yoohoo 2015-03-19 09:46:20

+0

@Yoohoo如果您還有其他問題,您需要發佈其他問題 – 2015-03-19 09:53:23

+0

如果解決了您的問題,請隨時接受答案。關於第二個,pb是......'config.h'丟失或找不到(檢查你的包含)。如果它是一個自動生成的文件,您可能在構建過程中錯過了一個步驟。 – Coconop 2015-03-19 10:13:20

相關問題