← Back to team overview

kicad-developers team mailing list archive

Re: OSX developer help.

 


On 9 Feb 2011, at 6:45PM, Richard Tobias wrote:

> Hi,
> 
> I'm having trouble building on OSX.  I use MacPorts and the latest gcc.  There was one minor issue where there is is
> 
> #define check() 
> 
> someplace in the .h's and so I had to add
> 
> #ifdef check
> #undef check
> #endif
> 
> To the top of static_move_ptr.hpp
> 
> Another error is a Carbon error and the use of a non-Mac gcc compiler, which I haven't figured out yet.
> 
> [  0%] Building CXX object 3d-viewer/CMakeFiles/3d-viewer.dir/3d_aux.cpp.o
> In file included from /cad.src/kicad/kicad.bzr/include/boost/ptr_container/detail/reversible_ptr_container.hpp:22,
>                  from /cad.src/kicad/kicad.bzr/include/boost/ptr_container/ptr_sequence_adapter.hpp:20,
>                  from /cad.src/kicad/kicad.bzr/include/boost/ptr_container/ptr_vector.hpp:20,
>                  from /cad.src/kicad/kicad.bzr/include/base_struct.h:10,
>                  from /cad.src/kicad/kicad.bzr/include/pcbstruct.h:8,
>                  from /cad.src/kicad/kicad.bzr/3d-viewer/3d_viewer.h:24,
>                  from /cad.src/kicad/kicad.bzr/3d-viewer/3d_aux.cpp:22:
> /cad.src/kicad/kicad.bzr/include/boost/ptr_container/detail/static_move_ptr.hpp:154:50: error: macro "check" passed 2 arguments, but takes just 1
> 
> As above.
> 
> Unless someone has ideas on this, I'll get back to you with the solution
> 
> 
Check  compile instructions at 

http://bazaar.launchpad.net/~kicad-testing-committers/kicad/testing/view/head:/Documentation/compiling/mac-osx.txt

I think this is just the 

CMAKE_CXX_FLAGS = -D__ASSERTMACROS__
issue. 

You can pass it as an argument to cmake ie
cmake ../../ -DCMAKE_CXX_FLAGS = -D__ASSERTMACROS__

or edit the CMakeCache.txt file


Nick Lott
nick.lott@xxxxxxxxx

http://www.brokentoaster.com/


> Richard
> 
> 
> On Wed, Feb 9, 2011 at 12:24 PM, Jerry Jacobs <xor.gate.engineering@xxxxxxxxx> wrote:
> On 2/9/11 1:52 PM, Nick Lott wrote:
> > Hi all,
> > KiCad nightly builds of the developer branch for os x are back.
> > I've fixed my scripts for working with bazaar and the system is now
> building and uploading daily.
> >
> > Currently not building Snow Leopard compatible universal binaries
> (i386 and ppc only) but I hope to have this fixed in the next couple of
> days.
> >
> > You can find them at http://www.brokentoaster.com/kicad
> >
> > Let me know if this is/isn't useful or if you have any problems.
> 
> Maybe you could remove very old builds from 2008-2010 to save space, and
> it would be nice if you could upload the build/upload scripts so other
> people can also create snapshots for OSX.
> 
> Still we need to refine some things and create a real installer so users
> don't need to do everything by hand.
> 
> Some time ago Martijn suggested to split it in different installers to
> make upgrading easy. The libraries, the apps and the documentation maybe?
> 
> Greets,
> Jerry
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 


References