<br><font size=2 face="sans-serif">Thanks a lot Professor Geuzaine!</font>
<br>
<br><font size=2 face="sans-serif">I probably will try to upgrade FLTK
to 1.1.7 first.</font>
<br>
<br><font size=2 face="sans-serif">Best Regards,</font>
<br>
<br><font size=2 face="sans-serif">Pei</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Christophe Geuzaine <cgeuzaine@ulg.ac.be></b>
</font>
<p><font size=1 face="sans-serif">09/20/2007 01:18 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">pei-ying.hsieh@siemens.com</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">Jean-Fran çois Remacle <jean-francois.remacle@uclouvain.be>,
gmsh@geuz.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Gmsh] gmsh 2.0.8 stable failed
to compile on SuSE 10.1 64</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt><br>
pei-ying.hsieh@siemens.com wrote:<br>
> <br>
> Hear Mr. Remacle:<br>
> <br>
> Thanks for the reply!<br>
> <br>
> When I tried to compile in gmsh/Fltk, I got an error: GUI.cpp:462:
<br>
> error: 'screen_xywh' is not a member of 'Fl'.<br>
<br>
OK, I see: Fl::screen_xywh() was only introduced in FLTK 1.1.7...<br>
<br>
Just replace the "GetFontSize()" routine in GUI.cpp with the
following code:<br>
<br>
int GetFontSize()<br>
{<br>
if(CTX.fontsize > 0){<br>
return CTX.fontsize;<br>
}<br>
else{<br>
int w = Fl::w();<br>
if(w <= 860) return 11;<br>
else if(w <= 1024) return 12;<br>
else if(w <= 1440) return 13;<br>
else if(w <= 1600) return 14;<br>
else return
15;<br>
}<br>
}<br>
<br>
This should work with older versions of FLTK, too.<br>
<br>
The fix will be in tomorrow's nightly source snapshot.<br>
<br>
Thanks for the report,<br>
<br>
Ch.<br>
<br>
<br>
> <br>
> The version of fltk I am using is 1.1.6. What really puzzles
me is <br>
> that, I have no problem compiling gmsh released prior to <br>
> gmsh-2.0.8-nightly-20070529. I will think that, fltk version
is not the <br>
> problem here.<br>
> <br>
> When configured to compile without gui, make was successful.<br>
> <br>
> Any suggestion?<br>
> <br>
> Best Regards,<br>
> <br>
> Pei<br>
> <br>
> --------------------------------------------------------<br>
> Pei-Ying Hsieh, Ph.D.<br>
> Staff Engineer<br>
> Siemens Medical Solutions Diagnostics<br>
> 511 Benedict Ave., MS 32<br>
> Tarrytown, NY 10591<br>
> phone: 914-524-3146<br>
> fax: 914-524-3128<br>
> <br>
> <br>
> *Jean-François Remacle <jean-francois.remacle@uclouvain.be>*<br>
> <br>
> 09/20/2007 03:25 AM<br>
> <br>
> <br>
> To<br>
> pei-ying.hsieh@siemens.com<br>
> cc<br>
> gmsh@geuz.org<br>
> Subject<br>
> Re:
[Gmsh] gmsh 2.0.8 stable failed to compile on SuSE 10.1 64<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> pei-ying.hsieh@siemens.com a écrit :<br>
> ><br>
> > Dear GMSH developers:<br>
> ><br>
> > I had no problem compiling gmsh-2.0.8-nightly-20070529
(and any<br>
> > release before that) on a SuSE 10.1 64-bit OS.<br>
> > I downloaded gmsh-2.0.8-stable-source and it failed to
compile.<br>
> > Attached is the error. Any suggestion will
be highly<br>
> > appreciated.<br>
> ><br>
> It looks like you were not able to compile one of the libraries of
gmsh,<br>
> libGlshFltk (the GUI) for which the<br>
> sources are in gmsh/Fltk. Go into that directory and try to make the<br>
> library. Perhaps you have a very old<br>
> version of fltk ??<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> > Best Regards,<br>
> ><br>
> > Pei<br>
> > ------------------------------------<br>
> > a - libsrc/general/symbolta.o<br>
> > a - libsrc/general/mystring.o<br>
> > a - nglib_addon.o<br>
> > ranlib ../../lib/libGmshNetgen.a<br>
> > make[1]: Leaving directory `/home/peiying/gmsh/gmsh-2.0.8/contrib/Netgen'<br>
> > make[1]: Entering directory<br>
> > `/home/peiying/gmsh/gmsh-2.0.8/contrib/MathEval'<br>
> > g++ -g -O2 -DHAVE_LIBZ -DHAVE_GSL -DHAVE_MATH_EVAL -DHAVE_NETGEN<br>
> > -DHAVE_ANN_ -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_FLTK<br>
> > -I/usr/local/include -I/usr/X11R6/include -DHAVE_64BIT_SIZE_T<br>
> > -I../../Common -I../../DataStr -c matheval.cpp<br>
> > g++ -g -O2 -DHAVE_LIBZ -DHAVE_GSL -DHAVE_MATH_EVAL -DHAVE_NETGEN<br>
> > -DHAVE_ANN_ -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_FLTK<br>
> > -I/usr/local/include -I/usr/X11R6/include -DHAVE_64BIT_SIZE_T<br>
> > -I../../Common -I../../DataStr -c node.cpp<br>
> > g++ -g -O2 -DHAVE_LIBZ -DHAVE_GSL -DHAVE_MATH_EVAL -DHAVE_NETGEN<br>
> > -DHAVE_ANN_ -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_FLTK<br>
> > -I/usr/local/include -I/usr/X11R6/include -DHAVE_64BIT_SIZE_T<br>
> > -I../../Common -I../../DataStr -c scanner.yy.cpp<br>
> > g++ -g -O2 -DHAVE_LIBZ -DHAVE_GSL -DHAVE_MATH_EVAL -DHAVE_NETGEN<br>
> > -DHAVE_ANN_ -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_FLTK<br>
> > -I/usr/local/include -I/usr/X11R6/include -DHAVE_64BIT_SIZE_T<br>
> > -I../../Common -I../../DataStr -c parser.tab.cpp<br>
> > g++ -g -O2 -DHAVE_LIBZ -DHAVE_GSL -DHAVE_MATH_EVAL -DHAVE_NETGEN<br>
> > -DHAVE_ANN_ -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_FLTK<br>
> > -I/usr/local/include -I/usr/X11R6/include -DHAVE_64BIT_SIZE_T<br>
> > -I../../Common -I../../DataStr -c symbol_table.cpp<br>
> > g++ -g -O2 -DHAVE_LIBZ -DHAVE_GSL -DHAVE_MATH_EVAL -DHAVE_NETGEN<br>
> > -DHAVE_ANN_ -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_FLTK<br>
> > -I/usr/local/include -I/usr/X11R6/include -DHAVE_64BIT_SIZE_T<br>
> > -I../../Common -I../../DataStr -c xmath.cpp<br>
> > /usr/bin/ar ruvs ../../lib/libGmshMathEval.a matheval.o
node.o<br>
> > scanner.yy.o parser.tab.o symbol_table.o xmath.o<br>
> > /usr/bin/ar: creating ../../lib/libGmshMathEval.a<br>
> > a - matheval.o<br>
> > a - node.o<br>
> > a - scanner.yy.o<br>
> > a - parser.tab.o<br>
> > a - symbol_table.o<br>
> > a - xmath.o<br>
> > ranlib ../../lib/libGmshMathEval.a<br>
> > make[1]: Leaving directory<br>
> > `/home/peiying/gmsh/gmsh-2.0.8/contrib/MathEval'<br>
> > g++ -g -O2 -o bin/gmsh -Llib -lGmshFltk -lGmshParser -lGmshGraphics<br>
> > -lGmshMesh -lGmshGeo -lGmshPlugin -lGmshPost -lGmshCommon<br>
> > -lGmshDataStr -lGmshNumeric -lGmshParallel -L/usr/local/lib<br>
> > -L/usr/X11R6/lib64 -lfltk_images -lpng -lz -ljpeg -lfltk_gl
-lGLU -lGL<br>
> > -lfltk -ldl -lm -lXext -lX11 -ljpeg -lpng -lGmshANN -lGmshNetgen<br>
> > -lGmshMathEval -lgsl -lgslcblas -lz -lm<br>
> > <br>
> /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld:
<br>
> <br>
> > cannot find -lGmshFltk<br>
> > collect2: ld returned 1 exit status<br>
> > make: *** [link] Error 1<br>
> > peiying@pluto:~/gmsh/gmsh-2.0.8> <br>
> > ------------------------------------------------------------------------<br>
> ><br>
> > _______________________________________________<br>
> > gmsh mailing list<br>
> > gmsh@geuz.org<br>
> > http://www.geuz.org/mailman/listinfo/gmsh<br>
> > <br>
> <br>
> <br>
> ----------------------------------------------------------------------------<br>
> This message and any included attachments are from Siemens Medical
<br>
> Solutions<br>
> and are intended only for the addressee(s).<br>
> The information contained herein may include trade secrets or privileged
or<br>
> otherwise confidential information. Unauthorized review, forwarding,
<br>
> printing,<br>
> copying, distributing, or using such information is strictly prohibited
<br>
> and may<br>
> be unlawful. If you received this message in error, or have reason
to <br>
> believe<br>
> you are not authorized to receive it, please promptly delete this
<br>
> message and<br>
> notify the sender by e-mail with a copy to <br>
> Central.SecurityOffice@siemens.com<br>
> <br>
> Thank you<br>
> <br>
> <br>
> ------------------------------------------------------------------------<br>
> <br>
> _______________________________________________<br>
> gmsh mailing list<br>
> gmsh@geuz.org<br>
> http://www.geuz.org/mailman/listinfo/gmsh<br>
<br>
<br>
-- <br>
Prof. Christophe Geuzaine<br>
University of Liege, Electrical Engineering and Computer Science<br>
http://www.montefiore.ulg.ac.be/~geuzaine<br>
<br>
----------------------------------------------------------------------------<br>
This message and any included attachments are from Siemens Medical Solutions
<br>
and are intended only for the addressee(s). <br>
The information contained herein may include trade secrets or privileged
or <br>
otherwise confidential information. Unauthorized review, forwarding, printing,
<br>
copying, distributing, or using such information is strictly prohibited
and may <br>
be unlawful. If you received this message in error, or have reason to believe
<br>
you are not authorized to receive it, please promptly delete this message
and <br>
notify the sender by e-mail with a copy to Central.SecurityOffice@siemens.com
<br>
<br>
Thank you<br>
</tt></font>
<br>