The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Missing Xext.h (OSX 10.6.8)
rtrussell


Joined: 10 Feb 2016
Posts: 88
I'm trying to build SDL 2.0.4 on Mac OS-X 10.6.8 (Snow Leopard) but ../configure is telling me:

*** Missing Xext.h, maybe you need to install the libxext-dev package?

What do I need to do to resolve this?
Missing Xext.h (OSX 10.6.8)
Kai Sterker
Guest

On Tue, Jun 14, 2016 at 11:08 PM, rtrussell wrote:

Quote:
I'm trying to build SDL 2.0.4 on Mac OS-X 10.6.8 (Snow Leopard) but ../configure is telling me:

*** Missing Xext.h, maybe you need to install the libxext-dev package?

What do I need to do to resolve this?



I would suggest to use ./configure --without-x


Unless you actually want to use X11 under OSX (which I think Apple still includes), that should save you some trouble.


Kai
Missing Xext.h (OSX 10.6.8)
Eric Wing
Guest

Quote:
Unless you actually want to use X11 under OSX (which I think Apple still
includes),

X11 is no longer included with OSX.
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Missing Xext.h (OSX 10.6.8)
eric.w


Joined: 12 Feb 2014
Posts: 38
Quote:
Quote:
Unless you actually want to use X11 under OSX (which I think Apple still
includes),

X11 is no longer included with OSX.

It's provided by XQuartz now: https://www.xquartz.org/


The native OS X backend for SDL2 requires OS X 10.7+ to compile, though it runs on 10.6.
Missing Xext.h (OSX 10.6.8)
Kai Sterker
Guest

On Wed, Jun 15, 2016 at 1:37 AM, Eric Wasylishen wrote: 

Quote:
>X11 is no longer included with OSX.

It's provided by XQuartz now: https://www.xquartz.org/



Interesting. I could swear that on my freshly installed OSX 10.11, X11 is still present (under Applications/Utilities), though it might no longer come with any development related files, such as the headers.


Quote:
The native OS X backend for SDL2 requires OS X 10.7+ to compile, though it runs on 10.6.



Also interesting. I want to compile it on 10.6 myself on of these days, as I was under the impression that versions built on 10.11 no longer aupport 10.6. Seems I have some testing to do tonight.


Kai
Re: Missing Xext.h (OSX 10.6.8)
rtrussell


Joined: 10 Feb 2016
Posts: 88
eric.w wrote:
The native OS X backend for SDL2 requires OS X 10.7+ to compile, though it runs on 10.6.

I'm trying to compile on a 32-bit Mac Mini, so 10.6.8 is the last OS that will install. If I can't recompile SDL2, can I at least successfully build SDL apps using Xcode 3? I took at face value the comment at the Mac OS X FAQ that "SDL 2.0.0 supports Mac OS X 10.5 and newer, using either Xcode or the classic Unix-style build system". If that's not true the FAQ urgently needs to be corrected.
Missing Xext.h (OSX 10.6.8)
Kai Sterker
Guest

On Wed, Jun 15, 2016 at 10:20 AM, rtrussell wrote:
 
Quote:
I'm trying to compile on a 32-bit Mac Mini, so 10.6.8 is the last OS that will install. If I can't recompile SDL2, can I at least successfully build SDL apps using Xcode 3? I took at face value the comment at the Mac OS X FAQ that "SDL 2.0.0 supports Mac OS X 10.5 and newer, using either Xcode or the classic Unix-style build system". If that's not true the FAQ urgently needs to be corrected.



Digging through the commit history, it seems that support for compiling SDL2 on 10.6 was removed late 2013: https://hg.libsdl.org/SDL/rev/3782a12331d6


A couple weeks ago, support for running on 10.5 was also dropped. https://hg.libsdl.org/SDL/rev/3115d38204aa, though that might not concern you.


