Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.
This repository was archived by the owner on May 31, 2022. It is now read-only.

src/libavdevice/alldevices.c not found #2

@initialneil

Description

@initialneil

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions