I am trying to compile wxWidget, but I am having some problems.
Procedure
1 - Download wxWidgets 3.0
2 - mkdir wxbuild-3.0
3 - ../configure --enable-debug --disable-shared --enable-stl --with-osx --with-opengl
4 - make
When I type make, some seconds after appears:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:73:0,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13,
from ../include/wx/osx/cocoa/private.h:19,
from ../include/wx/osx/private.h:11,
from ../src/osx/cocoa/utils.mm:27:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellChecker.h:171:246: error: expected ')' before '(' token
- (void)showCorrectionIndicatorOfType:(NSCorrectionIndicatorType)type primaryString:(NSString *)primaryString alternativeStrings:(NSArray *)alternativeStrings forStringInRect:(NSRect)rectOfTypedString view:(NSView *)view completionHandler:(void (^)(NSString *acceptedString))completionBlock NS_AVAILABLE_MAC(10_7);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellChecker.h:171:246: error: expected identifier before '(' token
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellChecker.h:171:246: error: expected ';' before '(' token
In file included from ../include/wx/wxprec.h:12:0,
from ../src/osx/cocoa/utils.mm:11:
../include/wx/defs.h:3121:28: warning: 'NSTextStorage' has a field 'NSTextStorage::_flags' whose type uses the anonymous namespace [enabled by default]
DECLARE_WXCOCOA_OBJC_CLASS(NSTextStorage);
^
../include/wx/defs.h:3073:8: note: in definition of macro 'DECLARE_WXCOCOA_OBJC_CLASS'
@class klass; \
^
../include/wx/defs.h:3116:28: warning: 'NSStatusItem' has a field 'NSStatusItem::_fFlags' whose type uses the anonymous namespace [enabled by default]
DECLARE_WXCOCOA_OBJC_CLASS(NSStatusItem);
^
../include/wx/defs.h:3073:8: note: in definition of macro 'DECLARE_WXCOCOA_OBJC_CLASS'
@class klass; \
^
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:196:0,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13,
from ../include/wx/osx/cocoa/private.h:19,
from ../include/wx/osx/private.h:11,
from ../src/osx/cocoa/utils.mm:27:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindowRestoration.h:119:115: error: expected ')' before '(' token
- (void)restoreDocumentWindowWithIdentifier:(NSString *)identifier state:(NSCoder *)state completionHandler:(void (^)(NSWindow *, NSError *))completionHandler NS_AVAILABLE_MAC(10_7);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindowRestoration.h:119:115: error: expected identifier before '(' token
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindowRestoration.h:119:115: error: expected ';' before '(' token
make: *** [baselib_cocoa_utils.o] Error 1
Anybody have any suggestion? I tried to make the download of other version, but it did not work!
Thank you!