質問
FFMPEGのLGPLコピーを作成しようとしてきましたが、さまざまな異なる構成メソッドを試しました。 FFMPEGサイトから最新のソースをダウンロードし、次のSimple Configureを使用しました
./configure --enable-memalign-hack --enable-pthreads --enable-shared --disable-static
しかし、私がそれを構築しようとするたびに、私は「avdevice-53.dll」とこのようなエラーメッセージだけで終わるだけです
install: cannot stat 'libavdevice/avdevice.lib' : No such file or directory
make: *** [install-libavdevice-shared] Error 1
私は何が間違っているのですか?
解決
そのエラーを無視するのは安全だと思いますか? DLLファイルの対応するフォルダーのソースフォルダーをチェックしましたか?
e.g. avcodec.dll - source folder/libavcodec
他のヒント
この問題をワインで修正します。これは、Visual StudioターゲットのLinuxでFFMPEGを構築する必要がある場合に便利です。
まず、lib.exe、link.exe、mspdb100.dll、msvcr100.dllファイルをVisual Studioインストールパスを取得する必要があります。
lib.exeにlib_vs.exeに名前を変更します。スクリプトファイルlib.exeを作成するlib_vs.exeを呼び出す:
#!/bin/bash
wine lib_vs.exe
これらすべてのファイルをビルドディレクトリに入れ、それを見つけることができるパスを設定します。
私はそれをするために使用するスクリプトを共有します:
#!/bin/bash
(
export PATH=.:$PATH
rm -rf build
mkdir build
cd build
cp ../lib.exe .
cp ../lib_vs.exe .
cp ../link.exe .
cp ../ms*.dll .
../src/configure --enable-memalign-hack --arch=x86 --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --enable-shared --prefix=../release --pkg-config=pkg-config
make && make install
cd ..
)
所属していません StackOverflow