LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Error compiling MPLayer in Slackware-current (https://www.linuxquestions.org/questions/slackware-14/error-compiling-mplayer-in-slackware-current-4175623280/)

OutSiderBR 02-07-2018 03:43 PM

Error compiling MPLayer in Slackware-current
 
I tried to compile MPlayer in Slackware-current and get the same error. I recompiled slack ffmpeg and Alien Bob's ffmpeg. The error is:

Code:

libvo/vo_vdpau.c:131:8: error: unknown type name 'VdpPresentationQueueTargetCreateX11'
 static VdpPresentationQueueTargetCreateX11      *vdp_presentation_queue_target_create_x11;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libvo/vo_vdpau.c: In function 'win_x11_init_vdpau_procs':
libvo/vo_vdpau.c:394:10: error: 'VDP_FUNC_ID_PRESENTATION_QUEUE_TARGET_CREATE_X11' undeclared (first use in this function); did you mean 'VDP_FUNC_ID_PRESENTATION_QUEUE_TARGET_DESTROY'?
        {VDP_FUNC_ID_PRESENTATION_QUEUE_TARGET_CREATE_X11,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          VDP_FUNC_ID_PRESENTATION_QUEUE_TARGET_DESTROY
libvo/vo_vdpau.c:394:10: note: each undeclared identifier is reported only once for each function it appears in
libvo/vo_vdpau.c:419:14: error: implicit declaration of function 'vdp_device_create_x11'; did you mean 'vdp_decoder_create'? [-Werror=implicit-function-declaration]
    vdp_st = vdp_device_create_x11(mDisplay, mScreen,
              ^~~~~~~~~~~~~~~~~~~~~
              vdp_decoder_create
libvo/vo_vdpau.c: In function 'win_x11_init_vdpau_flip_queue':
libvo/vo_vdpau.c:449:14: error: called object 'vdp_presentation_queue_target_create_x11' is not a function or function pointer
    vdp_st = vdp_presentation_queue_target_create_x11(vdp_device, vo_window,
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libvo/vo_vdpau.c:131:51: note: declared here
 static VdpPresentationQueueTargetCreateX11      *vdp_presentation_queue_target_create_x11;
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libvo/vo_vdpau.c:449:12: error: incompatible types when assigning to type 'VdpStatus {aka enum <anonymous>}' from type 'const struct vdp_function *'
    vdp_st = vdp_presentation_queue_target_create_x11(vdp_device, vo_window,
            ^
libvo/vo_vdpau.c:449:5: warning: statement with no effect [-Wunused-value]
    vdp_st = vdp_presentation_queue_target_create_x11(vdp_device, vo_window,
    ^~~~~~
libvo/vo_vdpau.c: In function 'draw_image':
libvo/vo_vdpau.c:1096:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
        VdpVideoSurface surface = (VdpVideoSurface)mpi->priv;
                                  ^
cc1: some warnings being treated as errors
make: *** [Makefile:726: libvo/vo_vdpau.o] Error 1

Any suggestions ? I just want to enable the USE_PATENTS.

BW-userx 02-07-2018 04:00 PM

are your gcc options and directives all there to point it to where it needs to look?
Code:

bash-4.4# grep -rwn /usr/include  -e vdp_decoder_create
//comes up empty
//here
bash-4.4# grep -rwn /usr/include -e vdp_device_create_x11
/usr/include/vdpau/vdpau_x11.h:88: * vdp_device_create_x11. The wrapper implements this function by
/usr/include/vdpau/vdpau_x11.h:98: * actually implement the \ref vdp_device_create_x11 application call.
/usr/include/vdpau/vdpau_x11.h:138:VdpDeviceCreateX11 vdp_device_create_x11;
//it shows the function call in question. One of them anyways, I did not check all of them.

cc1: some warnings being treated as errors

the3dfxdude 02-07-2018 05:14 PM

You need to get an svn co of MPlayer trunk probably due to ffmpeg API change. The tar.xz snapshot included in the current source tree does not compile due to the ffmpeg-3.4 package upgrade. Which also reminds, I could not play DVDs with earlier package build of MPlayer when linked ffmpeg-3.4 either until I recompiled MPlayer. I'm pretty sure the MPlayer in current needs a recompile.

Last time I mentioned this.
https://www.linuxquestions.org/quest...8/#post5785875

orbea 02-07-2018 10:04 PM

If anyone needs a newer source snapshot of MPlayer upstream provides one.

http://mplayerhq.hu/MPlayer/releases...apshot.tar.bz2
http://mplayerhq.hu/design7/dload.html

I rebuilt the ffmpeg git master and MPlayer with this source today so it should work.

OutSiderBR 02-08-2018 07:24 AM

Thanks for all the replies. I will try them and give you all a feedback.

BW-userx 02-08-2018 07:58 AM

Out of curiosity, what new stuff does mPlayer got in it that it needs to be updated to whatever it is now? Am I missing something?

OutSiderBR 02-08-2018 08:55 AM

Solved
 
Well, I downloaded today snapshot according to orbea and could recompile MPlayer normally. So, I consider it solved. I did the tests BW-userx suggested and got the same results. the3dxdude was right as to the svn and ffmpeg API changes.

All of you were right, then. Good to have a lot of experts here.

BW-userx, the feature I want most is the AAC codec lame MP3. I could use x264, but I prefer ffmpeg.

Thank you all !

orbea 02-08-2018 09:04 AM

Quote:

Originally Posted by BW-userx (Post 5817292)
Out of curiosity, what new stuff does mPlayer got in it that it needs to be updated to whatever it is now? Am I missing something?

Support for newer ffmpeg API changes. The current snapshot that Pat is using was made well before ffmpeg made these API changes which require many programs such as MPlayer which depend on ffmpeg to update their code accordingly.

BW-userx 02-08-2018 09:36 AM

Quote:

Originally Posted by orbea (Post 5817321)
Support for newer ffmpeg API changes. The current snapshot that Pat is using was made well before ffmpeg made these API changes which require many programs such as MPlayer which depend on ffmpeg to update their code accordingly.

oic, the ole' cross app incompatibility issue, why didn't you say so? :D j/k.

thanks.

orbea 02-09-2018 09:22 AM

Seems this is really solved now. :)
Code:

Fri Feb 9 02:50:56 UTC 2018
xap/MPlayer-20180208-x86_64-1.txz: Upgraded.



All times are GMT -5. The time now is 08:48 PM.