Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mplayer on tiger fails to download and install #632

Open
aIgarcia opened this issue Feb 24, 2019 · 5 comments
Open

mplayer on tiger fails to download and install #632

aIgarcia opened this issue Feb 24, 2019 · 5 comments

Comments

@aIgarcia
Copy link

Fresh Tiger installation on PowerBook G4. Xcode 2.5, tigerbrew installed. curl and git installed as well, so far so good.

Python installed fine, however mplayer fails. First it couldn't download the tar.xz due https conflict, I fixed that locally. Then it says /usr/sbin/pkgutil does not exist (and in fact it doesn't). I just copy the pkgutil from a Leopard installation.

libvo/osx_objc_common.m: In function '-[MPCommonOpenGLView preinit]':
libvo/osx_objc_common.m:135: error: 'GLint' undeclared (first use in this function)
libvo/osx_objc_common.m:135: error: (Each undeclared identifier is reported only once
libvo/osx_objc_common.m:135: error: for each function it appears in.)
libvo/osx_objc_common.m:135: error: parse error before 'swapInterval'
libvo/osx_objc_common.m:174: error: 'swapInterval' undeclared (first use in this function)
gmake: *** [Makefile:735: libvo/osx_objc_common.o] Error 1

READ THIS: https://github.com/mistydemeo/tigerbrew/wiki/troubleshooting

So I go ahead to the wiki, run brew doctor and get this

cd /usr/local/Library && git stash && git clean -d -f

Stashing does nothing, brew doctor keeps showing this but more importantly I'm still unable to install mplayer

@mzryz
Copy link

mzryz commented Jan 29, 2020

This might help:
https://github.com/macports/macports-ports/blob/master/multimedia/MPlayer/files/patch-libvo-osx-objc-common-opengl-headers.diff

Hi kencu, could you please explain how to use this patch in conjunction with the tigerbrew commandline when installing mplayer? Thank you :)

@jupo42
Copy link
Contributor

jupo42 commented Feb 18, 2022

I was able to modify this patch and add it to the mplayer.rb and it successfully passes this part of the build. However, I'm running into further issues with ld errors on the main executable. I'll continue trying to troubleshoot and will post an PR when it's working.

@mistydemeo
Copy link
Owner

Thanks so much! I'd really appreciate a patch. Feel free to open a WIP PR too.

@Randrianasulu
Copy link

Randrianasulu commented May 13, 2024

I think patch can be downloaded from

https://raw.githubusercontent.com/macports/macports-ports/cb7a1cc812a77dfbcd06dcd56e646bb4497d0454/multimedia/MPlayer/files/patch-libvo-osx-objc-common-opengl-headers.diff
sha256sum patch-libvo-osx-objc-common-opengl-headers.diff
dcd77292195cde905cc2d16e9d6e075f69213dce6a15a18faa424ba24d22ca14  patch-libvo-osx-objc-common-opengl-headers.diff

then it probably must be inserted into mplayer.rb like this

patch :p0 do
    url "https://raw.githubusercontent.com/macports/macports-ports/cb7a1cc812a77dfbcd06dcd56e646bb4497d0454/multimedia/MPlayer/files/patch-libvo-osx-objc-common-opengl-headers.diff"
    sha256 "dcd77292195cde905cc2d16e9d6e075f69213dce6a15a18faa424ba24d22ca14"
  end

not tested yet due to slow qemu virtual machine...

edit: it was p0 not p1

@sevan sevan mentioned this issue May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants