← Back to team overview

kicad-developers team mailing list archive

Re: Several Problems with kicad on osx

 

I had this issue. Please read my blog for the following in full.

http://stuffthingsandjunk.blogspot.com/search?q=kicad


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 wasgoing 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

fixing kicad again for th mac
/temp/kicad-sources/boost/ptr_container/detail/static_move_ptr.hpp:
line 155: check renamed to check_

4 changes in /temp/kicad-sources/boost/detail/is_incrementable.hppcheck "check(" replaced with "check_("

boost/ptr_container/detail/static_move_ptr.hpp 

% diff /temp/boost_1_37_0/boost/ptr_container/detail/static_move_ptr.hpp
/temp/kicad-sources/boost/ptr_container/detail/static_move_ptr.hpp 

154c155
< void check(const static_move_ptr& ptr)
---
> void check_(const static_move_ptr& ptr)


boost/detail/is_incrementable.hpp 

% diff /temp/boost_1_37_0/boost/detail/is_incrementable.hpp 
/temp/kicad-sources/boost/detail/is_incrementable.hpp 

68c68
< char (& check(tag) )[2];
---
> char (& check_(tag) )[2];
71c71
< char check(T const&);
---
> char check_(T const&);
81c81
< , value = sizeof(is_incrementable_::check(BOOST_comma(++x,0))) == 1
---
> , value = sizeof(is_incrementable_::check_(BOOST_comma(++x,0)))== 1
92c92
< , value = sizeof(is_incrementable_::check(BOOST_comma(x++,0))) == 1
---
> , value = sizeof(is_incrementable_::check_(BOOST_comma(x++,0)))== 1



