プログラミングのメモ書きです。日記も兼ねてます。
×
[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。
どうしてもCygwin(Mingw)でDirectShowを動かせないかと苦戦中。
とりあえず、
追記:00:06
http://sourceforge.net/tracker/?func=detail&aid=2673182&group_id=2435&atid=302435
のパッチ当てたら、ほぼ解決した。
成功時のコマンドは$ g++ main.cpp -mno-cygwin -lstrmiids -lOle32 -o dshow.exe
・strmif.h
以下追加
#include <windows.h>
#include <ddraw.h>
895行目 IBaseFilter *pFilter;をコメントアウト
・amvideo.h
56~59行目の,を;に変更
・bdatypes.h
20~22行目、;がことごとく抜けてるのを修正。
ここまで加工して何とかヘッダ系のエラーは撲滅。
で、今のエラーは
main.cpp: In function `int main()':
main.cpp:12: error: `IGraphBuilder' undeclared (first use this function)
main.cpp:12: error: (Each undeclared identifier is reported only once for each function it appears in.)
main.cpp:12: error: `pGraphBuilder' undeclared (first use this function)
main.cpp:13: error: `IMediaControl' undeclared (first use this function)
main.cpp:13: error: `pMediaControl' undeclared (first use this function)
main.cpp:19: error: `CLSID_FilterGraph' undeclared (first use this function)
main.cpp:22: error: `IID_IGraphBuilder' undeclared (first use this function)
main.cpp:26: error: `IID_IMediaControl' undeclared (first use this function)
orz
mingwってDirectShowコンパイルできるかとかチェックしてないのか?
とりあえず、
追記:00:06
http://sourceforge.net/tracker/?func=detail&aid=2673182&group_id=2435&atid=302435
のパッチ当てたら、ほぼ解決した。
成功時のコマンドは$ g++ main.cpp -mno-cygwin -lstrmiids -lOle32 -o dshow.exe
以下追加
#include <windows.h>
#include <ddraw.h>
895行目 IBaseFilter *pFilter;をコメントアウト
・amvideo.h
56~59行目の,を;に変更
・bdatypes.h
20~22行目、;がことごとく抜けてるのを修正。
ここまで加工して何とかヘッダ系のエラーは撲滅。
で、今のエラーは
main.cpp: In function `int main()':
main.cpp:12: error: `IGraphBuilder' undeclared (first use this function)
main.cpp:12: error: (Each undeclared identifier is reported only once for each function it appears in.)
main.cpp:12: error: `pGraphBuilder' undeclared (first use this function)
main.cpp:13: error: `IMediaControl' undeclared (first use this function)
main.cpp:13: error: `pMediaControl' undeclared (first use this function)
main.cpp:19: error: `CLSID_FilterGraph' undeclared (first use this function)
main.cpp:22: error: `IID_IGraphBuilder' undeclared (first use this function)
main.cpp:26: error: `IID_IMediaControl' undeclared (first use this function)
orz
mingwってDirectShowコンパイルできるかとかチェックしてないのか?
PR
この記事にコメントする