Hi,
I used avcodec and avformat libraries in Windows Mobile (5.0-6.0) for 
years, but now, with Windows Mobile 6.1, the required architecture is 
changed from ARM to THUMB.
Many projects use av libraries for mobile (like ambulant player), but 
with WM6.1 there isn't a solution to compile AV libraries in thumb 
architecture (or i haven't found it!).

Another possible reason is that. When I compile with VS2005 an 
application for WM6.1 they make me a thumb application, and if I include 
an arm library (with or whitout internetwork support for thumb) the 
application doesn't work for an errate use of virtual memory:

    
http://cegcc.sourceforge.net/docs/faq.html#DllDoesNotWorkWithWindowsMobile6.1
    
http://blogs.msdn.com/hopperx/archive/2008/09/19/writeable-code-sections-got-you-down-fear-no-more.aspx

How can I resolve this problem?

This is my environement:

    * MinGW-5.1.4
    * MSYS-1.0.10
    * make-3.81
    * cegcc-0.51.0-1
    * mingw32ce-0.51.0-1
    * bash-3.1
    * binutils-2.17.50
    * coreutils-5.97
    * cygwin1.dll_1.5.25
    * gcc-core-3.4.5
    * gcc-g++-3.4.5
    * gcc-objc-3.4.5
    * w32api-3.13

    * Visual Studio 2005
    * FFMpeg 0.4.9-pre1

This is my configure for ARM compiling (working):

./configure --enable-memalign-hack --arch=armv4i --build-suffix= 
--cross-prefix=arm-wince-mingw32ce- --enable-small --enable-static 
--enable-shared --disable-mmx --disable-zlib --disable-ipv6 
--disable-debug --disable-ffmpeg --disable-ffserver --disable-ffplay 
--disable-encoders --disable-network --disable-muxers --disable-decoders 
--disable-filters --disable-demuxers --disable-devices 
--disable-protocols --disable-bsfs --disable-parsers --enable-decoder=mpeg4

This is my configure for THUMB compiling (working but result is arm not 
thumb):

./configure --enable-memalign-hack --arch=thumb 
--cross-prefix=arm-wince-mingw32ce- --enable-small --enable-static 
--enable-shared --disable-mmx --disable-zlib --disable-ipv6 
--disable-debug --disable-ffmpeg --disable-ffserver --disable-ffplay 
--disable-encoders --disable-network --disable-muxers --disable-decoders 
--disable-filters --disable-demuxers --disable-devices 
--disable-protocols --disable-bsfs --disable-parsers 
--enable-decoder=mpeg4 --extra-cflags="-march=armv5t -mtune=xscale 
-mno-thumb-interwork -mno-thumb"

PS:
If i use --cross-compile or --os-target=WinCE doesn't work

Any suggest?
Marco


_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to