I was able to compile static libav libs on Windows phone 8.1 but not able
to link them to create an app.

I used these steps:

*My configuration*
-) OS: Windows 8.1 VS: Ultimate 2013 Update 3 (If armasm fails,
msvcdis110.dll missing download it from dllsearch )
-) Mingw (be sure that "link" and "cl" commands point to MS "link" and
"cl")
-) Libav 10.3

Follow prerequisites listed here:
https://ffmpeg.org/platform.html#Microsoft-Visual-C_002b_002b-or-Intel-C_002b_002b-Compiler-for-Windows

-) Download c99toc89: https://github.com/libav/c99-to-c89/downloads/. Be
sure all files from c99toc89 are in Mingw PATH (copy in /bin)

-) FFMPEG requires stdint.h and inttypes.h headers standardized as a part
of C99. Unfortunately, Visual Studio does not include these files.
Fortunately, there is a project that fixes this issue. Download the latest
version and unpack it to Visual Studio includes (C:\Program Files
(x86)\Microsoft Visual Studio 11.0\VC\include).

-) Launch cmd and "c:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\vcvarsall.bat x86_arm" and then msys

-) configure:
./configure --toolchain=msvc \
--disable-programs \
--disable-network \
--disable-protocols \
--extra-cflags="-D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE -D_M_ARM
-D_WINAPI_FAMILY=WINAPIFAMILY_APP" \
--enable-cross-compile \
--target-os=win32 \
--arch=arm \
--as=armasm \
--cpu=armv7 \
--disable-yasm \
--extra-ldflags="-MACHINE:ARM" \
--disable-dxva2 \
--disable-asm \
--disable-docI was able to get .a static libs but I wasn't able to generate
an app using it. I have problems while linking for kernel32.lib and
libcmt.lib misses.

Anyone?
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to