[MPlayer-users] Cross-Compile Prob for MIPS with mplayer

Bertram Geck bertramgeck at yahoo.com
Tue Apr 24 10:01:11 CEST 2007


Hi,

I get an error message when cross-compiling the mplayer for a mips-processor with buildroot on a I386 Linux system. 
maybe anyone can give me a hint....

Here is my configure-output:
======================================================================================
Detected operating system: mips
Detected host architecture: mips
Checking for /root/buildroot/build_mips/staging_dir/bin/mips-linux-uclibc-gcc-4.1.2 version ... 4.1.2, ok 
Checking for host cc ... gcc 
Checking for cross compilation ... yes 
Checking for assembler support of -pipe option ... yes 
Checking for compiler support of named assembler arguments ... yes 
Checking for .align is a power of two ... yes 
Checking for MPlayer binary name ... mplayer 
Checking for extra headers ... -I/root/buildroot/build_mips/staging_dir/include -I/root/buildroot/build_mips/staging_dir/include/asm-mips -I--with-extralibdir 
Checking for extra libs ... none 
Checking for -lposix ... no 
Checking for -lm ... yes 
Checking for langinfo ... no 
Checking for language ... using en (man pages:  en) 
Checking for enable sighandler ... yes 
Checking for runtime cpudetection ... no 
Checking for restrict keyword ... __restrict 
Checking for __builtin_expect ... yes 
Checking for kstat ... no 
Checking for posix4 ... no 
Checking for lrintf ... yes 
Checking for round ... yes 
Checking for nanosleep ... yes 
Checking for socklib ... yes 
Checking for inet_pton() ... yes (using )
Checking for inttypes.h (required) ... yes 
Checking for int_fastXY_t in inttypes.h ... yes 
Checking for word size ...  
Checking for stddef.h ... yes 
Checking for malloc.h ... no 
Checking for memalign() ... no 
Checking for alloca.h ... yes 
Checking for mman.h ... yes 
Checking for dynamic loader ... yes 
Checking for dynamic a/v plugins support ... no 
Checking for pthread ... no (v4l, vo_gl, ao_alsa, ao_nas, ao_macosx, win32 loader disabled)
Checking for rpath ... no 
Checking for iconv ... no 
Checking for sys/soundcard.h ... yes 
Checking for sys/dvdio.h ... no 
Checking for sys/cdio.h ... no 
Checking for linux/cdrom.h ... yes 
Checking for dvd.h ... no 
Checking for termcap ... no 
Checking for termios ... yes (using sys/termios.h)
Checking for shm ... yes 
Checking for linux devfs ... no 
Checking for scandir() ... yes 
Checking for strsep() ... no 
Checking for strlcpy() ... no 
Checking for strlcat() ... no 
Checking for fseeko() ... no 
Checking for localtime_r() ... no 
Checking for vsscanf() ... yes 
Checking for swab() ... yes 
Checking for POSIX select() ... no 
Checking for gettimeofday() ... no 
Checking for glob() ... no 
Checking for setenv() ... yes 
Checking for sys/sysinfo.h ... yes 
Checking for Samba support (libsmbclient) ... no 
Checking for 3dfx ... no 
Checking for tdfxfb ... no 
Checking for s3fb ... no 
Checking for tdfxvid ... no 
Checking for tga ... yes 
Checking for DirectFB ... no 
Checking for X11 headers presence ... yes (using /usr/include)
Checking for X11 ... no (check if the dev(el) packages are installed)
Checking for DPMS ... no 
Checking for Xv ... no 
Checking for XvMC ... no 
Checking for Xinerama ... no 
Checking for Xxf86vm ... no 
Checking for XF86keysym ... no 
Checking for DGA ... no 
Checking for OpenGL ... no 
Checking for /dev/mga_vid ... no 
Checking for xmga ... no 
Checking for GGI ... no 
Checking for GGI extension: libggiwmh ... no 
Checking for AA ... no 
Checking for CACA ... no 
Checking for SVGAlib ... no 
Checking for FBDev ... yes 
Checking for DVB ... no 
Checking for DVB HEAD ... no 
Checking for PNG support ... no 
Checking for JPEG support ... no 
Checking for PNM support ... no 
Checking for GIF support ... no 
Checking for VESA support ... no 
Checking for SDL ... no 
Checking for NAS ... no 
Checking for DXR2 ... no 
Checking for DXR3/H+ ... no 
Checking for IVTV TV-Out ... no 
Checking for libfame ... no 
Checking for OSS Audio ... no 
Checking for aRts ... no 
Checking for EsounD ... no 
Checking for Polyp ... no 
Checking for JACK ... no 
Checking for OpenAL ... no 
Checking for ALSA audio ... no 
Checking for Sun audio ... no 
Checking for VCD support ... no (not supported on this OS)
Checking for DVD support (libdvdnav) ... no 
Checking for DVD support (libmpdvdkit2) ... no 
Checking for DVD support (libdvdread) ... no 
Checking for cdparanoia ... no 
Checking for libcdio ... no 
Checking for bitmap font support ... yes 
Checking for freetype >= 2.0.9 ... no (iconv support needed)
Checking for fontconfig ... no (freetype support needed)
Checking for SSA/ASS support ... no (FreeType support needed)
Checking for fribidi with charsets ... no 
Checking for ENCA ... no 
Checking for zlib ... no 
Checking for RTC ... yes 
Checking for external liblzo support ... no 
Checking for mad support ... no 
Checking for Toolame ... no 
Checking for Twolame ... no 
Checking for OggVorbis support ... yes (internal Tremor)
Checking for libspeex (version >= 1.1 required) ... no 
Checking for OggTheora support ... no 
Checking for mp3lib support ... no 
Checking for liba52 support ... no 
Checking for libdts support ... no 
Checking for libmpeg2 support ... no 
Checking for libmpcdec (musepack, version >= 1.2.1 required) ... no 
Checking for FAAC (AAC encoder) support ... no 
Checking for FAAD2 (AAC) support ... yes (internal floating-point)
Checking for LADSPA plugin support ... no 
Checking for XAnim DLL ... no (no suitable directory found - see DOCS/HTML/en/codecs.html)
Checking for RealPlayer DLL ... no (tested only on Linux/FreeBSD/NetBSD/Cygwin/MinGW/Darwin)
Checking for LIVE555 Streaming Media libraries ... no 
Checking for FFmpeg libavutil (static) ... yes 
Checking for FFmpeg libavcodec (static) ... yes 
Checking for FFmpeg libavformat (static) ... yes 
Checking for FFmpeg libpostproc (static) ... no 
Checking for FFmpeg libpostproc (dynamic) ... no 
Checking for md5sum support ... no 
Checking for AMR narrowband ... no 
Checking for AMR narrowband, fixed point ... no 
Checking for AMR wideband ... no 
Checking for libdv-0.9.5+ ... no 
Checking for zr ... no 
Checking for bl ... no 
Checking for XviD ... no 
Checking for x264 ... no 
Checking for nut ... no 
Checking for mencoder ... no 
Checking for fastmemcpy ... no 
Checking for UniquE RAR File Library ... yes 
Checking for TV interface ... yes 
Checking for Video 4 Linux TV interface ... no 
Checking for Video 4 Linux 2 TV interface ... no 
Checking for Radio interface ... no 
Checking for Capture for Radio interface ... no 
Checking for Video 4 Linux 2 Radio interface ... no 
Checking for Video 4 Linux Radio interface ... no 
Checking for Video 4 Linux 2 MPEG PVR interface ... no 
Checking for audio select() ... yes 
Checking for network ... yes 
Checking for ftp ... yes 
Checking for vstream client ... no 
Checking for byte order ... big-endian 
Checking for OSD menu ... no 
Checking for QuickTime codecs ... auto 
Checking for Subtitles sorting ... yes 
Checking for XMMS inputplugin support ... no 
Checking for inet6 ... yes 
Checking for gethostbyname2 ... yes 
Checking for GUI ... no
Checking for iconv program ... yes 
Checking for automatic gdb attach ... no 
Checking for compiler support for -fno-PIC ... only used for x86 
Checking for compiler support for noexecstack ... yes 
Checking for ftello() ... yes 
Checking for VIDIX (internal) ... no 
Checking for VIDIX (external) ... no 
Checking for joystick ... no 
Checking for lirc ... no 
Checking for lircc ... no 
Creating config.mak
Creating config.h

