kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #13452
Re: [PATCH] Build broken on OSX since rev. 4895
Le 29/05/2014 11:45, Bernhard Stegmaier a écrit :
> Hi,
>
> build on OSX is broken since rev. 4895 (I guess)…
> The include <glu.h> is not found because __DARWIN__ is not set. Moving the include of glcanvas.h from the .cpp to the beginning of the header seems to fix this. Further, it seems as if no special library is needed to link against - especially “GLU” doesn’t exist (and pcbnew also does link glu32 only on Windows).
>
> The attached patch fixes at least the compilation problem for me on OSX and corrects the include guard (copy&paste bug I guess).
>
>
> Regards,
> Bernhard
I just committed changes for OSX compatibility.
I did not committed all your patch because:
if( WIN32 )
set ( LIB_GLU glu32 )
-else()
- set ( LIB_GLU GLU )
endif()
breaks the Linux build.
I replaced that by an other change.
However I am thinking the rev 4898 should work on OSX.
Try it.
Thanks.
--
Jean-Pierre CHARRAS
Follow ups
References