Configuring WX 2.9.4 on Mac OSX with 10.6 SDK

36 views
Skip to first unread message

Tim Burgess

unread,
Apr 8, 2013, 7:08:19 AM4/8/13
to wx-u...@googlegroups.com

Hi,

I can successfully build WX for the 10.7 SDK by specifying the min and SDK path options at configuration time.  However, I get configuration errors if I substitute “10.6” for my “10.7” entries on the configuration line.  I’m using XCode 4.6 and I’ve copied the 10.6 SDK folder into the same place as the 10.7 and 10.8 SDK folders.

Has anybody got this to work, or am I flogging a dead horse trying to manage all of my backward-compatibility requirements on a single machine?

Best wishes.

Tim Burgess
Raised Bar Ltd.

Tel:  +44 (0)1827 719822
Web:  http://www.raisedbar.net

We can supply Roland and Avid products with specialist pre and post-sales support for visually-impaired users just drop us a line for a quote.

Dont forget to sign our on-line petition to lobby for improved access to music education and music technology at: 

http://www.raisedbar.net/petition.htm

paulc...@gmail.com

unread,
Apr 8, 2013, 12:49:21 PM4/8/13
to wx-u...@googlegroups.com, t...@raisedbar.net
Hi Tim,
 
I also build using 10.6 SDK on 10.7 system; I use these settings:
 
MACOSX_VERSION="10.6"
MACOSX_SDK_PATH="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk"
./configure ... --with-macosx-version-min=$MACOSX_VERSION --with-macosx-sdk="$MACOSX_SDK_PATH"
 
Paul.

Tim Burgess

unread,
Apr 8, 2013, 1:48:56 PM4/8/13
to wx-u...@googlegroups.com

Many thanks.

 

Does this set of options result in a cocoa-based set of libraries, or carbon-based, please?

 

Best wishes.

Tim Burgess

--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
 
To unsubscribe, send email to wx-users+u...@googlegroups.com
or visit http://groups.google.com/group/wx-users
 
 

Paul K

unread,
Apr 8, 2013, 2:57:47 PM4/8/13
to wx-u...@googlegroups.com
Tim:


> Does this set of options result in a cocoa-based set of libraries, or carbon-based, please?

cocoa based. I also use --with-osx_cocoa (in ./configure parameters)

Paul.

Tim Burgess

unread,
Apr 8, 2013, 3:24:56 PM4/8/13
to wx-u...@googlegroups.com

Excellent – thanks again.

 

Off to do some library building nowJ

 

 

Best wishes.

Tim Burgess

From: wx-u...@googlegroups.com [mailto:wx-u...@googlegroups.com] On Behalf Of Paul K
Sent: 08 April 2013 19:58
To: wx-u...@googlegroups.com
Subject: Re: Configuring WX 2.9.4 on Mac OSX with 10.6 SDK

 

Tim:

Paul.

 

--

Tim Burgess

unread,
Apr 9, 2013, 11:55:21 AM4/9/13
to wx-u...@googlegroups.com

OK,

 

I tried the following:

 

MACOSX_VERSION="10.6"

MACOSX_SDK_PATH="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk"

../configure --enable-debug --enable-unicode --disable-shared --with-osx_cocoa --with-macosx-version-min=$MACOSX_VERSION --with-macosx-sdk="$MACOSX_SDK_PATH"

 

The configure tool then processes until it throws the following error:

 

checking if std::basic_string<wchar_t> works... no

configure: error: Can't use --enable-std_string without std::wstring or std::basic_string<wchar_t>

 

Can anybody shed any light on this issue, please?  I tried the same configuration options but replacing the “10.6” text with “10.7” and I get a successful configuration and build.

 

Best wishes.

Tim Burgess

Paul K

unread,
Apr 9, 2013, 12:51:34 PM4/9/13
to wx-u...@googlegroups.com
Tim:


> checking if std::basic_string<wchar_t> works... no
> configure: error: Can't use --enable-std_string without std::wstring or std::basic_string<wchar_t>

I vaguely remember seeing something similar. If you extracted 10.6 SDK from the **first** XCode it was in (as I initially did), try extracting it from the **last** XCode it was still in as the SDK that was shipped with that first XCode seems to be badly broken (some of the header files were missing, and I was getting strange errors similar to the one above).

If it doesn't help and you still have the same issue, I can try to compile with the same config/source you use. I just did a compilation with a very similar setup and wxwidgets trunk about 3 weeks ago.

Paul.

Tim Burgess

unread,
Apr 9, 2013, 1:59:31 PM4/9/13
to wx-u...@googlegroups.com

OK,

 

I think the last version that provided 10.6 was XCode 4.1 – I’ll see if Apple still provide it on their site (they should do, as I seem to remember having to pay for it, unlike all the other versions).

 

Best wishes.

Tim Burgess

From: wx-u...@googlegroups.com [mailto:wx-u...@googlegroups.com] On Behalf Of Paul K
Sent: 09 April 2013 17:52
To: wx-u...@googlegroups.com
Subject: Re: Configuring WX 2.9.4 on Mac OSX with 10.6 SDK

 

Tim:

--

Reply all
Reply to author
Forward
0 new messages