Latest version doesnt work with mplayer

  1. Im using the latest cvs version of sdl, but mplayer failed to detedct sdl
    during configure,

here is the part of mplayer configure log:
============ Checking for SDL ============
1.2.10
1.2.10

#include <SDL.h>
int main(int argc, char *argv[]) { return 0; }

gcc -o /tmp/mplayer-conf-3876-2212.o /tmp/mplayer-conf-25270-2212.c
-I/mingw/include/SDL -Dmain=SDL_main -L/mingw/lib -lmingw32 -lSDLmain -lSDL
-mwindows
c:/msys/mingw/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x15):
undefined reference to timeBeginPeriod at 4' c:/msys/mingw/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x1d): undefined reference totimeGetTime at 0’
c:/msys/mingw/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0xbe):
undefined reference to timeGetTime at 0' c:/msys/mingw/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x12d): undefined reference totimeBeginPeriod at 4’
c:/msys/mingw/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x160):
undefined reference to timeSetEvent at 20' c:/msys/mingw/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x1bf): undefined reference totimeEndPeriod at 4’
c:/msys/mingw/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x1ce):
undefined reference to timeKillEvent at 4' c:/msys/mingw/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x1dd): undefined reference totimeEndPeriod at 4’
c:/msys/mingw/lib/libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x1b0):
undefined reference to waveOutWrite at 12' c:/msys/mingw/lib/libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x26d): undefined reference towaveOutUnprepareHeader at 12’
c:/msys/mingw/lib/libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x2bc):
undefined reference to waveOutClose at 4' c:/msys/mingw/lib/libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x420): undefined reference towaveOutOpen at 24’
c:/msys/mingw/lib/libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x507):
undefined reference to waveOutPrepareHeader at 12' c:/msys/mingw/lib/libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x5be): undefined reference towaveOutGetErrorTextA at 12’
c:/msys/mingw/lib/libSDL.a(SDL_mmjoystick.o):SDL_mmjoystick.c:(.text+0x12):
undefined reference to joyGetNumDevs at 0' c:/msys/mingw/lib/libSDL.a(SDL_mmjoystick.o):SDL_mmjoystick.c:(.text+0x6a): undefined reference tojoyGetPosEx at 8’
c:/msys/mingw/lib/libSDL.a(SDL_mmjoystick.o):SDL_mmjoystick.c:(.text+0xa7):
undefined reference to joyGetDevCapsA at 12' c:/msys/mingw/lib/libSDL.a(SDL_mmjoystick.o):SDL_mmjoystick.c:(.text+0x596): undefined reference tojoyGetPosEx at 8’
c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x18c):
undefined reference to mciSendCommandA at 16' c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x1cf): undefined reference tomciSendCommandA at 16’
c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x20c):
undefined reference to mciGetErrorStringA at 12' c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x241): undefined reference tomciSendCommandA at 16’
c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x264):
undefined reference to mciGetErrorStringA at 12' c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x299): undefined reference tomciGetErrorStringA at 12’
c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x2fa):
undefined reference to mciSendCommandA at 16' c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x36f): undefined reference tomciSendCommandA at 16’
c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x3c6):
undefined reference to mciSendCommandA at 16' c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x44d): undefined reference tomciGetErrorStringA at 12’
c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x4ac):
undefined reference to mciSendCommandA at 16' c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x512): undefined reference tomciGetErrorStringA at 12’
c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x557):
undefined reference to mciGetErrorStringA at 12' c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x5db): undefined reference tomciSendCommandA at 16’
c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x652):
undefined reference to mciGetErrorStringA at 12' c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x69e): undefined reference tomciSendCommandA at 16’
c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x70c):
undefined reference to mciGetErrorStringA at 12' c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x870): undefined reference tomciSendCommandA at 16’
c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x89e):
undefined reference to mciGetErrorStringA at 12' c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x907): undefined reference tomciSendCommandA at 16’
c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x932):
undefined reference to mciGetErrorStringA at 12' c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x999): undefined reference tomciSendCommandA at 16’
c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x9bb):
undefined reference to mciGetErrorStringA at 12' c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0xa2c): undefined reference tomciSendCommandA at 16’
c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0xa92):
undefined reference to mciSendCommandA at 16' c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0xabd): undefined reference tomciGetErrorStringA at 12’
c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0xb16):
undefined reference to mciSendCommandA at 16' c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0xb41): undefined reference tomciGetErrorStringA at 12’
c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0xb9a):
undefined reference to mciSendCommandA at 16' c:/msys/mingw/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0xbc1): undefined reference tomciGetErrorStringA at 12’
collect2: ld returned 1 exit status

