Opened 11 years ago

Closed 11 years ago

#40914 closed defect (fixed)

mplayer-devel @36449_0 build fail Mavericks

Reported by: adamb2903 Owned by: acho@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: mavericks Cc: jeremyhu (Jeremy Huddleston Sequoia), cielartisan@…, pmetzger (Perry E. Metzger), tedescn@…
Port: mplayer-devel

Description

I'm almost all the way through my re-installs (including successfully patching the gstreamer1 problem), but this has me stumped. I can't see that it's a dependancy problem. Your advice appreciated. Log attached.

AB

Attachments (1)

main.log (481.1 KB) - added by adamb2903 11 years ago.

Download all attachments as: .zip

Change History (14)

Changed 11 years ago by adamb2903

Attachment: main.log added

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jeremyhu@… added
Owner: changed from macports-tickets@… to acho@…
Port: mplayer-devel added

The errors seem to relate to missing OpenGL constants, e.g.:

:info:build libvo/vo_corevideo.m:469:11: error: use of undeclared identifier 'GL_BLEND'

These would be provided by mesa, but mesa is not in mplayer-devel's dependency chain.

comment:2 Changed 11 years ago by adamb2903

Thanks for that. Sounds clear to me. I have checked that I have mesa installed: mesa @8.0.4_2 (x11, graphics). Would it require a later version, or is there some explicit linking missing? (Sorry if that's unclear, my limit is perl scripting, I'm ashamed to say.)

comment:3 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

No, vo_corevideo.m doesn't use Mesa. It uses OpenGL.framework ... GL_BLEND is defined in <OpenGL/gl.h>

/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:#define GL_BLEND                          0x0BE2

comment:4 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Yeah, I don't see vo_corevideo.m including OpenGL headers... that's the issue.

comment:5 in reply to:  description ; Changed 11 years ago by peter.fuereder@…

Replying to adam.bartley@…:

I am not using macports, but I tried also to compile latest developer mplayer under 10.9 and got same Error. It seems apple changed something in include or such (I am no experienced programmer)

I added #include <OpenGL/gl.h> in the libvo/vo_corevideo.m file and got mplayer to compile.

comment:6 Changed 11 years ago by adamb2903

That has worked for me, too. Well done that man. Thanks for everyone's help.

comment:7 Changed 11 years ago by cielartisan@…

Cc: cielartisan@… added

Cc Me!

comment:8 in reply to:  5 Changed 11 years ago by holms (Roman Gorodeckij)

Replying to peter.fuereder@…:

Replying to adam.bartley@…:

I am not using macports, but I tried also to compile latest developer mplayer under 10.9 and got same Error. It seems apple changed something in include or such (I am no experienced programmer)

I added #include <OpenGL/gl.h> in the libvo/vo_corevideo.m file and got mplayer to compile.

This also worked for me in maverics:

sudo port fetch mplayer-devel
sudo port extract mplayer-devel
cd /opt/local/var/macp
orts/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mplayer-devel/work/trunk/sudo port configure mplayer-devel
sudo vim libvo/vo_corevideo.m # added  #include <OpenGL/gl.h> 
sudo port configure mplayer-devel
sudo port build mplayer-devel
sudo port install mplayer-devel

So maybe somebody can make a patch?

Last edited 11 years ago by holms (Roman Gorodeckij) (previous) (diff)

comment:9 Changed 11 years ago by pmetzger (Perry E. Metzger)

Cc: perry@… added

Cc Me!

comment:10 Changed 11 years ago by tedescn@…

Cc: tedescn@… added

Cc Me!

comment:11 Changed 11 years ago by cielartisan@…

This also fixes MPlayer-1.1. Thank you so much.

comment:12 Changed 11 years ago by neverpanic (Clemens Lang)

In r112751 for mplayer, mplayer-devel to follow.

comment:13 Changed 11 years ago by neverpanic (Clemens Lang)

Keywords: mavericks added
Resolution: fixed
Status: newclosed

In r112753 for mplayer-devel.

Note: See TracTickets for help on using tickets.