Config files successfully generated by ./configure !

  Install prefix: /root/buildroot/usr/local
  Data directory: /root/buildroot/usr/local/share/mplayer
  Config direct.: /root/buildroot/usr/local/etc/mplayer

  Byte order: big-endian
  Optimizing for: 

  Languages:
    Messages/GUI: en
    Manual pages:  en

  Enabled optional drivers:
    Input: ftp network tv 
    Codecs: libavcodec faad2 tremor(internal) 
    Audio output: mpegpes(file) 
    Video output: mpegpes(file) fbdev tga 
    Audio filters: 
  Disabled optional drivers:
    Input: vstream pvr radio tv-v4l2 tv-v4l1 live555 cdda dvdread mpdvdkit2 dvdnav vcd dvb smb 
    Codecs: qtx x264 xvid libdv amr_wb amr_nb real xanim faac musepack libmpeg2 libdts liba52 mp3lib libtheora speex twolame toolame libmad liblzo gif 
    Audio output: sun alsa openal jack polyp esd arts oss ivtv dxr2 nas sdl 
    Video output: xvidix winvidix cvidix bl zr zr2 md5sum ivtv dxr3 dxr2 sdl vesa gif89a pnm jpeg png svga caca aa ggi xmga mga opengl dga xvmc xv x11 dfbmga directfb tdfx_vid s3fb tdfxfb 3dfx 
    Audio filters: ladspa 

