SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#76 2013-03-18 09:16:58

samurro
Member
Registered: 2013-03-11
Posts: 47

Re: Mplayer for beginners

Now it worked, didnt know that I had to add -va- between xvba and driver. What would be my next step for impleneting it into mplayer?

Offline

Be excellent to each other!

#77 2013-03-18 12:24:02

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Mplayer for beginners

I am not familiar with compiling packages from source on Debian, so I'm not exactly sure if this is the correct method. I simply searched on Google and this result looked like the right one (link: http://forums.debian.net/viewtopic.php?f=6&t=84825). I just booted in my virtual Crunchbang installation to test, but I did not actually compile anything. Here's my short summary of all the steps:

Firstly, the mplayer package in the repositories is too old; it does not have the --enable-vaapi flag yet. (confirmed by me). Thus we'll have to grab it from Git. You'll have to remove the installed mplayer package first, so do so.

Now, we'll need to grab the dependencies first so we can later on compile mplayer: apt-get build-dep mplayer. Also, you will need to install the development packages: apt-get install libxext-dev libx11-dev yasm zlib1g-dev. These can be remove once you are done building vaapi-mplayer.
Next, we'll clone the git repo (you'll need to have Git installed (apt-get install git)):

git clone -b hwaccel-vaapi git://gitorious.org/vaapi/mplayer.git vaapi-mplayer
cd vaapi-mplayer
OPTIONAL (might not be necessary, see below) git clone git://git.videolan.org/ffmpeg.git ffmpeg

Now we are ready to actually compile mplayer with vaapi support:

./configure --enable-x11 --enable-vaapi

Let it checkout FFmpeg from git if it asks (Press <enter>) (see the above optional step)

Finally, run make and just wait while you see mplayer being compiled!

If it won't build it is probably because ffmpeg updates are being committed all the time and vaapi-mplayer is updated much more rarely. Don't forget to refresh your git snapshot of videolan ffmpeg before trying to build it a second (third or fourth) time! To do this, simply cd into your vaapi-mplayer/ffmpeg directory and run git pull.

If it did build, we still have to actually install it. This is the only piece I altered from the post I found; I think this is the more correct way. We are going to use checkinstall to create an actual Debian package which can be tracked by apt-get. Install checkinstall: apt-get install checkinstall. Just run the code below to make the Debian package and install it:

sudo checkinstall -D make install

Last edited by Unia (2013-03-30 20:54:16)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#78 2013-03-18 18:32:46

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,432

Re: Mplayer for beginners

Great post Unia, I should add the vaapi support to the how-to.

Offline

#79 2013-03-18 18:39:05

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Mplayer for beginners

It looks great indeed, but I don't know if it works.. big_smile


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#80 2013-03-18 19:32:50

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,432

Re: Mplayer for beginners

Someone will try.  ]:D

Offline

#81 2013-03-23 11:13:16

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Mplayer for beginners

Sooo sammuro, did you get it working? Shame to let my great post go to waste big_smile


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#82 2013-03-23 12:46:44

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,432

Re: Mplayer for beginners

^ Yep.  big_smile

Offline

#83 2013-03-24 20:15:16

samurro
Member
Registered: 2013-03-11
Posts: 47

Re: Mplayer for beginners

Currently in holidays, have to save wrecking me linux until my girlfriend doesn't need this netbook anymore. wink Will post back as soon as I gave it a try.

Offline

#84 2013-03-27 18:42:39

samurro
Member
Registered: 2013-03-11
Posts: 47

Re: Mplayer for beginners

The error message i get:

sascha@s205crunchbang:~$ sudo git clone -b hwaccel-vaapi git://gitorious.org/vaapi/mplayer.git vaapi-mplayer
Cloning into 'vaapi-mplayer'...
fatal: unable to connect to gitorious.org:
gitorious.org[0: 87.238.52.168]: errno=Verbindungsaufbau abgelehnt
gitorious.org[1: 2a02:c0:1014::1]: errno=Das Netzwerk ist nicht erreichbar

Offline

#85 2013-03-27 18:58:09

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Mplayer for beginners

