← Back to team overview

kicad-developers team mailing list archive

Re: Bump wx for OS X to 3.0.2 (with an extra patch?)

 

> On Oct 29, 2014, at 11:21 AM, Adam Wolf <adamwolf@xxxxxxxxxxxxxxxxxxxx> wrote:
> 
> Hi folks,
> 
> Attached is a patch from the latest revision of KiCad to add a patch in the patches/ directory suitable for building wxwidgets 3 on OS X 10.10 (Yosemite).  It does not add it to any build scripts in our tree per Bernhard.
> 
> I used this as the commit message on my own branch.
> 
> "Added patch for wxwidgets-3.0.2 for Mac OSX 10.10 (Yosemite).  The patch was taken from https://trac.macports.org/ticket/44524 for the upstream bug of http://trac.wxwidgets.org/ticket/16329.";

What is your ./configure recipe for building wxwidgets-3.0.2 on 10.10? I am getting errors like this:

meshugge:wxWidgets-3.0.2 andy$ make
/Users/andy/Projects/wxWidgets-3.0.2/bk-deps clang++ -mmacosx-version-min=10.9 -c -o basedll_cocoa_utils.o -I./.pch/wxprec_basedll -D__WXOSX_COCOA__      -DWXBUILDING -I/Users/andy/Projects/wxWidgets-3.0.2/src/tiff/libtiff -I./src/tiff/libtiff -I./src/jpeg -I./src/png -I./src/zlib -I./src/regex -I./src/expat/lib -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -DwxUSE_BASE=1 -dynamic -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -I/Users/andy/Projects/wxWidgets-3.0.2/lib/wx/include/osx_cocoa-unicode-3.0 -I./include -stdlib=libstdc++ -O2 -fno-strict-aliasing  ./src/osx/cocoa/utils.mm
In file included from ./src/osx/cocoa/utils.mm:27:
In file included from ./include/wx/osx/private.h:4:
In file included from ./include/wx/osx/core/private.h:55:
In file included from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:29:
In file included from /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HIToolbox.h:240:
In file included from /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/IMKInputSession.h:23:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:7:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSRange.h:5:
/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h:12:1: error: 
      'objc_returns_inner_pointer' attribute only applies to methods
@property (readonly) const char *objCType NS_RETURNS_INNER_POINTER;
^                                         ~~~~~~~~~~~~~~~~~~~~~~~~

Thanks,
-a

Follow ups

References