← Back to team overview

kicad-developers team mailing list archive

Re: Several Problems with kicad on osx


Brilliant, Cheers David.

I'm now building using the following command.

#build it
cd build/release
cmake ../../ -DwxWidgets_CONFIG_EXECUTABLE="/usr/local/bin/wx-config" -DwxWidgets_ROOT_DIR="/usr/local/include/wx-2.8" -DCMAKE_INSTALL_PREFIX=/temp/install -DBoost_INCLUDE_DIR=/temp/kicad-sources -DCMAKE_OSX_ARCHITECTURES="ppc -arch i386" -DCPP_FLAGS="-arch i386 -arch ppc -D__ASSERTMACROS__ "

Is there an easier way to do this? This is part of my nightly svn build script.

--- In kicad-devel@xxxxxxxxxxxxxxx, David Carne <davidcarne@...> wrote:
> Nick,
> An easier fix [no boost modifications / etc] is to add - 
> prevents inclusion of the Mac OS X header that contains the check  
> macro. Nothing in that header is used anywhere, so it doesn't seem to  
> break anything.
> I've been poking around at trying to fix the wxMac graphics  
> implementation, but no luck so far.
> --David Carne
> On 20-Apr-09, at 10:33 AM, Nick Lott wrote:
> >
> >
> > Somewhere on the mac a "check" macro gets defined. Apparently this  
> > is if "DEBUG" is defined somewhere but I could not figure out where  
> > or why this was going on (see this post. I decided to simply modify  
> > the boost files concerned to work aroaund this problem. By renaming  
> > the "check" function and its called I was able to get kicad  
> > compiling again. Sadly it does not fix the serious flaws in wxmacs  
> > graphics implimentation ie. the fact that it does not do XOR draws  
> > properly.Anyway here are the diffs I made
> >
> >
> >

Follow ups