忍者ブログ
プログラミングのメモ書きです。日記も兼ねてます。
[962]  [961]  [960]  [959]  [958]  [957]  [956]  [955]  [954]  [953]  [952
×

[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コンパイルできるかとかチェックしてないのか?

PR
この記事にコメントする
お名前
タイトル
文字色
メールアドレス
URL
コメント
パスワード   Vodafone絵文字 i-mode絵文字 Ezweb絵文字
この記事へのトラックバック
この記事にトラックバックする:
&lt;&lt; 無題 HOME 無題 &gt;&gt;
カレンダー
09 2024/10 11
S M T W T F S
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
最新コメント
[01/09 ⅠAⅤAⅨUの医学部再受験]
[04/21 ほ@神宮寺]
[03/26 クドっち]
[03/23 なつめぐ]
[03/23 なつめぐ]
最新トラックバック
プロフィール
HN:
まっちゃん
性別:
非公開
ブログ内検索
アクセス解析
カウンター
忍者ブログ [PR]