First of, you don't need sudo to run git. If you run that on another computer, check your internet connection. It works for me here, so perhaps GitHub was offline for a brief moment. Can you try again?


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#86 2013-03-27 19:21:03

samurro
Member
Registered: 2013-03-11
Posts: 47

Re: Mplayer for beginners

I guess I need to forward git in my ipkongfu firewall?

Offline

#87 2013-03-27 19:36:16

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Mplayer for beginners

samurro wrote:

I guess I need to forward git in my ipkongfu firewall?

I would assume so, but I have no experience with firewalls whatsoever.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#88 2013-03-27 20:26:30

samurro
Member
Registered: 2013-03-11
Posts: 47

Re: Mplayer for beginners

Next error after allowing git in firewall:

sascha@s205crunchbang:~/vaapi-mplayer$ ./configure --enable-x11 --enable-vaapi
Checking for cc version ... 4.7 
Checking for working compiler ... yes
Detected operating system: Linux
Detected host architecture: x86_64
Checking for cross compilation ... no 
Checking for host cc ... cc 
Checking for CPU vendor ... AuthenticAMD (20:1:0) 
Checking for CPU type ...  AMD E-350 Processor 
Checking for kernel support of mmx ... yes 
Checking for kernel support of mmxext ... yes 
Checking for kernel support of sse ... yes 
Checking for kernel support of sse2 ... yes 
Checking for kernel support of ssse3 ... yes 
Checking for kernel support of cmov ... yes 
Checking for mtrr support ... yes 
Checking for GCC & CPU optimization abilities ... native 
Checking for byte order ... little-endian 
Checking for extern symbol prefix ...  
Checking for assembler support of -pipe option ... yes 
Checking for relocatable binary ... no 
Checking for PIC ... no 
Checking for .align is a power of two ... no 
Checking for ebx availability ... yes 
Checking for yasm ... 
Error: yasm not found, use --yasm='' if you really want to compile without

Offline

#89 2013-03-27 20:51:24

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Mplayer for beginners

Install the yasm package, it should be available on Wheezy. Once it's installed, run ./configure again. It's only a dependency required for building mplayer, I think, so once you're done building it you can remove it again.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#90 2013-03-28 15:24:03

samurro
Member
Registered: 2013-03-11
Posts: 47

Re: Mplayer for beginners

sascha@s205crunchbang:~/vaapi-mplayer$ make
cc -MD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I. -Iffmpeg  -D_REENTRANT  -c -o mplayer.o mplayer.c
In file included from mplayer.c:132:0:
libvo/x11_common.h:23:22: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.

??

Offline

#91 2013-03-28 16:19:11

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Mplayer for beginners

I think you need to install the X11 development libraries there. On my Arch system, I already have them installed and I'm not getting that error.

sudo apt-get install libx11-dev

When you're done building, you can remove it again together with yasm.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#92 2013-03-30 16:51:34

samurro
Member
Registered: 2013-03-11
Posts: 47

Re: Mplayer for beginners

I installed the libx11-dev packet, still getting this error when trying to make:

libvo/vo_x11.c:40:33: fatal error: X11/extensions/XShm.h: No such file or directory
compilation terminated.
make: *** [libvo/vo_x11.o] Fehler 1

EDIT:
I think I solved the issue by installing libxext-dev. Still "makeing" now..

Last edited by samurro (2013-03-30 17:04:12)

Offline

#93 2013-03-30 16:58:43

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: Mplayer for beginners

^ "X11/extensions/XShm.h" is in the "libxext-dev" package.

Offline

#94 2013-03-30 17:00:04

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Mplayer for beginners

Debian really isn't made to compile software on... big_smile But slowly we're getting there....

EDIT: I have added those three makedeps to my "guide", so new people won't face these problems. Samurro is our laboratory rabbit  ]:D

Last edited by Unia (2013-03-30 17:03:06)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#95 2013-03-30 17:04:02

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: Mplayer for beginners

^ It is not that bad once you have done it a few times to learn how a few things work and what error messages are telling you.
I found where it was by using a "package contents" search for "XShm.h" here.

Offline

#96 2013-03-30 17:16:37

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Mplayer for beginners

arclance wrote:

^ It is not that bad once you have done it a few times to learn how a few things work and what error messages are telling you.
I found where it was by using a "package contents" search for "XShm.h" here.

