← Back to team overview

kicad-developers team mailing list archive

Re: Re: Several Problems with kicad on osx

 

--Apple-Mail-1--48952904 Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit

Nick,

An easier fix [no boost modifications / etc] is to add - 
D__ASSERTMACROS__ to your CMAKE_CXX_FLAGS and CMAKE_C_FLAGS . That 
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
>
>
>

 --Apple-Mail-1--48952904 Content-Type: text/html;
charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webk=
it-line-break: after-white-space; "><div>Nick,</div><div><br></div>An easie=
r fix [no boost modifications / etc] is to add&nbsp;-D__ASSERTMACROS__ to y=
our&nbsp;CMAKE_CXX_FLAGS and&nbsp;CMAKE_C_FLAGS . That prevents inclusion o=
f 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.<div><div><br></div=
><div>I've been poking around at trying to fix the wxMac graphics implement=
ation, but no luck so far.</div><div><br></div><div>--David Carne</div><div=
><br><div><div><div>On 20-Apr-09, at 10:33 AM, Nick Lott wrote:</div><br cl=
ass=3D"Apple-interchange-newline"><blockquote type=3D"cite"><span class=3D"=
Apple-style-span" style=3D"border-collapse: separate; color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: =
normal; font-weight: normal; letter-spacing: normal; line-height: normal; o=
rphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-=
space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spac=
ing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in=
-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0=
; "><div style=3D"background-color: rgb(255, 255, 255); "><div id=3D"ygrp-m=
lmsg" style=3D"width: 655px; position: relative; font-size: 13px; font-fami=
ly: arial, helvetica, clean, sans-serif; "><div id=3D"ygrp-msg" style=3D"wi=
dth: 470px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-=
left: 0px; padding-top: 0px; padding-right: 25px; padding-bottom: 0px; padd=
ing-left: 0px; float: left; z-index: 1; line-height: 1.22em; "><div id=3D"y=
grp-text" style=3D"line-height: 1.22em; font-family: Georgia; "><p style=3D=
"line-height: 1.22em; margin-top: 0px; margin-right: 0px; margin-bottom: 1e=
m; margin-left: 0px; "><br style=3D"line-height: 1.22em; "><br style=3D"lin=
e-height: 1.22em; ">Somewhere on the mac a "check" macro gets defined. Appa=
rently this is if "DEBUG" is defined somewhere but I could not figure out w=
here or why this was going on (see this post. I decided to simply modify th=
e boost files concerned to work aroaund this problem. By renaming the "chec=
k" function and its called I was able to get kicad compiling again. Sadly i=
t 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 mad=
e<br style=3D"line-height: 1.22em; "></p></div></div></div><br><div style=
=3D"color: white; clear: both; "></div></div></span></blockquote></div><br>=
</div></div></div></body></html> --Apple-Mail-1--48952904-- 




Follow ups

References