Muhammad Asif | 9 May 2008 17:06
Picon

Another newbie trying to build and use ffmpeg

Hi All,


I am trying to compile Ffmpeg for WindowsCE to use it on Windows Mobile6.
I'll be highly thankful to you if  you could help me in this regard.

I am using MinGW and MSYS. As Alexander wrote:

=====================
By second step, I've built ffmpeg under msys/mingw using mingw32ce
toolchain and binary files of mingw32ce downloaded form SourceFourge
mingw32ce-0.10.0.20070208-cygwin.tar.gz and dll libraries of cygwin to
provide running of mingw32ce tools. I've used next command line parameters
to configure it

./configure --cross-compile
--cross-prefix=/opt/mingw32ce/arm-wince-mingw32ce/bin/ --enable-gpl
--disable-armv5te --disable-armv6 --disable-iwmmxt --disable-debug
--arch=armv4l --enable-static --disable-shared --disable-ipv6
--prefix=/usr/local/wince --log=no --disable-encoders --disable-decoders
--disable-parsers --disable-muxers --disable-demuxers --disable-protocols
--disable-ffplay --disable-ffserver --disable-ffmpeg --disable-network
--enable-decoder=mpeg4 --enable-decoder=h263 --enable-parser=h263
--enable-parser=mpeg4video --disable-opts --enable-memalign-hack

then
make

and then grabbed .a files, and linked them to MSVC project =====================

I'll be highly thankful to you if write me the steps you followed to configure the environment and then building ffmpeg.

I am trying to give the same command as above but ./configure gives following error:
>>>>>>>>>>>>>>>>>>
/opt/mingw32ce/arm-wince-mingw32ce/bin/
gcc is unable to create an executable file.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from SVN.  If the latest version fails, report the problem to the
ffmpeg-user-4+PuYLO5yA7jufZW15ZwLg@public.gmane.org mailing list or IRC #ffmpeg on irc.freenode.net.
Rerun configure with logging enabled (do not use --log=no), and include the
log this produces with your report.
>>>>>>>>>>>>>>>>>>

Thanking in anticipation. If someonecould share the lib files that hegenerated for WinCE, it will also be welcomed.

Regards,
Asif Tasleem


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@...
https://lists.sourceforge.net/lists/listinfo/cegcc-devel
Vincent Torri | 9 May 2008 16:47
Picon

slowness of memcpy


Hey,

I'm porting to Windows CE a canvas library which uses the GAPI library as 
backend. It uses a lot the memcpy function (I use a backbuffer and copy 
that buffer to the frame buffer of the device). I've looked on internet 
about fast memcpy functions (asm optimized), as i've also read that memcpy 
is slow on arm.

I've found an asm implementation of memcpy which uses arm v5te (at least) 
instructions and compared it with memcpy which is in cegcc 0.51. I've 
attached a test program. Just run 'make' to create the program. Note that 
I compile with -march=armv5te -O3 -fomit-frame-pointer. I don't know if 
it's the best flags for best performance wrt that test.

On big data (like 320 * 240 * 2, like when one copies the entire screen of 
a qvga device, which is my case), the bandwidth is around 23 MB/s with the 
cegcc memcpy, and around 70 MB/s with the asm implementation. My device is 
the Ipaq H3970. So on that device, it's almost 3 times faster than memcpy 
in newlib. Even on non aligned data.

I use a lot memcpy in that canvas library, but I think that that function 
is used a lor around and everyone would benefit such optimized 
implementation.

My question is then: would it be possible to optimized memcpy with or 
without using that asm implementation of memcpy, as it is very slow ? If 
you want to use that asm implementation, look at the copyright notice in 
memcpy_libc.S

I've quickly compared with the memcpy which is in uclibc and it seems that 
this one is slower than memcpy_libc.S, but I have maybe did wrong 
modifications to make it work. The uclibc one is nevertheless faster than 
std implmentation, especially on non aligned data:

~20 MB/s with newlib
~27 MB/s with uclibc
~70 MB/s with memcpy_libc.S (strange though, the difference is really 
huge)

regards

Vincent Torri
Attachment (memcpy.tar.bz2): application/octet-stream, 7220 bytes
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@...
https://lists.sourceforge.net/lists/listinfo/cegcc-devel
Yang Tse | 14 May 2008 20:22
Picon

Predefined symbols

Hi,

I have already seen http://cegcc.sourceforge.net/docs/details.html

But could someone post _all_ the actual predefined symbols for the
following 4 combinations ?

arm-wince-cegcc-gcc with and without -mwin32 option

