[Gmsh] gmsh vs Mac OS X 10.6

Christophe Geuzaine cgeuzaine at ulg.ac.be
Tue Sep 22 12:07:59 CEST 2009


Marius Schamschula wrote:
> Hi there,
> 
> I just finished building gmsh under Mac OS X 10.4 and 10.5. However, I
> get a build failure under 10.6:
> 
> [ 30%] Building CXX object CMakeFiles/gmsh.dir/Fltk/FlGui.cpp.o
> In file included from /usr/local/include/FL/x.H:41,
>                  from /tmp/gmsh-2.4.2/Fltk/FlGui.cpp:12:
> /usr/local/include/FL/mac.H: In function ‘OpaqueRgnHandle*
> XRectangleRegion(int, int, int, int)’:
> /usr/local/include/FL/mac.H:49: error: ‘NewRgn’ was not declared in this scope
> /usr/local/include/FL/mac.H:50: error: ‘SetRectRgn’ was not declared
> in this scope
> /usr/local/include/FL/mac.H: In function ‘void
> XDestroyRegion(OpaqueRgnHandle*)’:
> /usr/local/include/FL/mac.H:54: error: ‘DisposeRgn’ was not declared
> in this scope
> make[2]: *** [CMakeFiles/gmsh.dir/Fltk/FlGui.cpp.o] Error 1
> make[1]: *** [CMakeFiles/gmsh.dir/all] Error 2
> make: *** [all] Error 2
> 
> I'm building against fltk 1.1.9. The fltk test apps work correctly.
> 
> Any ideas?
> 

If you managed to compile fltk on Mac OS X 10.6 you probably compiled in 
in 32 bit mode (fltk does not support 64 bit mode on OS X due to its 
reliance on Carbon). You should thus also compile Gmsh in 32 bit mode. 
You can e.g. set

export CXXFLAGS="-m32"
export CFLAGS="-m32"

in .bash_profile to compile in 32 bit mode by default.

Ch.


> TIA


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine