[MPlayer-dev-eng] Building on OSX with Xcode 4.5.1's llvm

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Jan 27 16:37:45 CET 2013


On 26 Jan 2013, at 10:19, Xidorn Quan <quanxunzhen at gmail.com> wrote:
> On Sat, Jan 26, 2013 at 11:17 AM, Alex Sisson <alex_sisson at yahoo.co.uk> wrote:
>> Hi,
>> 
>> I  haven't built from source for a while, first time with llvm.
>> 
>> I found I needed to add the OpenGL/gl.h include to libvo/gl_common.h  to get it to build.  [latest svn]
>> 
>> #ifdef CONFIG_GL_OSX
>> #include "osx_common.h"
>> #include <OpenGL/OpenGL.h>
>> #include <OpenGL/gl.h>  // I ADDED THIS
>> #else
>> #include <GL/gl.h>
>> #endif
>> 
>> Some details about my system:
>> 
>> OSX 10.8.1
>> 
>> XCODE about: Version 4.5.1 (4G1004)
>> 
>> $ gcc --version
>> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
>> Copyright (C) 2007 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.  There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>> 
>> I assume configure has picked up standard OpenGL in /System/Library....  (I haven't installed any OpenGL dev stuff)
>> 
>> Not sure if this is something particular about my system. Any more info needed, please holler
> 
> I remembered that the same problem appeared for me, but now there
> seems to be no error anymore. My system version is OS X 10.8.2.
> You may upgrade your system to that version, and try again to
> conclude whether it is a bug of OS X in that particular version.

Maybe they made a mistake.
Anyway, this was reported before, I just wanted to test on 10.5.
Since I've now done this, I switched from OpenGL.h to gl.h.


More information about the MPlayer-dev-eng mailing list