'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
      compile *** DO NOT REPORT BUGS if you tweak these files ***

'make' will now compile MPlayer and 'make install' will install it.
Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.

NOTE: Win32 codec DLLs are not supported on your CPU (mips) or your
operating system (mips). You may encounter a few files that cannot
be played due to missing open source video/audio codec support.


Check configure.log if you wonder why an autodetection failed (check whether
the development headers/packages are installed).
Do not report compilation errors if you used any of the --enable-* options
(except --enable-gui and maybe --enable-debug).

If you suspect a bug, please read DOCS/HTML/en/bugreports.html.
======================================================================================

Here my options-file:
======================================================================================
./configure --prefix=/root/buildroot/usr/local \
--disable-langinfo \
--disable-iconv \
--disable-vm \
--disable-mencoder \
--enable-cross-compile \
--cc=/root/buildroot/build_mips/staging_dir/bin/mips-linux-uclibc-gcc-4.1.2 \
--host-cc=gcc \
--as=/root/buildroot/build_mips/staging_dir/bin/mips-linux-uclibc-as \
--target=mips \
--enable-fbdev \
--disable-fastmemcpy \
--disable-x11 \
--disable-xmga \
--disable-xv \
--disable-xvmc \
--disable-amr_wb \
--disable-dvdread \
--disable-mpdvdkit \
--disable-md5sum \
--disable-termcap \
--disable-live \
--with-extraincdir=/root/buildroot/build_mips/staging_dir/include:\
/root/buildroot/build_mips/staging_dir/include/asm-mips:\
--with-extralibdir=/root/buildroot/build_mips/staging_dir/mips-linux/lib:\
/root/buildroot/build_mips/staging_dir/mips-linux-uclibc/lib \
--disable-libpostproc  \
--disable-libavutil_so  \
--disable-libpostproc_so \
--disable-libavcodec_mpegaudio_hp \
--disable-mad \
--disable-toolame \
--disable-twolame \
--disable-mp3lib \
--disable-libmpeg2 \
--disable-musepack \
--disable-liba52 \
--disable-libdts \
--disable-pthreads \
--disable-ass \
--disable-fastmemcpy \
--disable-dvb \
--disable-dvbhead \
--disable-ossaudio \
--disable-pnm \


======================================================================================
Here my make output:
======================================================================================
./version.sh `/root/buildroot/build_mips/staging_dir/bin/mips-linux-uclibc-gcc-4.1.2 -dumpversion`
iconv -f `cat help/help_mp-en.h.charset` -t UTF-8 "help/help_mp-en.h" >> help_mp.h
/root/buildroot/build_mips/staging_dir/bin/mips-linux-uclibc-gcc-4.1.2 -c -Wdeclaration-after-statement -O4   -pipe -ffast-math -fomit-frame-pointer -I/root/buildroot/build_mips/staging_dir/include -I/root/buildroot/build_mips/staging_dir/include/asm-mips -I--with-extralibdir -I/usr/include -I.  -I./libavutil -I./libavcodec -o mplayer.o mplayer.c
In file included from /usr/include/sys/types.h:133,
                 from /usr/include/stdlib.h:438,
                 from mplayer.c:6:
/root/buildroot/build_mips/staging_dir/include/asm-mips/time.h:75: warning: 'regparm' attribute directive ignored
/root/buildroot/build_mips/staging_dir/include/asm-mips/time.h:81: warning: 'regparm' attribute directive ignored
In file included from /usr/include/sys/types.h:220,
                 from /usr/include/stdlib.h:438,
                 from mplayer.c:6:
/usr/include/sys/select.h:125: warning: 'struct timespec' declared inside parameter list
/usr/include/sys/select.h:125: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from /usr/include/sys/wait.h:31,
                 from mplayer.c:20:
/root/buildroot/build_mips/staging_dir/include/asm-mips/signal.h:21: error: conflicting types for 'sigset_t'
/usr/include/sys/select.h:38: error: previous declaration of 'sigset_t' was here
In file included from /usr/include/sys/stat.h:105,
                 from mplayer.c:31:
/usr/include/bits/stat.h:70: error: field 'st_atim' has incomplete type
/usr/include/bits/stat.h:71: error: field 'st_mtim' has incomplete type
/usr/include/bits/stat.h:72: error: field 'st_ctim' has incomplete type
In file included from mplayer.c:161:
get_path.c: In function 'get_path':
get_path.c:54: warning: incompatible implicit declaration of built-in function 'strlen'
mplayer.c: In function 'get_demuxer_info':
mplayer.c:491: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c: In function 'get_metadata':
mplayer.c:504: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c:504: warning: incompatible implicit declaration of built-in function 'strrchr'
mplayer.c:510: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c:547: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c: In function 'parse_cfgfiles':
mplayer.c:839: warning: incompatible implicit declaration of built-in function 'strlen'
mplayer.c: In function 'load_per_file_config':
mplayer.c:852: warning: incompatible implicit declaration of built-in function 'strlen'
mplayer.c:865: warning: incompatible implicit declaration of built-in function 'strrchr'
mplayer.c: In function 'mp_property_filename':
mplayer.c:1557: warning: incompatible implicit declaration of built-in function 'strrchr'
mplayer.c: In function 'mp_property_mute':
mplayer.c:1724: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c: In function 'mp_property_channels':
mplayer.c:1777: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c: In function 'mp_property_audio':
mplayer.c:1803: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c: In function 'mp_property_framedropping':
mplayer.c:1946: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c: In function 'mp_property_gamma':
mplayer.c:1992: warning: incompatible implicit declaration of built-in function 'strlen'
mplayer.c: In function 'mp_property_sub':
mplayer.c:2097: warning: incompatible implicit declaration of built-in function 'strrchr'
mplayer.c:2102: warning: incompatible implicit declaration of built-in function 'strlen'
mplayer.c: In function 'mp_property_sub_alignment':
mplayer.c:2280: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c: In function 'reinit_audio_chain':
mplayer.c:2672: warning: incompatible implicit declaration of built-in function 'strlen'
mplayer.c: In function 'main':
mplayer.c:2878: warning: incompatible implicit declaration of built-in function 'strrchr'
mplayer.c:2883: warning: incompatible implicit declaration of built-in function 'strstr'
mplayer.c:3108: error: 'errno' undeclared (first use in this function)
mplayer.c:3108: error: (Each undeclared identifier is reported only once
mplayer.c:3108: error: for each function it appears in.)
mplayer.c:3357: warning: incompatible implicit declaration of built-in function 'strlen'
mplayer.c:3367: warning: incompatible implicit declaration of built-in function 'strrchr'
mplayer.c:3375: warning: incompatible implicit declaration of built-in function 'strcat'
mplayer.c:3505: warning: incompatible implicit declaration of built-in function 'strrchr'
mplayer.c:3521: warning: incompatible implicit declaration of built-in function 'strcat'
mplayer.c:5066: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c:5073: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c:5080: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c:5087: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c:5094: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c:5101: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c:5108: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c:5115: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c:5122: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c:5129: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c:5136: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c:5143: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c:5150: warning: incompatible implicit declaration of built-in function 'strdup'
mplayer.c:5175: warning: incompatible implicit declaration of built-in function 'execl'
make: *** [mplayer.o] Fehler 1


 
gebeCom Homepage ==> http://www.gebecom.de
Fotoatelier: ==> http://bertramgeck.meinatelier.de

 





      Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail


More information about the MPlayer-users mailing list