arm-wince-mingw32ce-gcc  with and without -mwin32 option

Thanks,
--

-- 
-=[Yang]=-

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Carsten Sørensen | 14 May 2008 20:37
Picon

Re: Predefined symbols

On Wed, May 14, 2008 at 8:22 PM, Yang Tse <yangsita@...> wrote:
> But could someone post _all_ the actual predefined symbols for the
> following 4 combinations ?

I have posted this before, but here it is again - the magic command I
use with any flavor of GCC is

echo|gcc -E -dM -

Replace gcc with the right one and add the options you need.

Best regards,
Carsten Sorensen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
InfoMail InfoMail | 23 May 2008 14:52
Picon

mingw32ce iwmmx undefined references

Hello,

I'd like to report that inside mmintrin.h, there is the following line:

typedef unsigned long long __m64, __int64;

but it seems that __int64 is already defined, so in order to compile my program i had to remove __int64 as follow:

typedef unsigned long long __m64;

Is there something i missed? Or was that file wrong? I'm using mingw32ce 0.5.1 build for cygwin.

Furthermore i have another problem during linking phase:

undefined reference to __builtin_arm_wand
undefined reference to __builtin_arm_wor
...

I used the following makefile:

TOOLCHAIN = /opt/mingw32ce
ARCH = /bin/arm-wince-mingw32ce-
CC = $(TOOLCHAIN)$(ARCH)gcc.exe
LINK = $(TOOLCHAIN)$(ARCH)gcc.exe
CFLAGS = -c -pipe -Wall -W -O2 -march=armv5te -mtune=iwmmxt -Wa,-mcpu=iwmmxt -fomit-frame-pointer -I$(TOOLCHAIN)/arm-mingw32ce/include -L$(TOOLCHAIN)/include -D_WIN32_WCE=0x0500 -D_WIN32_IE=0x0500
LIBS = -L$(TOOLCHAIN)/arm-mingw32ce/lib -L$(TOOLCHAIN)/lib -laygshell

OBJECTS = main.o
TARGET   = myapp

first: all

all: $(TARGET)

$(TARGET):  $(OBJECTS)
    $(LINK) -o $(TARGET) $(OBJECTS) $(LIBS)
   
main.o:
    $(CC) $(CFLAGS) -o main.o main.c


Someone can point me to a solution?
Thanks in advance.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@...
https://lists.sourceforge.net/lists/listinfo/cegcc-devel
Christian Prochaska | 25 May 2008 08:37

Re: Qt4 on CE, anyone ?

On Thu, Mar 20, 2008 at 7:05 PM, Danny Backx <danny.backx-rJAIWvhRp0CZIoH1IeqzKA@public.gmane.org> wrote:

There is a beta of Qt version 4 around which should work on WinCE.

The development environment of that districution is Microsoft tools
though.

Has anyone attempted this with cegcc ?

       Danny

Hi,

I finally got the recently released 4.4.0 version for Windows CE to compile with mingw32ce (thanks to Pedro's 4.1.0 patch from the mailing list, which acted as reference for fixing many of the compile errors that occured). It would be nice if someone could review the attached patch and help to clean it up, so it can eventually be released somewhere. I only fixed the compile errors so far, there are also some warnings that could be fixed, too. And it's also possible that some of the changes break functionality. I only tested some simple GUI applications from the examples directory so far, which seemed to work ok.

I used the Cygwin bash shell as development environment with the PATH variable pointing to both mingw32ce and MinGW (to compile the host tools).
In this environment, after applying the patch, Qt can be built with the following steps:

$ cd qt-embedded-wince-opensource-src-4.4.0
$ source ./setenv.sh
$ ./configure-wince-arm-g++.sh
$ mingw32-make

Christian

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@...
https://lists.sourceforge.net/lists/listinfo/cegcc-devel
Christian Prochaska | 25 May 2008 11:16

Re: Qt4 on CE, anyone ?

Here's a slightly updated patch to fix compilation problems when building a new application:

- QMAKESPEC exported in setenv.sh
- GNUWINCE defined in qmake.conf

Christian

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@...
https://lists.sourceforge.net/lists/listinfo/cegcc-devel
Schumi Imor | 25 May 2008 22:31
Picon

cegcc.dll on CE6?

Hello,
  Will cegcc.dll binary from 0.51 work on WinCE 6? I tried it on CE5 and it works but  I'm planning to buy a CE6 device and I'm worried about the new memory mapping and protections of CE6. Anyone with info on this?

Thanks

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@...
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Gmane