質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.49%
コマンド

コマンドとは特定のタスクを行う為に、コンピュータープログラムへ提示する指示文です。多くの場合、コマンドはShellやcmdようなコマンドラインインターフェイスに対する指示文を指します。

FFmpeg

FFmpegは、動画と音声を交換できるフリーソフトウェアです。UNIX系OSから派生した、MS-DOSから操作するコマンドラインツールです。libavcodecやlibavformat、libswscale、libavfilterなどを含みます。ライセンスは、コンパイルの際のオプションによりLGPLもしくはGPLに決定されます。対応コーデックや使用できるオプションが多く、幅広く利用されています。

Q&A

0回答

1092閲覧

[FFmpeg] makeコマンドでコンパイルエラーになる場合の回避方法が知りたい。

退会済みユーザー

退会済みユーザー

総合スコア0

コマンド

コマンドとは特定のタスクを行う為に、コンピュータープログラムへ提示する指示文です。多くの場合、コマンドはShellやcmdようなコマンドラインインターフェイスに対する指示文を指します。

FFmpeg

FFmpegは、動画と音声を交換できるフリーソフトウェアです。UNIX系OSから派生した、MS-DOSから操作するコマンドラインツールです。libavcodecやlibavformat、libswscale、libavfilterなどを含みます。ライセンスは、コンパイルの際のオプションによりLGPLもしくはGPLに決定されます。対応コーデックや使用できるオプションが多く、幅広く利用されています。

0グッド

0クリップ

投稿2022/07/22 11:18

提示コマンド画面ですが./configureコマンドを正常に実行出来るのですがmakeコマンドを実行するとエラーが発生してしまいます。make -iコマンドで無視するのはよくないと思うのですがこれはどうやってエラーを回避するのでしょうか?

環境

OS windows 10
コマンド操作ソフト: Git bash

参考サイト

参考サイト: https://qiita.com/chihiro/items/f270744d7e09c58a50a5
入手先(緑の資格のDownload Source Code ): https://ffmpeg.org/download.html