So I guess in your case the best bet is either developping against the premade binaries from the SDL website, or sticking to an older version that still supported building on 10.6 (i.e. https://hg.libsdl.org/SDL/archive/5b83ad3f01ac.tar.bz2).


Kai
Missing Xext.h (OSX 10.6.8)
MrOzBarry


Joined: 26 Jun 2010
Posts: 620
The SDL libraries in homebrew are kept fairly up to date, so that might be a reasonable option, but I haven't used them personally, so those are waters you're going to want to test first.

On Wed, Jun 15, 2016 at 7:09 AM, Kai Sterker wrote:
Quote:
On Wed, Jun 15, 2016 at 10:20 AM, rtrussell wrote:
 
Quote:
I'm trying to compile on a 32-bit Mac Mini, so 10.6.8 is the last OS that will install. If I can't recompile SDL2, can I at least successfully build SDL apps using Xcode 3? I took at face value the comment at the Mac OS X FAQ that "SDL 2.0.0 supports Mac OS X 10.5 and newer, using either Xcode or the classic Unix-style build system". If that's not true the FAQ urgently needs to be corrected.



Digging through the commit history, it seems that support for compiling SDL2 on 10.6 was removed late 2013: https://hg.libsdl.org/SDL/rev/3782a12331d6


A couple weeks ago, support for running on 10.5 was also dropped. https://hg.libsdl.org/SDL/rev/3115d38204aa, though that might not concern you.


So I guess in your case the best bet is either developping against the premade binaries from the SDL website, or sticking to an older version that still supported building on 10.6 (i.e. https://hg.libsdl.org/SDL/archive/5b83ad3f01ac.tar.bz2).


Kai





_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Re: Missing Xext.h (OSX 10.6.8)
rtrussell


Joined: 10 Feb 2016
Posts: 88
Kai Sterker wrote:
So I guess in your case the best bet is either developping against the premade binaries from the SDL website, or sticking to an older version that still supported building on 10.6

I'm happy to use premade binaries, but despite being described as 'Intel 10.5+' the files in SDL2-2.0.4.dmg appear to be compiled for x86-64 only, which is not a lot of use for building a 32-bit project on a 32-bit Mac! Where can I find premade 32-bit binaries?
Re: Missing Xext.h (OSX 10.6.8)
rtrussell


Joined: 10 Feb 2016
Posts: 88
rtrussell wrote:
Where can I find premade 32-bit binaries?

Just to add that I also need SDL2_ttf, and the same issue applies (the SDL2_ttf-2.0.14.dmg available for download seems to be only x86-64). I don't really understand the rationale for this; both 32-bit and 64-bit Windows binaries are available, so why not for Mac OS-X? Isn't it just a case of selecting both architectures when the framework is built?
Missing Xext.h (OSX 10.6.8)
eric.w


Joined: 12 Feb 2014
Posts: 38
Quote:
I'm happy to use premade binaries, but despite being described as 'Intel 10.5+' the files in SDL2-2.0.4.dmg appear to be
compiled for x86-64 only, which is not a lot of use for building a 32-bit project on a 32-bit Mac! Where can I find premade
32-bit binaries?

Hmm, this looks like a packaging error to me.
The previous release is a 32/64-bit binary, maybe this will work for
you temporarily: https://www.libsdl.org/release/SDL2-2.0.3.dmg

Quote:
Also interesting. I want to compile it on 10.6 myself on of these days, as I was under the impression that versions built on
10.11 no longer aupport 10.6. Seems I have some testing to do tonight.

Yeah, the -mmacosx-version-min=version compiler flag or
MACOSX_DEPLOYMENT_TARGET environment variable allow you to build code
on the OS X 10.11 SDK that will run on 10.6. The Xcode projects in the
hg repository already set this.
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Re: Missing Xext.h (OSX 10.6.8)
rtrussell


Joined: 10 Feb 2016
Posts: 88
eric.w wrote:
The previous release is a 32/64-bit binary, maybe this will work for you temporarily

That's helpful, thanks. With SDL2_ttf I've had to go back two versions, to 2.0.12 (August 2013), to find a 32-bit binary.

You mention that you think it is a packaging error. Is it possible that, if the right person can be contacted, the current frameworks might be rebuilt as 32/64-bit binaries? That would be very helpful to me, in fact I think it's the only way I will be able to build an up-to-date app on my 32-bit 10.6.8.
Re: Missing 32-bit binaries for OS-X
rtrussell


Joined: 10 Feb 2016
Posts: 88
rtrussell wrote:
You mention that you think it is a packaging error. Is it possible that, if the right person can be contacted, the current frameworks might be rebuilt as 32/64-bit binaries?

I'm bumping this thread. I am having to use SDL 2.0.3 (and SDL_ttf 2.0.12) for my Mac OS-X application because of the unfortunate absence of pre-built 32-bit binaries for 2.0.4. How can I persuade the 'powers that be' to build universal 32/64-bit Frameworks, or can somebody with a suitable platform please do it for me? My related bug reports #3371 and #3372 have attracted no comments or reaction.

Richard.