This repository was archived by the owner on May 31, 2022. It is now read-only.
Description 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.
Reactions are currently unavailable
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
configurein the root path of ffmpeg. So theBuildFFmpeg.shhas to change from:to:
The compiled ffmpeg libs (.a files) works for Hololens2.