コマンド
yw325@DESKTOP-NH1Q59N MINGW64 ~/Desktop/ffmpeg $ ./configure nasm/yasm not found or too old. Use --disable-x86asm for a crippled build. If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat. Include the log file "ffbuild/config.log" produced by configure as this will help solve the problem. yw325@DESKTOP-NH1Q59N MINGW64 ~/Desktop/ffmpeg $ ./configure --disable-x86asm /* 省略 */ chomp hapqa_extract noise truehd_core dca_core hevc_metadata null vp9_metadata dump_extradata hevc_mp4toannexb opus_metadata vp9_raw_reorder dv_error_marker imx_dump_header pcm_rechunk vp9_superframe eac3_core mjpeg2jpeg pgs_frame_merge vp9_superframe_split extract_extradata mjpega_dump_header prores_metadata Enabled indevs: gdigrab lavfi vfwcap Enabled outdevs: License: LGPL version 2.1 or later yw325@DESKTOP-NH1Q59N MINGW64 ~/Desktop/ffmpeg $ make GEN libavutil/libavutil.version GEN libswscale/libswscale.version GEN libswresample/libswresample.version GEN libavcodec/libavcodec.version GEN libavformat/libavformat.version GEN libavfilter/libavfilter.version GEN libavdevice/libavdevice.version CC libavdevice/alldevices.o In file included from c:\mingw\include\stdint.h:46, from c:\mingw\lib\gcc\mingw32\9.2.0\include\stdint.h:9, from ./libavformat/internal.h:24, from libavdevice/alldevices.c:21: c:\mingw\include\_mingw.h:413:3: warning: #warning "Direct definition of __USE_MINGW_ANSI_STDIO is deprecated." [-Wcpp] 413 | # warning "Direct definition of __USE_MINGW_ANSI_STDIO is deprecated." | ^~~~~~~ c:\mingw\include\_mingw.h:414:10: note: #pragma message: See <_mingw.h> for preferred feature activation methods. 414 | # pragma message "See <_mingw.h> for preferred feature activation methods." | ^~~~~~~ In file included from ./libavformat/os_support.h:175, from ./libavformat/internal.h:30, from libavdevice/alldevices.c:21: ./libavutil/wchar_filename.h: In function 'wchartocp': ./libavutil/wchar_filename.h:50:42: error: 'WC_ERR_INVALID_CHARS' undeclared (first use in this function); did you mean 'MB_ERR_INVALID_CHARS'? 50 | DWORD flags = code_page == CP_UTF8 ? WC_ERR_INVALID_CHARS : 0; | ^~~~~~~~~~~~~~~~~~~~ | MB_ERR_INVALID_CHARS ./libavutil/wchar_filename.h:50:42: note: each undeclared identifier is reported only once for each function it appears in In file included from ./libavformat/internal.h:30, from libavdevice/alldevices.c:21: ./libavformat/os_support.h: At top level: ./libavformat/os_support.h:216:37: warning: 'struct _stat64' declared inside parameter list will not be visible outside of this definition or declaration 216 | static inline void copy_stat(struct _stat64 *crtstat, struct win32_stat *buf) | ^~~~~~~ ./libavformat/os_support.h: In function 'copy_stat': ./libavformat/os_support.h:218:28: error: dereferencing pointer to incomplete type 'struct _stat64' 218 | buf->st_dev = crtstat->st_dev; | ^~ ./libavformat/os_support.h: In function 'win32_stat': ./libavformat/os_support.h:233:12: error: variable 'crtstat' has initializer but incomplete type 233 | struct _stat64 crtstat = { 0 }; | ^~~~~~~ ./libavformat/os_support.h:233:32: warning: excess elements in struct initializer 233 | struct _stat64 crtstat = { 0 }; | ^ ./libavformat/os_support.h:233:32: note: (near initialization for 'crtstat') ./libavformat/os_support.h:233:20: error: storage size of 'crtstat' isn't known 233 | struct _stat64 crtstat = { 0 }; | ^~~~~~~ ./libavformat/os_support.h:233:20: warning: unused variable 'crtstat' [-Wunused-variable] ./libavformat/os_support.h: In function 'win32_fstat': ./libavformat/os_support.h:253:12: error: variable 'crtstat' has initializer but incomplete type 253 | struct _stat64 crtstat = { 0 }; | ^~~~~~~ ./libavformat/os_support.h:253:32: warning: excess elements in struct initializer 253 | struct _stat64 crtstat = { 0 }; | ^ ./libavformat/os_support.h:253:32: note: (near initialization for 'crtstat') ./libavformat/os_support.h:253:20: error: storage size of 'crtstat' isn't known 253 | struct _stat64 crtstat = { 0 }; | ^~~~~~~ ./libavformat/os_support.h:253:20: warning: unused variable 'crtstat' [-Wunused-variable] make: *** [libavdevice/alldevices.o] Error 1 yw325@DESKTOP-NH1Q59N MINGW64 ~/Desktop/ffmpeg $

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

otn

2022/07/22 12:01 編集

> Use --disable-x86asm for a crippled build. をどのように解釈して、./configure --disable-x86asm を実行したのでしょうか? まず解決すべきは、 > nasm/yasm not found or too old. でしょう。回避するので無く解決しましょう。 インストールしてないならする。古いのなら最新版を入れなおす。 エラーメッセージからすると、必要なライブラリヘッダがインストールされてないのではと思いますが、ビルドするのに必要なパッケージを調べて全部インストールしていますか?
退会済みユーザー

退会済みユーザー

2022/07/22 12:30

見落としてました。nasm yasmをインストールして再度./configure をして make したのですが以下のエラーが出てしまいます、これは何原因なのでしょうか? 「 ./libavformat/os_support.h:253:32: warning: excess elements in struct initializer 253 | struct _stat64 crtstat = { 0 }; | ^ ./libavformat/os_support.h:253:32: note: (near initialization for 'crtstat') ./libavformat/os_support.h:253:20: error: storage size of 'crtstat' isn't known 253 | struct _stat64 crtstat = { 0 }; | ^~~~~~~ ./libavformat/os_support.h:253:20: warning: unused variable 'crtstat' [-Wunused-variable] make: *** [libavdevice/alldevices.o] Error 1 」
otn

2022/07/22 13:17

先のコメントの後半に書いた通りです。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.49%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問