Log in

View Full Version : MPlayer/Encoder compiling Errors


Amnon82
17th March 2004, 23:16
K, why I start such a thread? Cos I don't find the answers yet.

Here are some things I found out:

First at the install process of MinGW and MySys.

Screenshot out of my guide (http://rj-elektronik.de/avideo/images/mencoder/m5.jpg)

In this screenshot is written that I don't have a make.exe in the c:/MinGW/bin/ folder. I don't care about this, cos I can compile MEncoder and MPlayer.

Next thing what wondering me is this:

Screenshot of the MinGW window (http://rj-elektronik.de/avideo/images/mencoder/m10.jpg)

There it wrotes this:

done
ln: creating symbolic link `/usr/local/man/man1/mencoder.1' to `mplayer.1': No such file or directory
make: *** [install] Error 1

It seems that it can't compile the manualfile of MEncoder. K, I don't need it, but I want to know if this is normal. Did this happend to You guys also?

Then the last thing:

There are two binaries in two different folders.

The first bins are located in c:/msys/1.0/local/bin
The other bins are located in c:/MPlayer/Mplayer (or the folder You stored Your Source codes)

The one in the /local/bin folder are smaler than the other in the /MPlayer folder.

In my case the have:

in /local/bin MEncoder.exe 3.68 MB; MPlayer.exe 3.74 MB

in /MPlayer MEncoder.exe 4.02 MB; MPlayer.exe 4.10 MB

Now my question is: Which bins should I use? Till now I used the bigger ones out of the MEncoder-folder.

I tried out the other bins. They worked also...

Any suggestions?

celtic_druid
18th March 2004, 06:14
Try running strip on the larger EXE's and see how the resulting size compares.

As for the errors, last time I compiled it all went fine. But errors aren't exactly uncommon when dealing with CVS code.

Amnon82
18th March 2004, 10:05
@ Celtic_druid: Try running strip on the larger EXE's

HMM? :confused: Running strip? Tell me more about this. So You think I should use the bins in the bin-folder.

As for the errors, last time I compiled it all went fine.

Which code do You use then?

@ All: Today I got a total different Error message with the new 18.03.04 CVS:

$ make install
./darwinfixlib.sh mencoder.o mp_msg-mencoder.o cpudetect.o codec-cfg.o spudec.o
playtree.o playtreeparser.o asxparser.o vobsub.o subreader.o sub_cc.o
find_sub.o m_config.o m_option.o parser-cfg.o m_struct.o unrarlib.o
libao2/afmt.o divx4_vbr.o libvo/aclib.o libvo/osd.o libvo/sub.o
libvo/font_load.o libvo/font_load_ft.o xvid_vbr.o parser-mecmd.o
loader/driver.o loader/vfl.o loader/afl.o loader/dshow/libDS_Filter.a
loader/dmo/libDMO_Filter.a libavcodec/libavcodec.a
libmpdemux/libmpdemux.a libmpcodecs/libmpcodecs.a libao2/libao2.a
liba52/liba52.a mp3lib/libMP3.a libmpeg2/libmpeg2.a osdep/libosdep.a
postproc/libswscale.a input/libinput.a libvo/libvo.a libaf/libaf.a
libfaad2/libfaad2.a libmpdvdkit2/libmpdvdkit.a libmpflac/libmpflac.a
libmpcodecs/libmpencoders.a
gcc -I../libvo/ -I../../libvo -O4 -march=athlon-4 -mcpu=athlon-4 -pipe
-ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -Ilibmpdemux -Iloader -Ilibvo -o
mencoder mencoder.o mp_msg-mencoder.o cpudetect.o codec-cfg.o spudec.o
playtree.o playtreeparser.o asxparser.o vobsub.o subreader.o sub_cc.o
find_sub.o m_config.o m_option.o parser-cfg.o m_struct.o unrarlib.o
libao2/afmt.o divx4_vbr.o libvo/aclib.o libvo/osd.o libvo/sub.o
libvo/font_load.o libvo/font_load_ft.o xvid_vbr.o parser-mecmd.o
libmpcodecs/libmpencoders.a libmpcodecs/libmpcodecs.a mp3lib/libMP3.a
liba52/liba52.a libmpeg2/libmpeg2.a loader/driver.o loader/vfl.o
loader/afl.o loader/dshow/libDS_Filter.a loader/dmo/libDMO_Filter.a
libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a
postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2 -lmpdvdkit
libavcodec/libavcodec.a -static -lws2_32 -lgdi32
-lwinmm -ladvapi32 -lole32 -Llibmpflac -lmpflac
libfaad2/libfaad2.a -rdynamic -lm
libmpdemux/libmpdemux.a(muxer_avi.o)(.text+0xa45):muxer_avi.c: undefined reference to `fseeko'
libmpdemux/libmpdemux.a(muxer_avi.o)(.text+0xa88):muxer_avi.c: undefined reference to `fseeko'
libmpdemux/libmpdemux.a(muxer_avi.o)(.text+0xadc):muxer_avi.c: undefined reference to `fseeko'
gcc.exe: unrecognized option `-rdynamic'
make: *** [mencoder] Error 1


I reinstall my whole compilingsystem. Maybe I forgot something...

"gcc.exe: unrecognized option `-rdynamic'" ... what is this? Is this needed?

Amnon82
19th March 2004, 11:32
Can't compile CVS 19.03.04. Could somebody elsw compile this CVS? Also 18.03.04 I can't...

I think they change something...

Amnon82
19th March 2004, 13:12
The system is it. I'm updating now my compiling guide. Now you must use cygwin for doing this job. I compiled MEncoder without any errors!

celtic_druid
21st March 2004, 14:40
Still compiles ok (with a little tweaking) for me using mingw. Can't get libdv to compile though. Also if I enable static XviD is disabled. Got vorbis and theora working ok though, plus updated faad. All completely useless for encoding MPEG1/2, but hey at least mplayer can decode ogm's.

Amnon82
21st March 2004, 16:57
Then send me Your tweaked MinGW Version. What I can see is with Cygwin it is faster and it compiles MEncoder 10% smaller.

celtic_druid
22nd March 2004, 01:04
Not really a tweaked version of MinGW, just had to make a few minor changes.

If Cygwin is faster then I would stick with it. As for size, if you add vorbis, theora, etc. then the size increases so it is kinda hard to compare. Also Cygwin requires a DLL where as mingw does not, so are you including that with the size?

If you want to check it out: http://celticdruid.no-ip.com/mplayer2004.03.23.7z

Have not had time to test it.

Ok, hate to tell you, but -rdynamic is not supported any better by cygwin than it is by mingw, so your binraries do not have faad2 linked (try playing an aac/mp4 file) could explain the smaller size somewhat.

Doesn't seem to have directx either. Guess none of this really matters if you are only using it for mpeg1/2 encoding, infact there is probably a lot more that you could strip out.

Another weird thing; my build will accept a source from a network drive "\\computer name\c\file" where as yours will not.

Amnon82
23rd March 2004, 12:31
Thanx for Your build. Can You tell me how exactly You build this build?
Networksupport is nice. If You want I can add it to the compiling guide and give You credit for that information.

What I found out about MinGW:

It still produces this Error with the manual. You can see that in the last screenshot of mingw in my guide. -rdynamic support is lost in both compiler. The last builds I created in cygwin. mingw couldn't compile the mencoder. So I think something is wrong with my mingw.

Can You give me the exact versionsnumbers of the files You use for mingw? Which msys, gcc etc. I'll also will thank You for that.

Here is my updated codecs.conf (http://rj-elektronik.de/avideo/files/codecs.conf). I added some new codes I use in my DRPEnc GUI. If you want include it into Your next build. It is located in the soure at /etc. So also Your build is then 100% usable with DRPEnc don't needing a extra codecs.conf file.

celtic_druid
23rd March 2004, 12:50
I replaced -rynamic with -Wl,--export-dynamic.

Edited the make file with the correct location to fix the manual error to.

Added an extra include to stream_file.c to sort out an error there.

Think that was about it. Well other than adding ogg, vorbis, theora, etc. libs. Like I said not exactly usefull for your purposes.

Msys v1.0.10, GCC 3.3.3

codecs.conf is no good for me. I uninstalled ffvfw since it was basically merged with ffdshow.

Need:

videocodec makeavis
info "FFdshow makeavis"
status untested
fourcc AVIS
driver vfw
dll "ffdshow.ax"
out YV12

instead and then to put ffdshow.ax in a codecs sub directory as it is not found in program files/.... Could I guess also copy it to system32.

Amnon82
23rd March 2004, 17:07
make file... This is what I didn't had. How did You edited it?

celtic_druid
24th March 2004, 00:13
Wordpad.

Amnon82
24th March 2004, 13:36
@celtic_druid: Sorry for sending so much PMs to You. I deleted it, but I think You still have them.

So what I did. I updated MinGW to 3.3.3 and MSYS to 1.0.10.
I entered my standard line

./configure --enable-largefiles --enable-sse2 --enable-static --with-codecsdir=c:/MPlayer/win32codecs

changed -rynamic to -Wl,--export-dynamic in confic.mak

entered make

...and got 1 Error:


flac -lmpflac libfaad2/libfaad2.a -Wl,--export-dynamic -lm
libmpdemux/libmpdemux.a(muxer_avi.o)(.text+0x805):muxer_avi.c: undefined reference to `fseeko'
libmpdemux/libmpdemux.a(muxer_avi.o)(.text+0x848):muxer_avi.c: undefined reference to `fseeko'
libmpdemux/libmpdemux.a(muxer_avi.o)(.text+0x89c):muxer_avi.c: undefined reference to `fseeko'
make: *** [mencoder] Error 1


Then I did the same in cygwin. There it works!

So what is still my mistake?

Here is the list what compilesystem I've:



Detected operating system: MINGW32
Detected host architecture: i386
Checking for cc version ... not found
Checking for gcc version ... 3.3.3, ok
Checking for CPU vendor ... AuthenticAMD (6:10:0)
Checking for CPU type ... AMD Athlon(tm) XP 2800+
Checking for GCC & CPU optimization abilities ... athlon-4
Checking for kernel support of mmx ... yes
Checking for kernel support of mmx2 ... yes
Checking for kernel support of 3dnow ... yes
Checking for kernel support of 3dnowex ... yes
Checking for kernel support of sse ... yes
Checking for mtrr support ... yes
Checking for assembler (c:/mingw/bin/../lib/gcc-lib/mingw32/3.3.3/../../../../mingw32/bin/as.exe 2.13.90) ... ok
Checking for extra headers ... none
Checking for extra libs ... none
Checking for i18n ... no
Checking for setlocale() ... yes
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 kstat ... no
Checking for posix4 ... no
Checking for lrintf ... yes
Checking for nanosleep ... no
Checking for socklib ... yes (using -lws2_32)
Checking for inet_pton() ... not needed (using winsock2 functions)
Checking for inttypes.h (required) ... yes
Checking for int_fastXY_t in inttypes.h ... yes
Checking for word size ... 32
Checking for stddef.h ... yes
Checking for malloc.h ... yes
Checking for memalign() ... no
Checking for alloca.h ... no
Checking for mman.h ... no
Checking for dynamic loader ... no
Checking for dynamic a/v plugins support ... no
Checking for pthread ... Checking for sys/soundcard.h ... no
Checking for soundcard.h ... no
Checking for sys/dvdio.h ... no
Checking for sys/cdio.h ... no
Checking for linux/cdrom.h ... no
Checking for dvd.h ... no
Checking for BSDI dvd.h ... no
Checking for HPUX SCSI header ... no
Checking for userspace SCSI headers (Solaris) ... no
Checking for termcap ... no
Checking for termios ... no
Checking for shm ... no
Checking for linux devfs ... no
Checking for scandir() ... no
Checking for strsep() ... no
Checking for vsscanf() ... yes
Checking for posix select() ... no
Checking for gettimeofday() ... no
Checking for glob() ... no
Checking for sys/sysinfo.h ... no
Checking for Mac OS X APIs ... no
Checking for Samba support (libsmbclient) ... no
Checking for 3dfx ... no
Checking for tdfxfb ... no
Checking for tdfxvid ... no
Checking for tga ... yes
Checking for DirectFB headers presence ... not found
Checking for DirectFB ... no
Checking for X11 headers presence ... not found (check if the dev(el) packages are installed)
Checking for X11 libs presence ... not found (check if the dev(el) packages are installed)
Checking for X11 ... no
Checking for DPMS ... no
Checking for Xv ... no
Checking for XvMC ... no
Checking for Xinerama ... no
Checking for Xxf86vm ... no
Checking for DGA ... no
Checking for OpenGL ... yes
Checking for /dev/mga_vid ... no
Checking for xmga ... no
Checking for GGI ... no
Checking for AA ... no
Checking for SVGAlib ... no
Checking for FBDev ... no
Checking for DVB ... no (specify path to DVB/ost/include with --with-dvbincdir=DIR)
Checking for DVB HEAD ... no (specify path to DVB/include (HEAD Version) with --with-dvbincdir=DIR)
Checking for PNG support ... no
Checking for JPEG support ... no
Checking for GIF support ... no
Checking for VESA support ... no (not supported on this OS/architecture)
Checking for SDL ... no
Checking for Windows waveout ... yes
Checking for Directx ... yes
Checking for NAS ... no
Checking for DXR2 ... no
Checking for DXR3/H+ ... no
Checking for libmp1e ... no
Checking for libfame ... no
Checking for OSS Audio ... no
Checking for aRts ... no
Checking for EsounD ... no
Checking for ALSA audio ... no
Checking for Sun audio ... no
Checking for Sun mediaLib ... no
Checking for SGI audio ... no
Checking for VCD support ... not supported on this OS
Checking for DVD support (libmpdvdkit) ... yes
Checking for DVD support (libdvdread) ... disabled by libmpdvdkit2
Checking for cdparanoia ... no
Checking for freetype >= 2.0.9 ... no
Checking for fontconfig ... no
Checking for fribidi with charsets ... no
Checking for zlib ... no
Checking for RTC ... no (Linux specific feature)
Checking for external liblzo support ... no
Checking for mad support ... no
Checking for OggVorbis support ... no
Checking for OggTheora support (only the CVS version!) ... no
Checking for Matroska support (external 0.6.0 or later OR internal) ... yes, internal
Checking for internal FAAD2 (AAC) support ... yes
Checking for external FAAD2 (AAC) support ... no
Checking for FAAD2 version ... 2.0 RC1
Checking for Win32 codec DLL support ... yes (using c:/MPlayer/win32codecs)
Checking for Win32 loader support ... no (using native windows)
Checking for DirectShow ... yes
Checking for XAnim DLL ... no (dynamic loader support needed)
Checking for RealPlayer DLL ... yes (using c:/MPlayer/win32codecs)
Checking for LIVE.COM Streaming Media libraries ... no
Checking for iconv ... no
Checking for FFmpeg libavcodec (static) ... yes
Checking for libdv-0.9.5+ ... no
Checking for zr ... no
Checking for bl ... no
Checking for XviD ... no
Checking for DivX4linux/DivX5linux/OpenDivX decore ... no
Checking for libmp3lame (for mencoder) ... no
Checking for DivX4linux encore (for mencoder) ... no
Checking for mencoder ... yes
Checking for fastmemcpy ... yes
Checking for UniquE RAR File Library ... yes
Checking for TV interface ... yes
Checking for EDL support ... yes
Checking for *BSD BrookTree 848 TV interface ... no
Checking for Video 4 Linux TV interface ... no
Checking for Video 4 Linux 2 TV interface ... no
Checking for audio select() ... yes
Checking for network ... yes
Checking for ftp ... yes
Checking for byte order ... Little Endian
Checking for shared postprocess lib ... no
Checking for OSD menu ... no
Checking for QTX codecs ... yes
Checking for Subtitles sorting ... yes
Checking for XMMS inputplugin support ... no
Checking for FLAC support ... yes (using internal libmpflac)
Checking for inet6 ... no
Checking for gethostbyname2 ... no
Checking for GUI ... no
Checking for ftello() ... no
Checking for VIDIX ... no
Checking for joystick ... no
Checking for lirc ... no
Checking for lircc ... no
Creating config.mak
Creating config.h
Creating libvo/config.mak
Creating libao2/config.mak
Creating help_mp.h

Config files successfully generated by ./configure !

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

Byte order: Little Endian
Optimizing for: athlon-4 mmx mmx2 3dnow 3dnowex sse mtrr

Languages:
Messages/GUI: en
Manual pages: en (no localization selected, use --language=all)

Enabled optional drivers:
Input: ftp network edl tv matroska(internal) mpdvdkit2
Codecs: flac(internal) qtx libavcodec real dshow/dmo win32 faad2(internal)
Audio output: win32 mpegpes(file)
Video output: directx mpegpes(file) opengl tga
Disabled optional drivers:
Input: tv-v4l2 tv-v4l tv-bsdbt848 live.com cdda dvdread vcd smb
Codecs: opendivx xvid libdv xanim libtheora libvorbis libmad liblzo gif
Audio output: sgi sun alsa esd arts oss dxr2 nas sdl macosx
Video output: xvidix winvidix cvidix bl zr zr2 dxr3 dxr2 sdl vesa gif89a jpeg png fbdev svga aa ggi xmga mga dga xvmc xv x11 directfb tdfx_vid tdfxfb 3dfx

'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'.

Please check mtrr settings at /proc/mtrr (see DOCS/HTML/en/devices.html#mtrr)


Check configure.log if you wonder why an autodetection failed (check whether
the development headers/packages are installed).

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

You've disabled VIDIX. Although it would be better to PORT it instead.
Have a look at the documentation for supported cards!


Avalon@SHOPLANET /d/MPLAYER/MPLAY

I hope You can help me with this. I think it depens on the MinGW Version I've installed on my system.

Amnon82
24th March 2004, 13:38
Maybe this is also helpfull:

Configuration:
-h, --help display this help and exit

Installation directories:
--prefix=DIR use this prefix for installing mplayer [/usr/local]
--bindir=DIR use this prefix for installing mplayer binary
[PREFIX/bin]
--datadir=DIR use this prefix for installing machine independent
data files (fonts, skins) [PREFIX/share/mplayer]
--mandir=DIR use this prefix for installing manpages [PREFIX/man]
--confdir=DIR use this prefix for installing configuration files
[PREFIX/etc/mplayer]
--libdir=DIR use this prefix for object code libraries [PREFIX/lib]

Optional features:
--disable-mencoder disable mencoder (a/v encoder) compilation [enable]
--enable-gui enable gmplayer compilation (gtk-1.2 GUI) [disable]
--enable-largefiles enable support for files > 2 GBytes [disable]
--enable-linux-devfs set default devices to devfs ones [disable]
--enable-termcap use termcap database for key codes [autodetect]
--with-termcaplib=NAME name of library with termcap functionality
name shuld be given without leading "lib"
checks for "termcap" and "tinfo"
--disable-iconv do not use iconv(3) function [autodetect]
--disable-setlocale disable setlocale using in mplayer [autodetect]
--enable-lirc enable LIRC (remote control) support [autodetect]
--enable-lircc enable LIRCCD (LIRC client daemon) input [autodetect]
--enable-joystick enable joystick support [disable]
--disable-tv disable TV Interface (tv/dvb grabbers) [enable]
--disable-tv-v4l disable Video4Linux TV Interface support [autodetect]
--disable-tv-v4l2 disable Video4Linux2 TV Interface support [autodetect]
--disable-tv-bsdbt848 disable BSD BT848 Interface support [autodetect]
--disable-edl disable EDL (edit decision list) support [enable]
--disable-rtc disable RTC (/dev/rtc) on Linux [autodetect]
--disable-network disable network support (for: http/mms/rtp) [enable]
--enable-winsock2 enable winsock2 usage [autodetect]
--enable-smb enable Samba (SMB) input support [autodetect]
--enable-live enable LIVE.COM Streaming Media support [disable]
--disable-dvdread Disable libdvdread support [autodetect]
--disable-mpdvdkit Disable mpdvdkit/mpdvdkit2 support [autodetect]
--disable-cdparanoia Disable cdparanoia support [autodetect]
--disable-freetype Disable freetype2 font rendering support [autodetect]
--disable-fontconfig Disable fontconfig font lookup support [autodetect]
--disable-unrarlib Disable Unique RAR File Library [enabled]
--enable-menu Enable OSD menu support (NOT DVD MENU) [disabled]
--disable-sortsub Disable subtitles sorting [enabled]
--enable-fribidi Enable using the FriBiDi libs [disabled]
--disable-macosx Disable Mac OS X specific features [autodetect]
--disable-inet6 Disable IPv6 support [autodetect]
--disable-gethostbyname2 gethostbyname() function is not provided by the C
library [autodetect]
--disable-ftp Disable ftp support [enabled]

Codecs:
--enable-gif enable gif support [autodetect]
--enable-png enable png input/output support [autodetect]
--enable-jpeg enable jpeg input/output support [autodetect]
--enable-liblzo enable external liblzo support [autodetect]
--disable-win32 disable Win32 DLL support [autodetect]
--disable-dshow disable Win32/DirectShow support [autodetect]
--disable-qtx disable Quicktime codecs [autodetect]
--disable-xanim disable XAnim DLL support [autodetect]
--disable-real disable RealPlayer DLL support [autodetect]
--disable-xvid disable XviD codec [autodetect]
--disable-divx4linux disable DivX4linux/Divx5linux codec [autodetect]
--enable-opendivx enable _old_ OpenDivx codec [disable]
--disable-libavcodec disable libavcodec [autodetect]
--enable-libfame enable libfame realtime encoder [autodetect]
--enable-vorbis build with OggVorbis support [autodetect]
--enable-tremor build with integer-only OggVorbis support [disabled]
--enable-theora build with OggTheora support [autodetect]
--enable-external-matroska build with external Matroska support [autodetect]
--disable-internal-matroska disable internal Matroska support [enabled]
--enable-external-faad build with external FAAD2 (AAC) support [autodetect]
--disable-internal-faad disable internal FAAD2 (AAC) support [autodetect]
--disable-libdv disable libdv 0.9.5 en/decoding support [autodetect]
--disable-mad disable libmad (MPEG audio) support [autodetect]
--enable-xmms build with XMMS inputplugin support [disabled]
--enable-flac build with FLAC support [autodetect]
--enable-external-flac build with external libFLAC [disable]

Video output:
--disable-vidix disable VIDIX [enable on x86 *nix]
--enable-gl build with OpenGL render support [autodetect]
--enable-dga[=n] build with DGA [n in {1, 2} ] support [autodetect]
--enable-vesa build with VESA support [autodetect]
--enable-svga build with SVGAlib support [autodetect]
--enable-sdl build with SDL render support [autodetect]
--enable-aa build with AAlib render support [autodetect]
--enable-ggi build with GGI render support [autodetect]
--enable-directx build with DirectX support [autodetect]
--enable-dxr2 build with DXR2 render support [autodetect]
--enable-dxr3 build with DXR3/H+ render support [autodetect]
--enable-dvb build with support for output via DVB-Card [autodetect]
--enable-dvbhead build with DVB support (HEAD version) [autodetect]
--enable-mga build with mga_vid (for Matrox G200/G4x0/G550) support
(check for /dev/mga_vid) [autodetect]
--enable-xmga build with mga_vid X Window support
(check for X & /dev/mga_vid) [autodetect]
--enable-xv build with Xv render support for X 4.x [autodetect]
--enable-xvmc build with XvMC acceleration for X 4.x [autodetect]
--enable-vm build with XF86VidMode support for X11 [autodetect]
--enable-xinerama build with Xinerama support for X11 [autodetect]
--enable-x11 build with X11 render support [autodetect]
--enable-fbdev build with FBDev render support [autodetect]
--enable-mlib build with MLIB support (Solaris only) [autodetect]
--enable-3dfx build with obsolete /dev/3dfx support [disable]
--enable-tdfxfb build with tdfxfb (Voodoo 3/banshee) support [disable]
--enable-directfb build with DirectFB support [autodetect]
--enable-zr build with ZR360[56]7/ZR36060 support [autodetect]
--enable-bl build with Blinkenlights support [disable]
--enable-tdfxvid build with tdfx vid support [disable]
--disable-tga disable targa output support [enable]

Audio output:
--disable-ossaudio disable OSS sound support [autodetect]
--disable-arts disable aRts sound support [autodetect]
--disable-esd disable esd sound support [autodetect]
--disable-alsa disable alsa sound support [autodetect]
--disable-sunaudio disable Sun sound support [autodetect]
--disable-nas disable NAS sound support [autodetect]
--disable-win32waveout disable Windows waveout sound support [autodetect]
--disable-select disable using select() on audio device [enable]

Miscellaneous options:
--enable-runtime-cpudetection Enable runtime CPU detection [disable]
--cc=COMPILER use this C compiler to build MPlayer [gcc]
--target=PLATFORM target platform (i386-linux, arm-linux, etc)
--enable-static build a statically linked binary. Set further linking
options with --enable-static="-lslang -lncurses"
--language=list a white space or comma separated list of languages
for translated man pages, the first language is the
primary and therefore used for translated messages
and GUI (also the environment variable $LINGUAS is
honored) [en]
(Available: bg cz de dk el en es fr hu it ja ko mk nl no pl ro ru sk tr uk pt_BR zh_CN zh_TW all)
--enable-shared-pp install & use shared postprocessing lib
--with-install=PATH use a custom install program (useful if your OS uses
a GNU-incompatible install utility by default and
you want to use GNU version)
--install-path=PATH the path to a custom install program
this option is obsolete and will be removed soon,
use --with-install instead.

Advanced options:
--enable-mmx build with MMX support [autodetect]
--enable-mmx2 build with MMX2 support (PIII, Athlon) [autodetect]
--enable-3dnow build with 3DNow! support [autodetect]
--enable-3dnowex build with extended 3DNow! support [autodetect]
--enable-sse build with SSE support [autodetect]
--enable-sse2 build with SSE2 support [autodetect]
--enable-altivec build with Altivec support (PowerPC) [autodetect]
--disable-fastmemcpy disable 3DNow!/SSE/MMX optimized memcpy() [enable]
--enable-big-endian Force byte order to big endian [autodetect]
--enable-debug[=1-3] compile debugging information into mplayer [disable]
--enable-profile compile profiling information into mplayer [disable]
--disable-sighandler disable sighandler for crashes [enable]
--enable-i18n _experimental_ gnu gettext() support [autodetect]
--enable-dynamic-plugins Enable support for dynamic a/v plugins [disable]

Hazardous options a.k.a. "DO NOT REPORT ANY BUGS!"
--disable-gcc-checking disable gcc version checking [enable]

Use these options if autodetection fails:
--with-extraincdir=DIR extra headers (png, mad, sdl, ...) in DIR
--with-extralibdir=DIR extra library files (png, mad, sdl, ...) in DIR
--with-x11incdir=DIR X headers in DIR
--with-x11libdir=DIR X library files in DIR
--with-dxr2incdir=DIR DXR2 headers in DIR
--with-dvbincdir=DIR DVB headers in DIR
--with-madlibdir=DIR libmad (libmad shared library) in DIR
--with-mlibdir=DIR libmlib (MLIB support) in DIR (Solaris only)
--with-codecsdir=DIR Binary codec files in DIR
--with-win32libdir=DIR W*ndows DLL files in DIR
--with-xanimlibdir=DIR XAnim DLL files in DIR
--with-reallibdir=DIR RealPlayer DLL files in DIR
--with-xvmclib=PATH path to adapter specific XvMCxxxxx.so (e.g. NVIDIA)
--with-xvidlibdir=DIR libxvidcore (XviD) in DIR
--with-xvidincdir=DIR XviD header in DIR

--with-sdl-config=PATH path to sdl*-config (e.g. /opt/bin/sdl-config)
--with-freetype-config=PATH path to freetype-config
(e.g. /opt/bin/freetype-config)
--with-gtk-config=PATH path to gtk*-config (e.g. /opt/bin/gtk-config)
--with-glib-config=PATH path to glib*-config (e.g. /opt/bin/glib-config)
--with-livelibdir=DIR path to LIVE.COM Streaming Media libraries
--with-xmmsplugindir=DIR path to XMMS plugins
--with-xmmslibdir=DIR path to libxmms.so.1
--with-cdparanoiaincdir=DIR cdparanoia headers in DIR
--with-cdparanoialibdir=DIR cdparanoia libraries (libcdda_*) in DIR
--with-fribidi-config=PATH path to fribidi-config
(e.g. /opt/bin/fribidi-config)

celtic_druid
24th March 2004, 14:37
Try this: http://gnuwin32.sourceforge.net/packages/libgw32c.htm

Amnon82
24th March 2004, 16:52
In cygwin it works.

In mingw I've still a Error:

flac -lmpflac libfaad2/libfaad2.a -Wl,--export-dynamic -lm
libmpdemux/libmpdemux.a(muxer_avi.o)(.text+0x805):muxer_avi.c: undefined reference to `fseeko'
libmpdemux/libmpdemux.a(muxer_avi.o)(.text+0x848):muxer_avi.c: undefined reference to `fseeko'
libmpdemux/libmpdemux.a(muxer_avi.o)(.text+0x89c):muxer_avi.c: undefined reference to `fseeko'
make: *** [mencoder] Error 1


I downloaded this (http://gnuwin32.sourceforge.net/downlinks/libgw32c.php) and copied the files into the C:\MinGW folder.

Have You another tip for me?

K, cygwin compiles it on my machine. MinGW not. One thing I like on MinGW is that it search for the codecs.conf in the folder it is installed. Cygwin searches always in C:\cygwin\usr\local\etc\mplayer

I can change this with this cmd: --confdir=DIR use this prefix for installing configuration files

But this is then also a fix DIR. How can I do it like in MinGW?

... can You post me Your fix for the manualbug in MinGW?

THX anyway

Avalon

celtic_druid
25th March 2004, 04:18
With the manual I just added a path for mplayer.1.

Not sure what is going on with fseeko, you might want to try someone with more knowledge in this area.

Amnon82
29th March 2004, 21:46
Celtic, I don't understand it. I tried 29.03.04 to compile in MinGW. It works. Running it doesn't work!
I compiled the same source in cygwin. This build works! Why.

Can You explain me why mingw sucks on my machine?
Is something wrong with my mingw sys?

If something is new and I don't have please post me the links.

Here is this was I have:

MSYS 1.1.10 (http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download)
MinGW-3.1.0-1 (http://prdownloads.sf.net/mingw/MinGW-3.1.0-1.exe?download)
GCC 3.3.1 CORE (http://prdownloads.sf.net/mingw/gcc-core-3.3.1-20030804-1.tar.gz?download) >Updated to 3.3.3
GCC 3.3.1 ADA (http://prdownloads.sf.net/mingw/gcc-ada-3.3.1-20030804-1.tar.gz?download) >updated to 3.3.3
DX Header7 (http://www.videolan.org/vlc/dx7headers.tgz)

What is wrong?

MEncoder dev-CVS-040329-22:22-3.3.3 (C) 2000-2004 MPlayer Team
This Build was proted to WIN32 by Avalon.
Build was compiled with an AMD Athlon CPU.
SSE2 enabled. So a Intel P4 should work.
visit: http://www.dvdr-page.tk

CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton 2800 MHz (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

Reading C:/Programme/DRPEnc/MEncoder/mplayer/codecs.conf: 64 audio & 172 video codecs
Reading config file C:/Programme/DRPEnc/MEncoder/mplayer/mencoderFont C:/Programme/DRPEnc/MEncoder/mplayer/font/font.desc loaded successfully! (206 chars)
success: format: 0 data: 0x0 - 0x10C00
AVI file format detected.
Generating Index: 1 %
Generating Index: 2 %
Generating Index: 3 %
Generating Index: 4 %
Generating Index: 5 %
Generating Index: 6 %
Generating Index: 7 %
Generating Index: 8 %
Generating Index: 9 %
Generating Index: 10 %
Generating Index: 11 %
Generating Index: 12 %
Generating Index: 13 %
Generating Index: 14 %
Generating Index: 15 %
Generating Index: 16 %
Generating Index: 17 %
Generating Index: 18 %
Generating Index: 19 %
Generating Index: 20 %
Generating Index: 21 %
Generating Index: 22 %
Generating Index: 23 %
Generating Index: 24 %
Generating Index: 25 %
Generating Index: 26 %
Generating Index: 27 %
Generating Index: 28 %
Generating Index: 29 %
Generating Index: 30 %
Generating Index: 31 %
Generating Index: 32 %
Generating Index: 33 %
Generating Index: 34 %
Generating Index: 35 %
Generating Index: 36 %
Generating Index: 37 %
Generating Index: 38 %
Generating Index: 39 %
Generating Index: 40 %
Generating Index: 41 %
Generating Index: 42 %
AVI: Generated index table for 2364 chunks!
AVI_NI: No audio stream found -> no sound.
AVI: No audio stream found -> no sound.
VIDEO: [AVIS] 720x576 16bpp 25.000 fps 0.8 kbps ( 0.1 kbyte/s)
[V] filefmt:3 fourcc:0x53495641 size:720x576 fps:25.00 ftime:=0.0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [expand w=720 h=576]
Expand: 720 x 576, -1 ; -1 (-1=autodetect) osd: 0
Opening video filter: [scale w=704 h=558]
Opening video filter: [crop w=720 h=570]
Crop: 720 x 570, -1 ; -1
==========================================================================
Opening video decoder: [vfw] Win32/VfW video codecs
Loaded DLL driver ffvfw
VDec: vo config request - 720 x 576 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 9.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 22 -> 24
SwScaler: reducing / aligning filtersize 22 -> 24
SwScaler: reducing / aligning filtersize 22 -> 22
SwScaler: reducing / aligning filtersize 22 -> 22

SwScaler: Sinc scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: libavcodec (720x576 fourcc=3267706d [mpg2])
Selected video codec: [makeavis] vfm:vfw (FFvfw makeavis)
==========================================================================
Writing AVI header...
Pos: 0.0s 1f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.1s 2f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.1s 3f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.2s 4f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.2s 5f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.2s 6f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]

Amnon82
1st April 2004, 06:09
Still have the compiling problems in mingw. Don't know why it works in cygwin without these problems...

anyone a suggestion?

bilu
2nd April 2004, 13:18
@Amnon82

About -rdynamic:

http://www1.mplayerhq.hu/pipermail/mplayer-users/2004-February/042921.html

Bilu

Amnon82
2nd April 2004, 22:00
K, I'll try it with deleting the -rdynamic.

@celtic_druid: You use -Wl,--export-dynamic instead of -rdynamic but why can't I compile a mencoder cvs on my machine using mingw?

celtic_druid
3rd April 2004, 03:12
Not sure, but I noticed that configure now detects whether you have fseeko so that error should at least be gone.

Amnon82
3rd April 2004, 06:12
I don't have any error at compiling. If I want to run it it crashes on my system. The cygwin build works.

bilu
3rd April 2004, 12:35
Then you have the same problem I had now.
I reported it to the mailing list (probably the wrong one, I still haven't got the confirmation to the mplayer.cygwin list):

http://thread.gmane.org/gmane.comp.video.mplayer.user/27742

You'll see that I reported that even their own MinGW32 CVS last build crashes. And from what I've seen in the mailing list that's a bit ironic since they fixed Cigwin compiling recently :devil:

Seems like they screwed MinGW to get Cygwin to work :D


Bilu

Amnon82
3rd April 2004, 18:26
Yeah! Realy ironic.:D

MomoNyo
26th December 2004, 04:49
I'm having a bit of hassle here trying to compile mplayer in MinGW. It compiles fine with the default settings, but I'm doing this to enable the DXR3 output (as I have a HW+ card that I'd like to try mplayer with).

Problem is that when I try to compile either mplayer with the --enable-dxr3 switch, or the dxr3 driver itself (to get the library) it craps out because there's a couple of headers missing. They seem to be fairly key ones too (ioctl.h and select.h). Any idea where I could find these?

I'm still fairly clueless when it comes to compiling stuff, but manage to compile mplayer fine in OS X.

hellfred
3rd January 2005, 22:43
Originally posted by MomoNyo
I'm having a bit of hassle here trying to compile mplayer in MinGW. It compiles fine with the default settings, but I'm doing this to enable the DXR3 output (as I have a HW+ card that I'd like to try mplayer with).

Problem is that when I try to compile either mplayer with the --enable-dxr3 switch, or the dxr3 driver itself (to get the library) it craps out because there's a couple of headers missing. They seem to be fairly key ones too (ioctl.h and select.h). Any idea where I could find these?

I'm still fairly clueless when it comes to compiling stuff, but manage to compile mplayer fine in OS X.
I am not sure about this, but most probably dxr3 will only work under unix/linux. If you want to just try it out once, get yourself a linux bootable distro like Knoppix, make a permanent home directory on one of your harddrives (fat32 partition) with about 75 MB and compile and install mplayer/mencoder into it using ./configure --prefix=/home/knoppix/mplayer
After adding /home/knoppix/mplayer/bin to your path
(e.g. edit /home/knoppix/.bashrd and add a last line
export PATH=/home/knoppix/mplayer/bin:$PATH )
you should be able to use the command mplayer in the shell in any directory. You may have to source the .bashrc to get the export working right away.
cd ~
. .bashrc
For speed improvement i recomend to copy the cd to another fat32 partition with boot parameter
knoppix tohd=/dev/hda5
if your d:\ is fat32
If you only have NTFS, you can copy a KNOPPIX iso image to root directory of a NTFS partition (while running Windows) and access that one at Knoppix boottime:
knoppix bootfrom=/dev/hda1/knoppix.iso
if you have copied the iso-Image to c:\
See here (ftp://ftp.uni-kl.de/pub/linux/knoppix/knoppix-cheatcodes.txt).


Hellfred