Skip to content

Compilation fails on Windows 10 x64 #48

Open
@MantasMiksys

Description

HI there,

I was following the instructions provided in https://trac.ffmpeg.org/wiki/CompilationGuide/WinRT for
Windows 10 x64. I intstalled all of the required dependencies (e.g. yasm) and checked their location.

When I run

../../../configure \
--toolchain=msvc \
--disable-programs \
--disable-d3d11va \
--disable-dxva2 \
--arch=x86_64 \
--enable-shared \
--enable-cross-compile \
--target-os=win32 \
--extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_APP -D_WIN32_WINNT=0x0A00" \
--extra-ldflags="-APPCONTAINER WindowsApp.lib" \
--prefix=../../../Build/Windows10/x64

I get the following error:

cl is unable to create an executable file.
C compiler test failed.

These are the last lines of config.log file:

zoompan_filter_deps=swscale
WARNING: pkg-config not found, library detection may fail.
mktemp -u XXXXXX
cx2bM3
check_ld cc
check_cc
BEGIN ./ffconf.toPsa9fQ.c
    1   int main(void){ return 0; }
END ./ffconf.toPsa9fQ.c
cl -nologo -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -Dinline=__inline -FIstdlib.h -Dstrtoll=_strtoi64 -MD -DWINAPI_FAMILY=WINAPI_FAMILY_APP -D_WIN32_WINNT=0x0A00 -c -Fo./ffconf.9ghOJ6lK.o ./ffconf.toPsa9fQ.c
ffconf.toPsa9fQ.c
link -APPCONTAINER WindowsApp.lib -nologo -out:./ffconf.66UshOWN.exe ./ffconf.9ghOJ6lK.o
LINK : fatal error LNK1181: cannot open input file 'WindowsApp.lib'
C compiler test failed.

Any ideas what could be wrong?

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