Thread: mplayer vdpau
View Single Post
Old 11-15-08, 01:20 PM   #58
bexbier
Registered User
 
Join Date: Oct 2008
Posts: 19
Default Re: mplayer vdpau

Quote:
Originally Posted by Stephen Warren View Post
Yes, this bypasses the VDPAU auto-detection in the configure script. I'm not sure why the auto-detection is failing, but the actual build of MPlayer is succeeding. I'd like to get a bit more information about this.

Can you search configure.log for the following line:

Code:
============ Checking for VDPAU ============
Following this, you'll see a short C file:

Code:
#include <vdpau/vdpau_x11.h>
int main(void) {
  (void)vdp_device_create_x11(0, 0, 0, 0);
  return 0; }
Can you copy this code into autodetect.c. After this, you'll find a compiler command-line. For example, mine looks like this:

Code:
cc -W -Wall -O2 -march=native -mtune=native -pipe -ggdb -lncurses   -lXext -lX11 -lpthread -lXss -lXv  -o /tmp/mplayer-conf-16260-337 /tmp/mplayer-conf-27757-337.c -lvdpau
Can you then run this command, replacing the source filename with autodetect.c, for example, I'd run this:

Code:
cc -W -Wall -O2 -march=native -mtune=native -pipe -ggdb -lncurses   -lXext -lX11 -lpthread -lXss -lXv  -o autodetect autodetect.c -lvdpau
and post whatever that command prints. Thanks.
ok i hope i understand u correctly .....

logfile says ( without --enable-vdpau):
Code:
============ Checking for VDPAU ============

#include <vdpau/vdpau_x11.h>
int main(void) {
  (void)vdp_device_create_x11(0, 0, 0, 0);
  return 0; }

cc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer  -I/usr/include/directfb     -lncurses  -ldirectfb  -lXext -lX11 -lpthread  -o /tmp/mplayer-conf--6012 /tmp/mplayer-conf--6012.c -lvdpau
ok .... now i made an file which called "autodetect.c" into this i put this code:
Code:
#include <vdpau/vdpau_x11.h>
int main(void) {
  (void)vdp_device_create_x11(0, 0, 0, 0);
  return 0; }
then i run :

Code:
sudo cc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer  -I/usr/include/directfb     -lncurses  -ldirectfb  -lXext -lX11 -lpthread  -o autodetect autodetect.c -lvdpau
compiles, no error output on terminal.

i hope that was that what i should do ....

regards

bex
bexbier is offline   Reply With Quote