I was aiming for the seperation of the development packages. It's a hassle to track which you need, especially being a developer who has to search for them across multiple distros which all use a different naming scheme.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#97 2013-03-30 18:25:19

samurro
Member
Registered: 2013-03-11
Posts: 47

Re: Mplayer for beginners

libavcodec/exr.c:33:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make[1]: *** [libavcodec/exr.o] Error 1
make[1]: Leaving directory `/home/sascha/vaapi-mplayer/ffmpeg'
make: *** [ffmpeg/libavcodec/libavcodec.a] Fehler 2

apt-get install zlib1g-dev solved this. Now I get this after "make":

exr.c:(.text+0x11af): undefined reference to `uncompress'
vidix/radeon_vid.o: In function `radeon_probe':
radeon_vid.c:(.text+0xb51): undefined reference to `XOpenDisplay'
radeon_vid.c:(.text+0xb72): undefined reference to `XListExtensions'
radeon_vid.c:(.text+0xb7d): undefined reference to `XCloseDisplay'
libvo/vo_x11.o: In function `getMyXImage':
vo_x11.c:(.text+0x7c): undefined reference to `XShmQueryExtension'
vo_x11.c:(.text+0x9a): undefined reference to `XShmGetEventBase'
vo_x11.c:(.text+0xe8): undefined reference to `XShmCreateImage'
vo_x11.c:(.text+0x165): undefined reference to `XShmAttach'
vo_x11.c:(.text+0x173): undefined reference to `XSync'
vo_x11.c:(.text+0x23b): undefined reference to `XCreateImage'
libvo/vo_x11.o: In function `draw_slice':
vo_x11.c:(.text+0x58d): undefined reference to `XShmDetach'
libvo/vo_x11.o: In function `Display_Image.isra.0':
vo_x11.c:(.text+0x980): undefined reference to `XShmPutImage'
vo_x11.c:(.text+0x9d6): undefined reference to `XPutImage'
libvo/vo_x11.o: In function `uninit':
vo_x11.c:(.text+0xba5): undefined reference to `XShmDetach'
libvo/vo_x11.o: In function `config':
vo_x11.c:(.text+0xc62): undefined reference to `XGetWindowAttributes'
vo_x11.c:(.text+0xc9c): undefined reference to `XMatchVisualInfo'
vo_x11.c:(.text+0xcbd): undefined reference to `XVisualIDFromVisual'
vo_x11.c:(.text+0xce5): undefined reference to `XMatchVisualInfo'
vo_x11.c:(.text+0xf1d): undefined reference to `XShmDetach'
libvo/vo_x11.o: In function `flip_page':
vo_x11.c:(.text+0xa1e): undefined reference to `XSync'
libvo/vo_x11.o: In function `check_events':
vo_x11.c:(.text+0xae5): undefined reference to `XSync'
libvo/vo_xover.o: In function `set_window':
vo_xover.c:(.text+0x118): undefined reference to `XGetGeometry'
vo_xover.c:(.text+0x15c): undefined reference to `XTranslateCoordinates'
vo_xover.c:(.text+0x367): undefined reference to `XSetBackground'
vo_xover.c:(.text+0x37a): undefined reference to `XClearWindow'
vo_xover.c:(.text+0x394): undefined reference to `XSetForeground'
vo_xover.c:(.text+0x3d5): undefined reference to `XFillRectangle'
vo_xover.c:(.text+0x3e1): undefined reference to `XFlush'
libvo/vo_xover.o: In function `config':
vo_xover.c:(.text+0x6bd): undefined reference to `XGetWindowAttributes'
vo_xover.c:(.text+0x6f8): undefined reference to `XMatchVisualInfo'
vo_xover.c:(.text+0x739): undefined reference to `XCreateColormap'
vo_xover.c:(.text+0x799): undefined reference to `XChangeWindowAttributes'
vo_xover.c:(.text+0x876): undefined reference to `XSync'
libvo/x11_common.o: In function `x11_errorhandler':
x11_common.c:(.text+0x17): undefined reference to `XGetErrorText'
libvo/x11_common.o: In function `vo_hidecursor':
x11_common.c:(.text+0xeb): undefined reference to `XAllocNamedColor'
x11_common.c:(.text+0x117): undefined reference to `XCreateBitmapFromData'
x11_common.c:(.text+0x13a): undefined reference to `XCreatePixmapCursor'
x11_common.c:(.text+0x14b): undefined reference to `XDefineCursor'
x11_common.c:(.text+0x156): undefined reference to `XFreeCursor'
x11_common.c:(.text+0x166): undefined reference to `XFreePixmap'
x11_common.c:(.text+0x17e): undefined reference to `XFreeColors'
libvo/x11_common.o: In function `vo_x11_decoration.part.3':
x11_common.c:(.text+0x1c9): undefined reference to `XInternAtom'
x11_common.c:(.text+0x265): undefined reference to `XChangeProperty'
x11_common.c:(.text+0x28f): undefined reference to `XSetTransientForHint'
x11_common.c:(.text+0x2ec): undefined reference to `XGetWindowProperty'
x11_common.c:(.text+0x31a): undefined reference to `XFree'
libvo/x11_common.o: In function `vo_x11_setlayer.part.4':
x11_common.c:(.text+0x418): undefined reference to `XSendEvent'
x11_common.c:(.text+0x4b6): undefined reference to `XSendEvent'
x11_common.c:(.text+0x4c6): undefined reference to `XGetAtomName'
x11_common.c:(.text+0x4ec): undefined reference to `XFree'
x11_common.c:(.text+0x556): undefined reference to `XGetWindowProperty'
libvo/x11_common.o: In function `x11_selectinput_errorhandler':
x11_common.c:(.text+0x63b): undefined reference to `XGetErrorText'
libvo/x11_common.o: In function `vo_x11_ewmh_fullscreen':
x11_common.c:(.text+0x7b0): undefined reference to `XSendEvent'
libvo/x11_common.o: In function `vo_uninit':
x11_common.c:(.text+0x9e7): undefined reference to `XSetErrorHandler'
x11_common.c:(.text+0x9f3): undefined reference to `XCloseDisplay'
libvo/x11_common.o: In function `vo_x11_classhint':
x11_common.c:(.text+0xb0f): undefined reference to `XSetClassHint'
x11_common.c:(.text+0xb55): undefined reference to `XChangeProperty'
libvo/x11_common.o: In function `vo_x11_uninit':
x11_common.c:(.text+0xb9f): undefined reference to `XFreeGC'
x11_common.c:(.text+0xbc2): undefined reference to `XFreeGC'
x11_common.c:(.text+0xc10): undefined reference to `XClearWindow'
x11_common.c:(.text+0xc48): undefined reference to `XDefineCursor'
x11_common.c:(.text+0xc67): undefined reference to `XUnmapWindow'
x11_common.c:(.text+0xc7f): undefined reference to `XSelectInput'
x11_common.c:(.text+0xc92): undefined reference to `XDestroyWindow'
x11_common.c:(.text+0xcab): undefined reference to `XNextEvent'
libvo/x11_common.o: In function `vo_x11_check_events':
x11_common.c:(.text+0xd75): undefined reference to `XGetGeometry'
x11_common.c:(.text+0xdc3): undefined reference to `XTranslateCoordinates'
x11_common.c:(.text+0xe04): undefined reference to `XPending'
x11_common.c:(.text+0xe1c): undefined reference to `XNextEvent'
x11_common.c:(.text+0xe74): undefined reference to `XGetAtomName'
x11_common.c:(.text+0xe81): undefined reference to `XFree'
x11_common.c:(.text+0xe89): undefined reference to `XPending'
x11_common.c:(.text+0xf1c): undefined reference to `XGetGeometry'
x11_common.c:(.text+0xf6a): undefined reference to `XTranslateCoordinates'
x11_common.c:(.text+0xfc0): undefined reference to `XSetWMNormalHints'
x11_common.c:(.text+0x10ce): undefined reference to `XLookupString'
x11_common.c:(.text+0x130e): undefined reference to `XDefineCursor'
x11_common.c:(.text+0x131d): undefined reference to `XDefineCursor'
x11_common.c:(.text+0x132c): undefined reference to `XDefineCursor'
libvo/x11_common.o: In function `vo_x11_nofs_sizepos':
x11_common.c:(.text+0x141a): undefined reference to `XSetWMNormalHints'
libvo/x11_common.o: In function `vo_x11_create_smooth_window':
x11_common.c:(.text+0x1612): undefined reference to `XCreateWindow'
x11_common.c:(.text+0x162a): undefined reference to `XSetWMProtocols'
x11_common.c:(.text+0x1640): undefined reference to `XSetForeground'
x11_common.c:(.text+0x1663): undefined reference to `XCreateGC'
libvo/x11_common.o: In function `vo_x11_clearwindow_part':
x11_common.c:(.text+0x1712): undefined reference to `XFillRectangle'
x11_common.c:(.text+0x1735): undefined reference to `XFillRectangle'
x11_common.c:(.text+0x1781): undefined reference to `XFillRectangle'
x11_common.c:(.text+0x17a6): undefined reference to `XFillRectangle'
libvo/x11_common.o: In function `vo_x11_clearwindow':
x11_common.c:(.text+0x17ea): undefined reference to `XFillRectangle'
libvo/x11_common.o: In function `vo_x11_update_geometry':
x11_common.c:(.text+0x1881): undefined reference to `XGetGeometry'
x11_common.c:(.text+0x18cf): undefined reference to `XTranslateCoordinates'
libvo/x11_common.o: In function `vo_x11_fullscreen':
x11_common.c:(.text+0x1a1a): undefined reference to `XGetWMNormalHints'
x11_common.c:(.text+0x1b37): undefined reference to `XSetWMNormalHints'
x11_common.c:(.text+0x1b79): undefined reference to `XMoveResizeWindow'
x11_common.c:(.text+0x1ba7): undefined reference to `XMapRaised'
x11_common.c:(.text+0x1bc3): undefined reference to `XRaiseWindow'
x11_common.c:(.text+0x1bcf): undefined reference to `XFlush'
x11_common.c:(.text+0x1c3b): undefined reference to `XMoveResizeWindow'
x11_common.c:(.text+0x1cfc): undefined reference to `XSendEvent'
x11_common.c:(.text+0x1dc8): undefined reference to `XSendEvent'
x11_common.c:(.text+0x1dff): undefined reference to `XUnmapWindow'
x11_common.c:(.text+0x1e18): undefined reference to `XWithdrawWindow'
libvo/x11_common.o: In function `vo_x11_create_vo_window':
x11_common.c:(.text+0x1f02): undefined reference to `XGetWindowAttributes'
x11_common.c:(.text+0x1f22): undefined reference to `XSync'
x11_common.c:(.text+0x1f2c): undefined reference to `XSetErrorHandler'
x11_common.c:(.text+0x1f5c): undefined reference to `XSelectInput'
x11_common.c:(.text+0x1f66): undefined reference to `XSync'
x11_common.c:(.text+0x1f72): undefined reference to `XSetErrorHandler'
x11_common.c:(.text+0x1fa7): undefined reference to `XSelectInput'
x11_common.c:(.text+0x1ffc): undefined reference to `XGetGeometry'
x11_common.c:(.text+0x204a): undefined reference to `XTranslateCoordinates'
x11_common.c:(.text+0x2062): undefined reference to `XFreeGC'
x11_common.c:(.text+0x2079): undefined reference to `XCreateGC'
x11_common.c:(.text+0x208e): undefined reference to `XSync'
x11_common.c:(.text+0x20bd): undefined reference to `XSync'
x11_common.c:(.text+0x20c7): undefined reference to `XSetErrorHandler'
x11_common.c:(.text+0x20f6): undefined reference to `XSelectInput'
x11_common.c:(.text+0x2100): undefined reference to `XSync'
x11_common.c:(.text+0x210c): undefined reference to `XSetErrorHandler'
x11_common.c:(.text+0x2140): undefined reference to `XSelectInput'
x11_common.c:(.text+0x2183): undefined reference to `XStoreName'
x11_common.c:(.text+0x21bd): undefined reference to `XChangeProperty'
x11_common.c:(.text+0x2270): undefined reference to `XChangeWindowAttributes'
x11_common.c:(.text+0x2284): undefined reference to `XInstallColormap'
x11_common.c:(.text+0x22ae): undefined reference to `XSelectInput'
x11_common.c:(.text+0x22c4): undefined reference to `XSelectInput'
x11_common.c:(.text+0x237d): undefined reference to `XCreateWindow'
x11_common.c:(.text+0x2399): undefined reference to `XSetWMProtocols'
x11_common.c:(.text+0x23bf): undefined reference to `XSetForeground'
x11_common.c:(.text+0x244c): undefined reference to `XGetGeometry'
x11_common.c:(.text+0x249a): undefined reference to `XTranslateCoordinates'
x11_common.c:(.text+0x253a): undefined reference to `XSetClassHint'
x11_common.c:(.text+0x2573): undefined reference to `XSelectInput'
x11_common.c:(.text+0x25e7): undefined reference to `XSetStandardProperties'
x11_common.c:(.text+0x2608): undefined reference to `XMapWindow'
x11_common.c:(.text+0x2630): undefined reference to `XNextEvent'
x11_common.c:(.text+0x267b): undefined reference to `XFillRectangle'
x11_common.c:(.text+0x2683): undefined reference to `XFlush'
x11_common.c:(.text+0x269b): undefined reference to `XSelectInput'
x11_common.c:(.text+0x26a9): undefined reference to `XSync'
x11_common.c:(.text+0x26c1): undefined reference to `XSync'
x11_common.c:(.text+0x26cb): undefined reference to `XSetErrorHandler'
x11_common.c:(.text+0x26f6): undefined reference to `XSelectInput'
x11_common.c:(.text+0x2700): undefined reference to `XSync'
x11_common.c:(.text+0x270c): undefined reference to `XSetErrorHandler'
x11_common.c:(.text+0x2740): undefined reference to `XSelectInput'
x11_common.c:(.text+0x275c): undefined reference to `XSelectInput'
x11_common.c:(.text+0x276f): undefined reference to `XCreateGC'
x11_common.c:(.text+0x27e0): undefined reference to `XChangeProperty'
libvo/x11_common.o: In function `vo_x11_selectinput_witherr':
x11_common.c:(.text+0x2970): undefined reference to `XSync'
x11_common.c:(.text+0x297a): undefined reference to `XSetErrorHandler'
x11_common.c:(.text+0x29a7): undefined reference to `XSelectInput'
x11_common.c:(.text+0x29b1): undefined reference to `XSync'
x11_common.c:(.text+0x29bd): undefined reference to `XSetErrorHandler'
x11_common.c:(.text+0x29d7): undefined reference to `XSelectInput'
libvo/x11_common.o: In function `vo_find_depth_from_visuals':
x11_common.c:(.text+0x2a4d): undefined reference to `XGetVisualInfo'
x11_common.c:(.text+0x2b0a): undefined reference to `XFree'
libvo/x11_common.o: In function `vo_init':
x11_common.c:(.text+0x2b7c): undefined reference to `XSetErrorHandler'
x11_common.c:(.text+0x2b88): undefined reference to `XDisplayName'
x11_common.c:(.text+0x2bac): undefined reference to `XOpenDisplay'
x11_common.c:(.text+0x2bee): undefined reference to `XInternAtom'
x11_common.c:(.text+0x2c08): undefined reference to `XInternAtom'
x11_common.c:(.text+0x2c22): undefined reference to `XInternAtom'
x11_common.c:(.text+0x2c3c): undefined reference to `XInternAtom'
x11_common.c:(.text+0x2c56): undefined reference to `XInternAtom'
libvo/x11_common.o:x11_common.c:(.text+0x2c70): more undefined references to `XInternAtom' follow
libvo/x11_common.o: In function `vo_init':
x11_common.c:(.text+0x2db7): undefined reference to `XGetWindowAttributes'
x11_common.c:(.text+0x2e2b): undefined reference to `XCreateImage'
x11_common.c:(.text+0x2e67): undefined reference to `XGetImage'
x11_common.c:(.text+0x3358): undefined reference to `XGetWindowProperty'
x11_common.c:(.text+0x33bb): undefined reference to `XGetWindowProperty'
x11_common.c:(.text+0x35e4): undefined reference to `XFree'
x11_common.c:(.text+0x35f4): undefined reference to `XFree'
x11_common.c:(.text+0x3638): undefined reference to `XFree'
libvo/x11_common.o: In function `vo_x11_create_colormap':
x11_common.c:(.text+0x386a): undefined reference to `XCreateColormap'
x11_common.c:(.text+0x388b): undefined reference to `XStoreColors'
libvo/x11_common.o: In function `vo_x11_set_equalizer':
x11_common.c:(.text+0x4026): undefined reference to `XStoreColors'
x11_common.c:(.text+0x4032): undefined reference to `XFlush'
libvo/x11_common.o: In function `vo_x11_nofs_sizepos':
x11_common.c:(.text+0x1481): undefined reference to `XMoveResizeWindow'
libvo/x11_common.o: In function `vo_x11_sizehint':
x11_common.c:(.text+0x1551): undefined reference to `XSetWMNormalHints'
libvo/x11_common.o: In function `vo_x11_clearwindow_part':
x11_common.c:(.text+0x1754): undefined reference to `XFlush'
libvo/x11_common.o: In function `vo_x11_clearwindow':
x11_common.c:(.text+0x17f7): undefined reference to `XFlush'
libvo/x11_common.o: In function `xscreensaver_heartbeat':
x11_common.c:(.text+0x28e3): undefined reference to `XResetScreenSaver'
libvo/x11_common.o: In function `vo_x11_selectinput_witherr':
x11_common.c:(.text+0x2a08): undefined reference to `XSelectInput'
libvo/x11_common.o: In function `vo_x11_create_colormap':
x11_common.c:(.text+0x38ca): undefined reference to `XCreateColormap'
libvo/vo_xvidix.o: In function `set_window':
vo_xvidix.c:(.text+0x118): undefined reference to `XGetGeometry'
vo_xvidix.c:(.text+0x15c): undefined reference to `XTranslateCoordinates'
vo_xvidix.c:(.text+0x3be): undefined reference to `XSetBackground'
vo_xvidix.c:(.text+0x3d1): undefined reference to `XClearWindow'
vo_xvidix.c:(.text+0x3eb): undefined reference to `XSetForeground'
vo_xvidix.c:(.text+0x42c): undefined reference to `XFillRectangle'
vo_xvidix.c:(.text+0x438): undefined reference to `XFlush'
libvo/vo_xvidix.o: In function `config':
vo_xvidix.c:(.text+0x79d): undefined reference to `XGetWindowAttributes'
vo_xvidix.c:(.text+0x7d8): undefined reference to `XMatchVisualInfo'
vo_xvidix.c:(.text+0x816): undefined reference to `XCreateColormap'
vo_xvidix.c:(.text+0x87b): undefined reference to `XChangeWindowAttributes'
vo_xvidix.c:(.text+0x8e1): undefined reference to `XSync'
collect2: error: ld returned 1 exit status
make: *** [mplayer] Fehler 1

Last edited by samurro (2013-03-30 18:51:46)

Offline

#98 2013-03-30 20:23:12

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,432

Re: Mplayer for beginners

More difficult than I thought too. Just as one more reference, a member succesfully compiled mplayer2, so the guide is already tested somehow:

http://crunchbang.org/forums/viewtopic.php?id=20299

Last edited by ivanovnegro (2013-03-30 20:23:29)

Offline

#99 2013-03-30 20:31:47

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Mplayer for beginners

I guess you now need to feed make the path to your X11 headers. Try editing config.mak inside vaapi-mplayer:

Look for the line declaring CFLAGS (should be above the line declaring CXXFLAGS) and once you found it, add this to the very end:

`pkg-config --libs --cflags x11`

I'm not 100% sure that this will work, but it might.

EDIT: I'm going to fire up my VM. I don't like giving half-working help.

Last edited by Unia (2013-03-30 20:34:06)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

Be excellent to each other!

#100 2013-03-30 20:33:15

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Mplayer for beginners

@ivanov,

A quick look at that mplayer2 post shows it uses cmake. Is that the same as regular make which our vaapi-mplayer uses?


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo