[Gmsh] gmsh 2.0.8 stable failed to compile on SuSE 10.1 64

pei-ying.hsieh at siemens.com pei-ying.hsieh at siemens.com
Thu Sep 20 21:19:16 CEST 2007


Thanks a lot Professor Geuzaine!

I probably will try to upgrade FLTK to 1.1.7 first.

Best Regards,

Pei




Christophe Geuzaine <cgeuzaine at ulg.ac.be> 
09/20/2007 01:18 PM

To
pei-ying.hsieh at siemens.com
cc
Jean-Fran çois Remacle <jean-francois.remacle at uclouvain.be>, 
gmsh at geuz.org
Subject
Re: [Gmsh] gmsh 2.0.8 stable failed to compile on SuSE 10.1 64







pei-ying.hsieh at siemens.com wrote:
> 
> Hear Mr. Remacle:
> 
> Thanks for the reply!
> 
> When I tried to compile in gmsh/Fltk, I got an error:  GUI.cpp:462: 
> error: 'screen_xywh' is not a member of 'Fl'.

OK, I see: Fl::screen_xywh() was only introduced in FLTK 1.1.7...

Just replace the "GetFontSize()" routine in GUI.cpp with the following 
code:

int GetFontSize()
{
   if(CTX.fontsize > 0){
     return CTX.fontsize;
   }
   else{
     int w = Fl::w();
     if(w <= 860)       return 11;
     else if(w <= 1024) return 12;
     else if(w <= 1440) return 13;
     else if(w <= 1600) return 14;
     else               return 15;
   }
}

This should work with older versions of FLTK, too.

The fix will be in tomorrow's nightly source snapshot.

Thanks for the report,

Ch.


> 
> The version of fltk I am using is 1.1.6.  What really puzzles me is 
> that, I have no problem compiling gmsh released prior to 
> gmsh-2.0.8-nightly-20070529.  I will think that, fltk version is not the 

> problem here.
> 
> When configured to compile without gui, make was successful.
> 
> Any suggestion?
> 
> Best Regards,
> 
> Pei
> 
> --------------------------------------------------------
> Pei-Ying Hsieh, Ph.D.
> Staff Engineer
> Siemens Medical Solutions Diagnostics
> 511 Benedict Ave., MS 32
> Tarrytown, NY 10591
> phone: 914-524-3146
> fax: 914-524-3128
> 
> 
> *Jean-François Remacle <jean-francois.remacle at uclouvain.be>*
> 
> 09/20/2007 03:25 AM
> 
> 
> To
>                pei-ying.hsieh at siemens.com
> cc
>                gmsh at geuz.org
> Subject
>                Re: [Gmsh] gmsh 2.0.8 stable failed to compile on SuSE 
10.1 64
> 
> 
> 
> 
> 
> 
> 
> 
> 
> pei-ying.hsieh at siemens.com a écrit :
>  >
>  > Dear GMSH developers:
>  >
>  > I had no problem compiling gmsh-2.0.8-nightly-20070529 (and any
>  > release before that)  on a SuSE 10.1 64-bit OS.
>  > I downloaded gmsh-2.0.8-stable-source and it failed to compile.
>  >  Attached is the error.  Any suggestion will be highly
>  > appreciated.
>  >
> It looks like you were not able to compile one of the libraries of gmsh,
> libGlshFltk (the GUI) for which the
> sources are in gmsh/Fltk. Go into that directory and try to make the
> library. Perhaps you have a very old
> version of fltk ??
> 
> 
> 
> 
> 
>  > Best Regards,
>  >
>  > Pei
>  > ------------------------------------
>  > a - libsrc/general/symbolta.o
>  > a - libsrc/general/mystring.o
>  > a - nglib_addon.o
>  > ranlib ../../lib/libGmshNetgen.a
>  > make[1]: Leaving directory 
`/home/peiying/gmsh/gmsh-2.0.8/contrib/Netgen'
>  > make[1]: Entering directory
>  > `/home/peiying/gmsh/gmsh-2.0.8/contrib/MathEval'
>  > g++ -g -O2 -DHAVE_LIBZ -DHAVE_GSL -DHAVE_MATH_EVAL -DHAVE_NETGEN
>  > -DHAVE_ANN_ -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_FLTK
>  >  -I/usr/local/include -I/usr/X11R6/include -DHAVE_64BIT_SIZE_T
>  > -I../../Common -I../../DataStr  -c matheval.cpp
>  > g++ -g -O2 -DHAVE_LIBZ -DHAVE_GSL -DHAVE_MATH_EVAL -DHAVE_NETGEN
>  > -DHAVE_ANN_ -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_FLTK
>  >  -I/usr/local/include -I/usr/X11R6/include -DHAVE_64BIT_SIZE_T
>  > -I../../Common -I../../DataStr  -c node.cpp
>  > g++ -g -O2 -DHAVE_LIBZ -DHAVE_GSL -DHAVE_MATH_EVAL -DHAVE_NETGEN
>  > -DHAVE_ANN_ -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_FLTK
>  >  -I/usr/local/include -I/usr/X11R6/include -DHAVE_64BIT_SIZE_T
>  > -I../../Common -I../../DataStr  -c scanner.yy.cpp
>  > g++ -g -O2 -DHAVE_LIBZ -DHAVE_GSL -DHAVE_MATH_EVAL -DHAVE_NETGEN
>  > -DHAVE_ANN_ -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_FLTK
>  >  -I/usr/local/include -I/usr/X11R6/include -DHAVE_64BIT_SIZE_T
>  > -I../../Common -I../../DataStr  -c parser.tab.cpp
>  > g++ -g -O2 -DHAVE_LIBZ -DHAVE_GSL -DHAVE_MATH_EVAL -DHAVE_NETGEN
>  > -DHAVE_ANN_ -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_FLTK
>  >  -I/usr/local/include -I/usr/X11R6/include -DHAVE_64BIT_SIZE_T
>  > -I../../Common -I../../DataStr  -c symbol_table.cpp
>  > g++ -g -O2 -DHAVE_LIBZ -DHAVE_GSL -DHAVE_MATH_EVAL -DHAVE_NETGEN
>  > -DHAVE_ANN_ -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_FLTK
>  >  -I/usr/local/include -I/usr/X11R6/include -DHAVE_64BIT_SIZE_T
>  > -I../../Common -I../../DataStr  -c xmath.cpp
>  > /usr/bin/ar ruvs ../../lib/libGmshMathEval.a matheval.o node.o
>  > scanner.yy.o parser.tab.o symbol_table.o xmath.o
>  > /usr/bin/ar: creating ../../lib/libGmshMathEval.a
>  > a - matheval.o
>  > a - node.o
>  > a - scanner.yy.o
>  > a - parser.tab.o
>  > a - symbol_table.o
>  > a - xmath.o
>  > ranlib ../../lib/libGmshMathEval.a
>  > make[1]: Leaving directory
>  > `/home/peiying/gmsh/gmsh-2.0.8/contrib/MathEval'
>  > g++ -g -O2 -o bin/gmsh -Llib -lGmshFltk -lGmshParser -lGmshGraphics
>  > -lGmshMesh -lGmshGeo -lGmshPlugin -lGmshPost -lGmshCommon
>  > -lGmshDataStr -lGmshNumeric -lGmshParallel -L/usr/local/lib
>  > -L/usr/X11R6/lib64 -lfltk_images -lpng -lz -ljpeg -lfltk_gl -lGLU 
-lGL
>  > -lfltk -ldl -lm -lXext -lX11 -ljpeg -lpng -lGmshANN -lGmshNetgen
>  > -lGmshMathEval -lgsl -lgslcblas -lz -lm
>  > 
> 
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: 

> 
>  > cannot find -lGmshFltk
>  > collect2: ld returned 1 exit status
>  > make: *** [link] Error 1
>  > peiying at pluto:~/gmsh/gmsh-2.0.8> 
>  > 
------------------------------------------------------------------------
>  >
>  > _______________________________________________
>  > gmsh mailing list
>  > gmsh at geuz.org
>  > http://www.geuz.org/mailman/listinfo/gmsh
>  > 
> 
> 
> 
----------------------------------------------------------------------------
> This message and any included attachments are from Siemens Medical 
> Solutions
> and are intended only for the addressee(s).
> The information contained herein may include trade secrets or privileged 
or
> otherwise confidential information. Unauthorized review, forwarding, 
> printing,
> copying, distributing, or using such information is strictly prohibited 
> and may
> be unlawful. If you received this message in error, or have reason to 
> believe
> you are not authorized to receive it, please promptly delete this 
> message and
> notify the sender by e-mail with a copy to 
> Central.SecurityOffice at siemens.com
> 
> Thank you
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh


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

----------------------------------------------------------------------------
This message and any included attachments are from Siemens Medical 
Solutions 
and are intended only for the addressee(s). 
The information contained herein may include trade secrets or privileged 
or 
otherwise confidential information. Unauthorized review, forwarding, 
printing, 
copying, distributing, or using such information is strictly prohibited 
and may 
be unlawful. If you received this message in error, or have reason to 
believe 
you are not authorized to receive it, please promptly delete this message 
and 
notify the sender by e-mail with a copy to 
Central.SecurityOffice at siemens.com 

Thank you

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20070920/711a0247/attachment.html>