--- In kicad-devel@xxxxxxxxxxxxxxx, "dioiioib" <dioiioib@...> wrote:
>
> > 
> > You should use cmake to build Kicad as written in COMPILING.txt, not makefile.macosx.
> > You can find cmake at http://www.cmake.org/cmake/resources/software.html
> >
> Ok I made the switch but the compile time errors are very similar. Still two errors. 
> 
> 
> 
> lute1:release briandurocher$ make
> -- Check for installed OpenGL -- found
> -- Check for installed Boost -- found
> -- Check for installed wxWidgets -- found
> -- Using <build_version.h> for version string.
> -- Check for installed zlib -- found
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /Users/briandurocher/downloads/kicad-2009-02-16/build/release
> [ 0%] Building CXX object 3d-viewer/CMakeFiles/3d-viewer.dir/3d_aux.cpp.o
> In file included from /usr/local/include/boost-1_38/boost/ptr_container/detail/reversible_ptr_container.hpp:22,
> from /usr/local/include/boost-1_38/boost/ptr_container/ptr_sequence_adapter.hpp:20,
> from /usr/local/include/boost-1_38/boost/ptr_container/ptr_vector.hpp:20,
> from /Users/briandurocher/downloads/kicad-2009-02-16/include/board_item_struct.h:9In file included from /usr/local/include/boost-1_38/boost/ptr_container/detail/reversible_ptr_container.hpp:22,
> from /usr/local/include/boost-1_38/boost/ptr_container/ptr_sequence_adapter.hpp:20,
> from /usr/local/include/boost-1_38/boost/ptr_container/ptr_vector.hpp:20,
> from /Users/briandurocher/downloads/kicad-2009-02-16/include/board_item_struct.h:9,
> from /Users/briandurocher/downloads/kicad-2009-02-16/include/pcbstruct.h:10,
> from /Users/briandurocher/downloads/kicad-2009-02-16/3d-viewer/3d_viewer.h:29,
> from /Users/briandurocher/downloads/kicad-2009-02-16/3d-viewer/3d_aux.cpp:23:
> /usr/local/include/boost-1_38/boost/ptr_container/detail/static_move_ptr.hpp:154:50: error: macro "check" passed 2 arguments, but takes just 1
> ,
> from /Users/briandurocher/downloads/kicad-2009-02-16/include/pcbstruct.h:10,
> from /Users/briandurocher/downloads/kicad-2009-02-16/3d-viewer/3d_viewer.h:29,
> from /Users/briandurocher/downloads/kicad-2009-02-16/3d-viewer/3d_aux.cpp:23:
> /usr/local/include/boost-1_38/boost/ptr_container/detail/static_move_ptr.hpp:154:50: error: macro "check" passed 2 arguments, but takes just 1
> In file included from /usr/local/include/boost-1_38/boost/ptr_container/detail/reversible_ptr_container.hpp:22,
> from /usr/local/include/boost-1_38/boost/ptr_container/ptr_sequence_adapter.hpp:20,
> from /usr/local/include/boost-1_38/boost/ptr_container/ptr_vector.hpp:20,
> from /Users/briandurocher/downloads/kicad-2009-02-16/include/board_item_struct.h:9,
> from /Users/briandurocher/downloads/kicad-2009-02-16/include/pcbstruct.h:10,
> from /Users/briandurocher/downloads/kicad-2009-02-16/3d-viewer/3d_viewer.h:29,
> from /Users/briandurocher/downloads/kicad-2009-02-16/3d-viewer/3d_aux.cpp:23:
> /usr/local/include/boost-1_38/boost/ptr_container/detail/static_move_ptr.hpp:154:50: error: macro "check" passed 2 arguments, but takes just 1
> In file included from /usr/local/include/boost-1_38/boost/ptr_container/detail/reversible_ptr_container.hpp:22,
> from /usr/local/include/boost-1_38/boost/ptr_container/ptr_sequence_adapter.hpp:20,
> from /usr/local/include/boost-1_38/boost/ptr_container/ptr_vector.hpp:20,
> from /Users/briandurocher/downloads/kicad-2009-02-16/include/board_item_struct.h:9,
> from /Users/briandurocher/downloads/kicad-2009-02-16/include/pcbstruct.h:10,
> from /Users/briandurocher/downloads/kicad-2009-02-16/3d-viewer/3d_viewer.h:29,
> from /Users/briandurocher/downloads/kicad-2009-02-16/3d-viewer/3d_aux.cpp:23:
> /usr/local/include/boost-1_38/boost/ptr_container/detail/static_move_ptr.hpp:154:50: error: macro "check" passed 2 arguments, but takes just 1
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:49: warning: `AGLDrawable' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:53: warning: `AGLDrawable' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:49: warning: `AGLDrawable' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:53: warning: `AGLDrawable' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:49: warning: `AGLDrawable' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:53: warning: `AGLDrawable' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:49: warning: `AGLDrawable' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:53: warning: `AGLDrawable' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> /usr/local/include/boost-1_38/boost/ptr_container/detail/static_move_ptr.hpp:154: error: invalid member function declaration
> /usr/local/include/boost-1_38/boost/ptr_container/detail/static_move_ptr.hpp:154: error: invalid member function declaration
> /usr/local/include/boost-1_38/boost/ptr_container/detail/static_move_ptr.hpp:154: error: invalid member function declaration
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:68: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:68: error: abstract declarator `char (&)[2]' used as declaration
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:71: error: expected unqualified-id before `;' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:79: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:90: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:68: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:68: error: abstract declarator `char (&)[2]' used as declaration
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:71: error: expected unqualified-id before `;' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:79: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:90: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/ptr_container/detail/static_move_ptr.hpp:154: error: invalid member function declaration
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:68: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:68: error: abstract declarator `char (&)[2]' used as declaration
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:71: error: expected unqualified-id before `;' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:79: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:90: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:68: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:68: error: abstract declarator `char (&)[2]' used as declaration
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:71: error: expected unqualified-id before `;' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:79: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:90: error: expected unqualified-id before `)' token
> lipo: can't figure out the architecture type of: /var/folders/1o/1oQRw+VKECyaQLBPlyJl0++++TI/-Tmp-//ccBcsrgR.out
> make[2]: *** [3d-viewer/CMakeFiles/3d-viewer.dir/3d_aux.cpp.o] Error 1
> make[1]: *** [3d-viewer/CMakeFiles/3d-viewer.dir/all] Error 2
> make: *** [all] Error 2
> lute1:release briandurocher$ make install
> [ 0%] Building CXX object 3d-viewer/CMakeFiles/3d-viewer.dir/3d_aux.cpp.o
> In file included from /usr/local/include/boost-1_38/boost/ptr_container/detail/reversible_ptr_container.hpp:22,
> from /usr/local/include/boost-1_38/boost/ptr_container/ptr_sequence_adapter.hpp:20,
> from /usr/local/include/boost-1_38/boost/ptr_container/ptr_vector.hpp:20,
> from /Users/briandurocher/downloads/kicad-2009-02-16/include/board_item_struct.h:9,
> from /Users/briandurocher/downloads/kicad-2009-02-16/include/pcbstruct.h:10,
> from /Users/briandurocher/downloads/kicad-2009-02-16/3d-viewer/3d_viewer.h:29,
> from /Users/briandurocher/downloads/kicad-2009-02-16/3d-viewer/3d_aux.cpp:23:
> /usr/local/include/boost-1_38/boost/ptr_container/detail/static_move_ptr.hpp:154:50: error: macro "check" passed 2 arguments, but takes just 1
> In file included from /usr/local/include/boost-1_38/boost/ptr_container/detail/reversible_ptr_container.hpp:22,
> from /usr/local/include/boost-1_38/boost/ptr_container/ptr_sequence_adapter.hpp:20,
> from /usr/local/include/boost-1_38/boost/ptr_container/ptr_vector.hpp:20,
> from /Users/briandurocher/downloads/kicad-2009-02-16/include/board_item_struct.h:9,
> from /Users/briandurocher/downloads/kicad-2009-02-16/include/pcbstruct.h:10,
> from /Users/briandurocher/downloads/kicad-2009-02-16/3d-viewer/3d_viewer.h:29,
> from /Users/briandurocher/downloads/kicad-2009-02-16/3d-viewer/3d_aux.cpp:23:
> /usr/local/include/boost-1_38/boost/ptr_container/detail/static_move_ptr.hpp:154:50: error: macro "check" passed 2 arguments, but takes just 1
> In file included from /usr/local/include/boost-1_38/boost/ptr_container/detail/reversible_ptr_container.hpp:22,
> from /usr/local/include/boost-1_38/boost/ptr_container/ptr_sequence_adapter.hpp:20,
> from /usr/local/include/boost-1_38/boost/ptr_container/ptr_vector.hpp:20,
> from /Users/briandurocher/downloads/kicad-2009-02-16/include/board_item_struct.h:9,
> from /Users/briandurocher/downloads/kicad-2009-02-16/include/pcbstruct.h:10,
> from /Users/briandurocher/downloads/kicad-2009-02-16/3d-viewer/3d_viewer.h:29,
> from /Users/briandurocher/downloads/kicad-2009-02-16/3d-viewer/3d_aux.cpp:23:
> /usr/local/include/boost-1_38/boost/ptr_container/detail/static_move_ptr.hpp:154:50: error: macro "check" passed 2 arguments, but takes just 1
> In file included from /usr/local/include/boost-1_38/boost/ptr_container/detail/reversible_ptr_container.hpp:22,
> from /usr/local/include/boost-1_38/boost/ptr_container/ptr_sequence_adapter.hpp:20,
> from /usr/local/include/boost-1_38/boost/ptr_container/ptr_vector.hpp:20,
> from /Users/briandurocher/downloads/kicad-2009-02-16/include/board_item_struct.h:9,
> from /Users/briandurocher/downloads/kicad-2009-02-16/include/pcbstruct.h:10,
> from /Users/briandurocher/downloads/kicad-2009-02-16/3d-viewer/3d_viewer.h:29,
> from /Users/briandurocher/downloads/kicad-2009-02-16/3d-viewer/3d_aux.cpp:23:
> /usr/local/include/boost-1_38/boost/ptr_container/detail/static_move_ptr.hpp:154:50: error: macro "check" passed 2 arguments, but takes just 1
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:49: warning: `AGLDrawable' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:53: warning: `AGLDrawable' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:49: warning: `AGLDrawable' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:53: warning: `AGLDrawable' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:49: warning: `AGLDrawable' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:53: warning: `AGLDrawable' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:49: warning: `AGLDrawable' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:53: warning: `AGLDrawable' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> /usr/local/include/boost-1_38/boost/ptr_container/detail/static_move_ptr.hpp:154: error: invalid member function declaration
> /usr/local/include/boost-1_38/boost/ptr_container/detail/static_move_ptr.hpp:154: error: invalid member function declaration
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:68: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:68: error: abstract declarator `char (&)[2]' used as declaration
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:71: error: expected unqualified-id before `;' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:79: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:90: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:68: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:68: error: abstract declarator `char (&)[2]' used as declaration
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:71: error: expected unqualified-id before `;' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:79: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:90: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/ptr_container/detail/static_move_ptr.hpp:154: error: invalid member function declaration
> /usr/local/include/boost-1_38/boost/ptr_container/detail/static_move_ptr.hpp:154: error: invalid member function declaration
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:68: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:68: error: abstract declarator `char (&)[2]' used as declaration
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:71: error: expected unqualified-id before `;' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:79: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:90: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:68: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:68: error: abstract declarator `char (&)[2]' used as declaration
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:71: error: expected unqualified-id before `;' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:79: error: expected unqualified-id before `)' token
> /usr/local/include/boost-1_38/boost/detail/is_incrementable.hpp:90: error: expected unqualified-id before `)' token
> lipo: can't figure out the architecture type of: /var/folders/1o/1oQRw+VKECyaQLBPlyJl0++++TI/-Tmp-//ccBhMWJK.out
> make[2]: *** [3d-viewer/CMakeFiles/3d-viewer.dir/3d_aux.cpp.o] Error 1
> make[1]: *** [3d-viewer/CMakeFiles/3d-viewer.dir/all] Error 2
> make: *** [all] Error 2
>








Follow ups

References