Hi,
I am trying to build MPlayer for AM335x but unfortunately without success. I have Ubuntu 12.04
1. In my /home/maros/TILINUX I have installed SDK with toolchain: ti-sdk-am335x-evm-07.00.00.00 and INSTALL folder.
2. In INSTALL folder I have mplayer source code downloaded like: svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
3. When I tried run ./configure script in mplayer folder I got an error that ffmpeg folder is missing.
4. So I downloaded ffmpeg source code to INSTALL folder like this: git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
5. I moved ffmpeg folder into mplayer folder.
6. Now I tried run ./configure script again and with success. OK I think that source codes are ready.
NOW Cross-complie:
Actually I am in the mplayer directory.
7. I must add PATH into enviroment PATH, so:
export PATH="/home/maros/TILINUX/ti-sdk-am335x-evm-07.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin:$PATH"
8. ./configure --enable-cross-compile --cc=arm-linux-gnueabihf-gcc --host-cc=gcc --as=arm-linux-gnueabihf-as --ar=arm-linux-gnueabihf-ar --ranlib=arm-linux-gnueabihf-ranlib --target=arm-linux --enable-alsa
9. config.h, config.mak and config.log are made.
10. make.
11. After a few minutes I have got some errors and this is at the end of console output:
In file included from libavcodec/arm/ac3dsp_arm.S:21:0:
./libavutil/arm/asm.S:37:5: warning: "HAVE_AS_FUNC" is not defined [-Wundef]
AS libavcodec/arm/ac3dsp_armv6.o
In file included from libavcodec/arm/ac3dsp_armv6.S:21:0:
./libavutil/arm/asm.S:37:5: warning: "HAVE_AS_FUNC" is not defined [-Wundef]
CC libavcodec/arm/ac3dsp_init_arm.o
CC libavcodec/arm/audiodsp_init_arm.o
CC libavcodec/arm/blockdsp_init_arm.o
CC libavcodec/arm/dcadsp_init_arm.o
AS libavcodec/arm/dcadsp_vfp.o
In file included from libavcodec/arm/dcadsp_vfp.S:22:0:
./libavutil/arm/asm.S:37:5: warning: "HAVE_AS_FUNC" is not defined [-Wundef]
CC libavcodec/arm/fft_fixed_init_arm.o
CC libavcodec/arm/fft_init_arm.o
AS libavcodec/arm/fft_vfp.o
In file included from libavcodec/arm/fft_vfp.S:22:0:
./libavutil/arm/asm.S:37:5: warning: "HAVE_AS_FUNC" is not defined [-Wundef]
libavcodec/arm/fft_vfp.S: Assembler messages:
libavcodec/arm/fft_vfp.S:36: Error: non-constant expression in ".if" statement
make[1]: *** [libavcodec/arm/fft_vfp.o] Error 1
make[1]: Leaving directory `/home/maros/TILINUX/INSTALL/mplayer/ffmpeg'
make: *** [ffmpeg/libavcodec/libavcodec.a] Error 2
When I looked into /home/maros/TILINUX/INSTALL/mplayer/ffmpeg/libavcodec then libavcodec.a is missing - I do not know why. In attached file I see problems with lircc.h, lirc_client.h and libosso.h because it says: No file or directory.
12. So I run "make clean" and now I try: make -i
13. This is the end of console output after make -i :
arm-linux-gnueabihf-gcc: error: ffmpeg/libavcodec/libavcodec.a: No such file or directory
make: [mencoder] Error 1 (ignored)
Log file is attached.
Strange thing is that I could not build mplayer for Ubuntu 12.04 too. Please help :( If someone has a solution, please, write it in step by step guide. Thank you.
Best regards,
Maros