src/libavdevice/alldevices.c not found
initialneil opened this issue · 1 comments
initialneil commented
When I compile ffmpeg with Visual Studio and msys2, it has a weird requirement of the path to run configure
.
In BuildFFmpeg.sh
, it goes to Output/FFmpeg_Temp/Static/x64 and run ../../../../FFmpeg/configure. The configure is fine, but make crashes every time.
After some stuggle, I found that I have to run configure
in the root path of ffmpeg. So the BuildFFmpeg.sh
has to change from:
rm -rf ../Output/FFmpeg/$1/$2
rm -rf ../Output/FFmpeg_Temp/$1/$2
mkdir -p ../Output/FFmpeg_Temp/$1/$2
cd ../Output/FFmpeg_Temp/$1/$2
../../../../FFmpeg/configure \
--toolchain=msvc \
--disable-programs \
--enable-cross-compile \
--enable-debug \
--disable-doc \
--target-os=win32 \
--extra-cflags=-DWINAPI_FAMILY=WINAPI_FAMILY_APP \
--extra-cflags=-D_WIN32_WINNT=0x0A00 \
--extra-cflags=-DHAVE_UNISTD_H=0 \
--extra-ldflags=-APPCONTAINER \
--extra-ldflags=WindowsApp.lib \
--extra-cflags=-MD \
--extra-cxxflags=-MD \
$OPTIONS \
--prefix=../../../../Output/FFmpeg/$1/$2
to:
cd ../FFmpeg
./configure \
--toolchain=msvc \
--disable-programs \
--enable-cross-compile \
--enable-debug \
--disable-doc \
--target-os=win32 \
--extra-cflags=-DWINAPI_FAMILY=WINAPI_FAMILY_APP \
--extra-cflags=-D_WIN32_WINNT=0x0A00 \
--extra-cflags=-DHAVE_UNISTD_H=0 \
--extra-ldflags=-APPCONTAINER \
--extra-ldflags=WindowsApp.lib \
--extra-cflags=-MD \
--extra-cxxflags=-MD \
$OPTIONS \
--prefix=./build/$1/$2
The compiled ffmpeg libs (.a files) works for Hololens2.
MouriNaruto commented
I will fix that issue. Thanks.