[MPlayer-dev-eng] mplayer arm port support for liveMedia

armin.gerritsen at philips.com armin.gerritsen at philips.com
Fri Aug 1 14:21:29 CEST 2003


Hello Mildred,

>> $ make
>> ....
>>     #arm-linux-gcc -O4   -pipe -ffast-math -fomit-frame-pointer
>> -Ilibmpdemux -Iloader -Ilibvo  -I/Projects/armbuild/SDL/include
>> -g
>> codec-cfg.c mp_msg.c -o codec-cfg -DCODECS2HTML
>> -L/Projects/armbuild/SDL/lib

>> gcc -O4   -pipe -ffast-math -fomit-frame-pointer -Ilibmpdemux
>> -Iloader
>> -Ilibvo  -I/Projects/armbuild/SDL/include       -g codec-cfg.c
>> mp_msg.c
>> -o  -DCODECS2HTML -L/Projects/armbuild/SDL/lib


Can you do a manual make for the tool and header?
I get in that case a:

[agerrits at pc67148960 MPlayer-20030616]$ make codec-cfg
gcc -O4   -pipe -ffast-math -fomit-frame-pointer -Ilibmpdemux -Iloader -Ilib
vo        -g codec-cfg.c mp_msg.c -o codec-cfg -DCODECS2HTML
[agerrits at pc67148960 MPlayer-20030616]$ make codecs.conf.h
./codec-cfg ./etc/codecs.conf > codecs.conf.h

If that succedes it is just that for some reason the main makefile fauls up.
See also the next comment.


>> codec-cfg.c:36:25: codecs.conf.h: No such file or directory
>> codec-cfg.c: In function `parse_codec_cfg':
>> codec-cfg.c:491: `builtin_video_codecs' undeclared (first use in this
>> function)
>> codec-cfg.c:491: (Each undeclared identifier is reported only once
>> codec-cfg.c:491: for each function it appears in.)
>> codec-cfg.c:492: `builtin_audio_codecs' undeclared (first use in this
>> function)
>> make: *** [codec-cfg] Error 1
>>
>> $
>>
>> there was no codecs.conf.h file that was generated.


By doing a "make codecs.conf.h" you can manually generate this required
file.
I know, this is just a workaround, but it may help you get further.


>> i attached some necessary files (configure messages -
>> configure_milds.txt, config.mak, and the make error message -
>> make.log)


The files look fine at first sight.

However it still is strange since in my case the 'make' starts with:

[agerrits at pc67148960 MPlayer-20030616]$ make
arm-linux-gcc -c -O4   -pipe -ffast-math -fomit-frame-pointer -Ilibmpdemux -
Iloader -Ilibvo        -o mplayer.o mplayer.c
mplayer.c: In function `main':
mplayer.c:805: warning: passing arg 2 of `m_config_register_options' from
incompatible pointer type
arm-linux-gcc -c -O4   -pipe -ffast-math -fomit-frame-pointer -Ilibmpdemux -
Iloader -Ilibvo        -o mp_msg.o mp_msg.c
arm-linux-gcc -c -O4   -pipe -ffast-math -fomit-frame-pointer -Ilibmpdemux -
Iloader -Ilibvo        -o cpudetect.o cpudetect.c
gcc -O4   -pipe -ffast-math -fomit-frame-pointer -Ilibmpdemux -Iloader -Ilib
vo        -g codec-cfg.c mp_msg.c -o codec-cfg -DCODECS2HTML
./codec-cfg ./etc/codecs.conf > codecs.conf.h
arm-linux-gcc -c -O4   -pipe -ffast-math -fomit-frame-pointer -Ilibmpdemux -
Iloader -Ilibvo        -o codec-cfg.o codec-cfg.c


... and then it continues.


>> i also have another question regarding liveMedia cross-compilation.
>> i
>> was able to finish cross-compiling it using arm-linux tools and
>> produced
>> binaries in the testProgs/ library.  however when i execute the test
>> programs in arm (iPAQ and assabet)  i get segmentation fault.  i'm
>> having a very hard time with debugging and i don't know what's wrong
>> with it.  what toolchain/version did you use?  i also attached my
>> config.arm-linux file to ask you if there's anything wrong with it.

The file looks fine, but there is of course not much you can faul up there.
And it compiles ...
Maybe a stupid question, but other programs created with this compiler work
on iPaq?
Note also that I didn't really like the testtools. I played only a bit with
them. (They didn't crash however on our ARM 920T.)

My info:

arm-linux-gcc --version = 2.95.3

And I used:

live.2003.06.13.tar.gz
ffmpeg-cvs-2003-06-16.tar.gz

Hope this helps a bit.

Regards,

Armin




More information about the MPlayer-dev-eng mailing list