Opened 10 years ago

Last modified 9 years ago

#2187 new defect

MPplayer links to libEGL.so by default without an option to prevent it

Reported by: Artem S. Tashkinov Owned by:
Priority: high Component: build system
Version: HEAD Severity: major
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

For unknown reasons mplayer's build system links the resulting mplayer binary to the libEGL.so.1 library without any ./configure option to prevent it.

Please remove this dependency (last time I checked mplayer doesn't use EGL at all) or make it configurable.

Attachments (1)

logs.tar.bz2 (26.7 KB ) - added by Artem S. Tashkinov 10 years ago.
Various build logs

Download all attachments as: .zip

Change History (7)

comment:1 by compn, 10 years ago

without a configure log or make log we cant verify this happens.
what OS ?

are you sure you arent compiling against opengl and there is some EGL lib/header on your system getting included?

comment:2 by Artem S. Tashkinov, 10 years ago

It links with OpenGL here and that's OK with me.

However I cannot understand why it needs to link to EGL which is useless for mplayer.

by Artem S. Tashkinov, 10 years ago

Attachment: logs.tar.bz2 added

Various build logs

comment:3 by compn, 10 years ago

sorry for late reply, it looks like mplayer can use egl_x11 which is what EGL lib is getting included.

Result is: yes (backends: x11 egl_x11 sdl)

probably disable that egl_x11 thing to disable this.

and yes, android egl support was added in 2013
http://lists.mplayerhq.hu/pipermail/mplayer-cvslog/2013-March/045106.html

comment:4 by Artem S. Tashkinov, 10 years ago

Can you please add a configure option to disable libEGL linking?

Under X11 it makes no sense anyways (OpenGL is available).

comment:5 by reimar, 9 years ago

OpenGL isn't available (except software emulation) on many ARM boards for example, thus EGL combined with GLES is required.
While adding a configure option would be possible I'm not particularly motivated to add it unless you can give a good reason why it is a problem and why you can't just uninstall libEGL or at least its headers.

comment:6 by Artem S. Tashkinov, 9 years ago

Do as you please.

My use case is pretty simple. libEGL is installed by binary NVIDIA drivers and when you uninstall them, mplayer stops working. That's not really nice, but I can live with that.

Note: See TracTickets for help on using tickets.