PDA

View Full Version : How to cross compile Mplayer into Arm target board



naren4055
13th May 2010, 02:11 PM
i am new bie to linux , can any one tell me how to cross compile Mplayer into ARM target board , my target board details are http://www.friendlyarm.net/products/mini2440,
and i have successfully compiled Mplayer in intel pc which architecture details are


Linux localhost 2.6.27.5-117.fc10.i686 #1 SMP Tue Nov 18 12:19:59 EST 2008 i686 i686 i386 GNU/Linux

i followed this link in order to compile Mplayer , that is http://www.mjmwired.net/resources/mplayer-fedora.html
and my board cross compiler name is arm-linux-gcc 4.3.2, i tried in the following way


export CROSS_COMPILE=/home/narendra/friendlyarm/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-
export PATH=/home/narendra/friendlyarm/usr/local/arm/4.3.2/bin:$PATH
./configure --enable-gui --enable-largefiles --enable-menu --prefix=/home/narendra/mplayerarm --confdir=/etc/mplayer --target=arm-linux


but it is compiling for intel i686, but not for arm architecture .pls tell me how to cross compile MPlayer into arm board

naren4055
18th May 2010, 12:13 PM
i am new bie to linux , i was trying to cross compile mplayer into arm target board which has arm -linux-gcc 4.3.2 compiler , i got follwing error message


[narendra@localhost mplayer-checkout-2010-05-04]$ export PATH=/home/narendra/friendlyarm/usr/local/arm/4.3.2/arm-none-linux-gnueabi/bin:$PATH
[narendra@localhost mplayer-checkout-2010-05-04]$ ./configure --target=arm-linux --enable-gui --enable-largefiles --enable-menu --prefix=/home/narendra/friendlyarm/usr/local/arm/4.3.2/arm-none-linux-gnueabi/bin --confdir=/etc/mplayer
Checking for cc version ... 4.3.2
Detected operating system: Linux
Detected host architecture: arm
Checking for host cc ... cc
Checking for cross compilation ... yes
Checking for byte order ... failed to autodetect byte order, defaulting to little-endian
Checking for extern symbol prefix ...
Error: Symbol mangling check failed.

Check "configure.log" if you do not understand why it failed.

and configure.log file details are


configuration: --target=arm-linux --enable-gui --enable-largefiles --enable-menu --prefix=/home/narendra/friendlyarm/usr/local/arm/4.3.2/arm-none-linux-gnueabi/bin --confdir=/etc/mplayer

============ Checking for cc version ============
Result is: 4.3.2
##########################################

============ Checking for host cc ============
Result is: cc
##########################################

============ Checking for cross compilation ============

int main(void) { return 0; }

cc -I. -o /tmp/mplayer-conf-3702-9904 /tmp/mplayer-conf-20582-9904.c
as: unrecognized option '-Qy'


Result is: yes
##########################################

============ Checking for byte order ============

short ascii_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|'B'),
(('i'<<8)|'g'),(('E'<<8)|'n'),(('d'<<8)|'i'),(('a'<<8)|'n'),0};
int main(void) { return (int)ascii_name; }

cc -I. -o /tmp/mplayer-conf-3702-9904 /tmp/mplayer-conf-20582-9904.c
as: unrecognized option '-Qy'


Result is: little-endian
##########################################

============ Checking for extern symbol prefix ============

int ff_extern;

cc -I. -o /tmp/mplayer-conf-3702-9904 /tmp/mplayer-conf-20582-9904.c -c
as: unrecognized option '-Qy'

i was trying these steps in fedora 10 version and architecture details are linux 2.6 and intel i386.
pls tell me how to solve this problem.
and i have sucessfully compiled mplayer in intel desktop pc according to following site
http://www.mjmwired.net/resources/mplayer-fedora.html
and my taget bord details are
http://www.friendlyarm.net/products/mini2440

leigh123linux
18th May 2010, 12:18 PM
Please keep your mplayer problem to one thread only.

One more double post and you will be nominated for a ban for breach of rules.

P.S dont tag the post with your username as it isn't useful .