ldd /tmp/mplayer-conf-3876-2212.o
./configure: ldd: command not found

Result is: no

How do i solve this problem?

  1. Ive compiled SDL(older version, but i think latest version have same problem
    too) with directx support, but mplayer failed to compile it with the following
    error.

c:/msys/mingw/lib/libdxguid.a(dxguid.o):dxguid.c:(.rdata+0xb80): multiple
definition of IID_IDirectDrawColorControl' libvo/libvo.a(vo_directx.o):vo_directx.c:(.rdata+0x58): first defined here c:/msys/mingw/lib/libdxguid.a(dxguid.o):dxguid.c:(.rdata+0xba0): multiple definition ofIID_IDirectDraw7’
libvo/libvo.a(vo_directx.o):vo_directx.c:(.rdata+0x68): first defined here
collect2: ld returned 1 exit status
make: *** [mplayer.exe] Error 1

Is there any way to solve it?

  1. Im using the latest cvs version of sdl, but mplayer failed to detedct sdl
    during configure,

Try getting a clean copy of the SDL source from CVS and re-building it with
mingw32.

See ya!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Sam Lantinga <slouken devolution.com> writes:

  1. Im using the latest cvs version of sdl, but mplayer failed to detedct sdl
    during configure,

Try getting a clean copy of the SDL source from CVS and re-building it with
mingw32.

See ya!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Compiling works again with mplayer, thanks !!
now mplayer with sdl audio/video-out work flawlessly again :slight_smile:
But still left a small bug in sdl(not sure :p)
the sdl default mode works without a problem with mplayer,
but when i change the driver to directx( -vo sdl:driver=directx),
it crahsed for me when the video start playing,
here is the part of console output:

MPlayer interrupted by signal 11 in module: decode_video
ID_SIGNAL=11

  • MPlayer crashed by bad usage of CPU/FPU/RAM.
    Recompile MPlayer with --enable-debug and make a ‘gdb’ backtrace and
    disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
  • MPlayer crashed. This shouldn’t happen.
    It can be a bug in the MPlayer code or in your drivers or in your
    gcc version. If you think it’s MPlayer’s fault, please read
    DOCS/HTML/en/bugreports.html and follow the instructions there. We can’t and
    won’t help unless you provide this information when reporting a possible bug.

do i need to attach it with gdb then send a full bug report to u? :slight_smile:

Compiling works again with mplayer, thanks !!
now mplayer with sdl audio/video-out work flawlessly again :slight_smile:

Yay!

do i need to attach it with gdb then send a full bug report to u? :slight_smile:

Yes.
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Sam Lantinga <slouken devolution.com> writes:

Compiling works again with mplayer, thanks !!
now mplayer with sdl audio/video-out work flawlessly again :slight_smile:

Yay!

do i need to attach it with gdb then send a full bug report to u? :slight_smile:

Yes.
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Here is the SDL bug report :slight_smile:

Compiling works again with mplayer, thanks !!
now mplayer with sdl audio/video-out work flawlessly again :slight_smile:
But still left a small bug in sdl(not sure :p)
the sdl default mode works without a problem with mplayer,
but when i change the driver to directx( -vo sdl:driver=directx),
it crahsed for me when the video start playing,

I looked at the stack trace and it looks like mplayer is either not
correctly locking the SDL hardware overlay or hardware surface.

Can you reproduce this problem with the testoverlay and testoverlay2
from the SDL test directory in the source archive?

Thanks!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Sam Lantinga <slouken devolution.com> writes:

Compiling works again with mplayer, thanks !!
now mplayer with sdl audio/video-out work flawlessly again :slight_smile:
But still left a small bug in sdl(not sure :p)
the sdl default mode works without a problem with mplayer,
but when i change the driver to directx( -vo sdl:driver=directx),
it crahsed for me when the video start playing,

I looked at the stack trace and it looks like mplayer is either not
correctly locking the SDL hardware overlay or hardware surface.

Can you reproduce this problem with the testoverlay and testoverlay2
from the SDL test directory in the source archive?

Thanks!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Sorry for the late reply.
because gmane was down an i forget to check SDL newsgroup back.

i tested the testoverlay and testoverlay2 and its works, no crash and no hang :slight_smile:
But im sure “Overlay” doesnt work with my computer(or video card),
because i still can see the output from software magnifier.
But compiling doesnt work if i configured sdl with --disable-shared
here is the log: http://www.geocities.com/y0ngc/sdl.error.txt

Regarding the mplayer with SDL directx mode,
i found out that it will work if i set it to
-vo sdl:driver=directx:nohwaccel(no hardware acceleration).