Re: DialogBlocks and OS X 10.8 - "Try a different SDK" error

155 views
Skip to first unread message

Ralph Pass

unread,
Feb 25, 2013, 4:19:33 PM2/25/13
to wx-u...@googlegroups.com
The first question is did you install Xcode (free download) and then the command line tools from the preferences for Xcode?


I am running DialogBlocks on multiple computers with 10.8.2 and wxWidgets-2.9.4


Ralph Pass



On Feb 25, 2013, at 3:53 PM, Philip Sharman <philip....@gmail.com> wrote:

Has anyone been successful getting DialogBocks to work with OS X 10.8? 

I've downloaded wxWidgets-2.9.4, and (following the "Getting started on Mac OS X" section in the DialogBlocks' Getting Started Guide) I have these settings in DialogBlocks:

SDK path = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
Libiconv path = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr
Unicode mode = Unicode
Processor type = Mac Universal Binary
Minimum OS version = 10.8.0

But when DialogBlocks tries to compile wxWidgets, I get this error:
    "checking if C compiler (gcc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8.0) works with SDK/version options...
    no. Try a different SDK."

Is there something else I need to configure?  (I asked the DialogBlocks author, but he wasn't sure what the problem was, so he suggested I ask here.)

    Thanks,
       Philip.
 

--
--
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
---
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wx-users+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Philip Sharman

unread,
Feb 25, 2013, 10:48:31 PM2/25/13
to wx-u...@googlegroups.com
Thanks for the quick reply Ralph.

Yes, I have XCode installed, and I've installed the command line tools.

I can compile WxWIdgets okay if I go through the Terminal and do it manually.  It is only when DialogBlocks tries to compile them that it gives me errors.  The command that DialogBlocks is using to build them is this:

/Applications/wxWidgets-2.9.4/configure  --with-mac --disable-debug --enable-unicode --disable-universal --disable-monolithic --enable-gui --disable-shared --enable-exceptions --without-odbc --without-opengl --enable-xrc --enable-html --with-regex=sys --enable-richtext --disable-mediactrl --enable-aui --enable-universal_binary --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk --with-macosx-version-min=10.8.0 --with-libiconv-prefix=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr CXX=g++ CC=gcc LD=g++

I'm guessing that one or more of those arguments needs to be tweaked, but I've been unable to figure out which one. 

Although, if you have it working with 10.8 then I'm puzzled.  Are you using an earlier SDK?

Thanks,
   Philip.


Julian Smart

unread,
Feb 26, 2013, 1:35:44 AM2/26/13
to wx-u...@googlegroups.com
I did suggest disabling the universal binary option. Did this change its meaning in 2.9 to refer to 32/64 bits or is it still Intel/PPC? If the latter, I imagine this would explain it.

Regards,

Julian

Philip Sharman

unread,
Mar 7, 2013, 11:14:02 AM3/7/13
to wx-u...@googlegroups.com
I've got it to work! Hooray!

I've done this:
1) Open a project (or create a new one).
2) Choose Preferences > Configuration.
3) Configure the "GCC Release Mac" configuration by changing these settings:
    - Toolkit =  wxOSX/Cocoa
    - wxWidgets version =   2.9.0
   Leave these set to the defaults:
    - Processor type =  Default
    - Unicode mode =   Unicode
    - Processor type =   Default
    - wxWidgets build command =  %AUTO%
    - Libiconv path =  %AUTO%
    - SDK path =  %AUTO%
    - Minimum OS version = %AUTO%
4) Build the widgets (via Build > Build wxWidgets).

The widgets then build correctly. 

5) However, when I try to build a project (via Build > Build Project), it initially fails looking for setup.h in the folder '/Applications/wxWidgets-2.9.4/GCCBuildReleaseOSXCocoaUnicode/lib/wx/include/osx_cocoa-unicode-release-static-2.9'.  There is a folder there called 'osx_cocoa-unicode-static-2.9' and I find that if I rename it to 'osx_cocoa-unicode-release-static-2.9' then the project builds correctly, and works.  I presume there is a better way to do this than renaming the folder, but I can't find where that folder name is set or configured.  Does anyone know?

Philip.

P.S.
   I must say that the functionality of DialogBlocks looks very impressive! I look forward to playing with it.
                                                                                                                        P.S.



Julian Smart

unread,
Mar 7, 2013, 12:48:55 PM3/7/13
to wx-u...@googlegroups.com
Hi Philip,

Glad you've got it working! The difference in version folder reflects a
change made after 2.9.0 where the version was no longer appended, so if
you had set the version to 2.9.1 or above first, DialogBlocks would not
have expected there to be a version in the include path.

Regards,

Julian
> <philip....@gmail.com <mailto:philip....@gmail.com>>
> <mailto:wx-users%2Bunsu...@googlegroups.com>
> >> or visit http://groups.google.com/group/wx-users
> >> ---
> >> You received this message because you are subscribed to the
> Google Groups
> >> "wx-users" group.
> >> To unsubscribe from this group and stop receiving emails from
> it, send an
> >> email to wx-users+u...@googlegroups.com
> <mailto:wx-users%2Bunsu...@googlegroups.com>.
> >> For more options, visit https://groups.google.com/groups/opt_out.
> >>
> >>
> >>
> >>
> >> --
> >> --
> >> Please read http://www.wxwidgets.org/support/mlhowto.htm before
> posting.
> >>
> >> To unsubscribe, send email to
> wx-users+u...@googlegroups.com
> <mailto:wx-users%2Bunsu...@googlegroups.com>
> >> or visit http://groups.google.com/group/wx-users
> >> ---
> >> You received this message because you are subscribed to the
> Google Groups
> >> "wx-users" group.
> >> To unsubscribe from this group and stop receiving emails from
> it, send an
> >> email to wx-users+u...@googlegroups.com
> <mailto:wx-users%2Bunsu...@googlegroups.com>.
> >> For more options, visit https://groups.google.com/groups/opt_out.
> >>
> >>
> >>
> >
> >--
> >--
> >Please read http://www.wxwidgets.org/support/mlhowto.htm before
> posting.
> >
> >To unsubscribe, send email to
> wx-users+u...@googlegroups.com
> <mailto:wx-users%2Bunsu...@googlegroups.com>
> >or visit http://groups.google.com/group/wx-users
> >---
> >You received this message because you are subscribed to the
> Google Groups "wx-users" group.
> >To unsubscribe from this group and stop receiving emails from it,
> send an email to wx-users+u...@googlegroups.com
> <mailto:wx-users%2Bunsu...@googlegroups.com>.
> >For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> --
> Please read http://www.wxwidgets.org/support/mlhowto.htm before
> posting.
>
> To unsubscribe, send email to
> wx-users+u...@googlegroups.com
> <mailto:wx-users%2Bunsu...@googlegroups.com>
> or visit http://groups.google.com/group/wx-users
> ---
> You received this message because you are subscribed to the Google
> Groups "wx-users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to wx-users+u...@googlegroups.com
> <mailto:wx-users%2Bunsu...@googlegroups.com>.
Reply all
Reply to author
Forward
0 new messages