kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #08912
Re: Problem building on MacOS or just boost?
Miguel,
Is a well know problem you should add to CXXFLAGS
-D__ASSERTMACROS__
error is already defined in the OSX headers otherwise.
Please look to the instructions we have already done with jerry.
http://bazaar.launchpad.net/~kicad-testing-committers/kicad/testing/annotate/head:/Documentation/compiling/mac-osx.txt
If you have further problems, drop a mail here and directly to me.
--
Marco
On Sat, Sep 22, 2012 at 3:14 PM, Miguel Angel Ajo Pelayo <
miguelangel@xxxxxxx> wrote:
>
> Hi everybody, I'm still struggling through my ton of work, but had some
> time to learn how to setup everything to build on MacOS (including
> wxpython),
> anyway I didn't manage to get it working, compilation stops at here,
>
> Not sure if it's a mac-os compiler problem (llvm-gcc-4.2) or just a boost
> issue:
>
>
>
> Scanning dependencies of target polygon
> [ 35%] Building CXX object 3d-viewer/CMakeFiles/3d-viewer.dir/3d_aux.cpp.o
> [ 35%] Building CXX object
> polygon/CMakeFiles/polygon.dir/math_for_graphics.cpp.o
> [ 35%] Building CXX object
> common/CMakeFiles/common.dir/dialogs/dialog_image_editor.cpp.o
> [ 35%] Building CXX object
> common/CMakeFiles/pcbcommon.dir/base_screen.cpp.o
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/3d-viewer/3d_aux.cpp:34:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/wxBasePcbFrame.h:38:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/base_struct.h:38:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/ptr_vector.hpp:20:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/ptr_sequence_adapter.hpp:20:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/detail/reversible_ptr_container.hpp:22:
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/detail/static_move_ptr.hpp:154:42:
> error: too many arguments provided to function-like macro
> invocation
> void check(const static_move_ptr<TT, DD>& ptr)
> ^
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/detail/static_move_ptr.hpp:154:10:
> error: function definition does not declare parameters
> void check(const static_move_ptr<TT, DD>& ptr)
> ^
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/common/base_screen.cpp:34:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/base_struct.h:38:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/ptr_vector.hpp:20:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/ptr_sequence_adapter.hpp:20:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/detail/reversible_ptr_container.hpp:22:
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/detail/static_move_ptr.hpp:154:42:
> error: too many arguments provided to function-like macro
> invocation
> void check(const static_move_ptr<TT, DD>& ptr)
> ^
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/detail/static_move_ptr.hpp:154:10:
> error: function definition does not declare parameters
> void check(const static_move_ptr<TT, DD>& ptr)
> ^
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/common/dialogs/dialog_image_editor.cpp:32:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/class_bitmap_base.h:34:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/sch_item_struct.h:34:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/class_base_screen.h:34:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/base_struct.h:38:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/ptr_vector.hpp:20:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/ptr_sequence_adapter.hpp:20:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/detail/reversible_ptr_container.hpp:22:
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/detail/static_move_ptr.hpp:154:42:
> error: too many arguments provided to function-like macro
> invocation
> void check(const static_move_ptr<TT, DD>& ptr)
> ^
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/detail/static_move_ptr.hpp:154:10:
> error: function definition does not declare parameters
> void check(const static_move_ptr<TT, DD>& ptr)
> ^
> 2 errors generated.
> make[2]: *** [common/CMakeFiles/pcbcommon.dir/base_screen.cpp.o] Error 1
> make[1]: *** [common/CMakeFiles/pcbcommon.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> 2 errors generated.
> [ 35%] make[2]: ***
> [common/CMakeFiles/common.dir/dialogs/dialog_image_editor.cpp.o] Error 1
> make[1]: *** [common/CMakeFiles/common.dir/all] Error 2
> Building CXX object 3d-viewer/CMakeFiles/3d-viewer.dir/3d_canvas.cpp.o
> [ 36%] Building CXX object polygon/CMakeFiles/polygon.dir/PolyLine.cpp.o
> [ 36%] Building CXX object
> polygon/CMakeFiles/polygon.dir/polygon_test_point_inside.cpp.o
> 2 errors generated.
> make[2]: *** [3d-viewer/CMakeFiles/3d-viewer.dir/3d_aux.cpp.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> [ 36%] Building CXX object polygon/CMakeFiles/polygon.dir/clipper.cpp.o
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/polygon/polygon_test_point_inside.cpp:7:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/polygon/./PolyLine.h:24:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/polygon/./polygons_defs.h:9:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/boost/polygon/polygon.hpp:24:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/boost/polygon/transform.hpp:499:
> /Users/ajo/Documents/work/kicad/kicad/include/boost/polygon/detail/transform_detail.hpp:471:46:
> warning: '&&' within '||' [-Wlogical-op-parentheses]
> return atr_ < tr.atr_ || atr_ == tr.atr_ && p_ < tr.p_;
> ~~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
> /Users/ajo/Documents/work/kicad/kicad/include/boost/polygon/detail/transform_detail.hpp:471:46:
> note: place parentheses around the '&&' expression to silence this
> warning
> return atr_ < tr.atr_ || atr_ == tr.atr_ && p_ < tr.p_;
> ^
> ( )
> 1 warning generated.
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/3d-viewer/3d_canvas.cpp:19:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/3d-viewer/./3d_viewer.h:33:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/wxBasePcbFrame.h:38:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/base_struct.h:38:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/ptr_vector.hpp:20:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/ptr_sequence_adapter.hpp:20:
> In file included from
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/detail/reversible_ptr_container.hpp:22:
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/detail/static_move_ptr.hpp:154:42:
> error: too many arguments provided to function-like macro
> invocation
> void check(const static_move_ptr<TT, DD>& ptr)
> ^
> /Users/ajo/Documents/work/kicad/kicad/include/boost/ptr_container/detail/static_move_ptr.hpp:154:10:
> error: function definition does not declare parameters
> void check(const static_move_ptr<TT, DD>& ptr)
> ^
> 2 errors generated.
> make[2]: *** [3d-viewer/CMakeFiles/3d-viewer.dir/3d_canvas.cpp.o] Error 1
> make[1]: *** [3d-viewer/CMakeFiles/3d-viewer.dir/all] Error 2
> Linking CXX static library libpolygon.a
> [ 36%] Built target polygon
> make: *** [all] Error 2
>
> MacBook-Air-de-Miguel:build ajo$ gcc -version
> i686-apple-darwin11-llvm-gcc-4.2: no input files
>
> Greetings,
> Mike
>
>
> Miguel Angel Ajo
> http://www.nbee.es
> +34911407752
> skype: ajoajoajo
>
>
> _______________________________________________
> 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
>
Follow ups
References