[Gmsh] installing gmsh from source

Zahi Batkilin szahib at gmail.com
Tue Apr 21 05:55:12 CEST 2009


hello

I am using gmsh for some time now. Untill I installed gmsh from a debian
package.
I tried to install the latest version from source (gmsh 2.3.1) from source.
The following error appeared:

szahib at szahib-laptop:~/gmsh-2.3.1$ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for fltk-config... no
configure: error: Could not find fltk-config. Try --with-fltk-prefix?

What shoul I do?

I installed fltk and got the following message:

 Gmsh has been configured for Linux with the following options: Fltk
TreeBrowser Ann Gmm Chaco Metis Netgen MathEval Have64BitSizeT

C compiler: gcc
C++ compiler: g++
Linker: g++
Optimization flags: -g -O2

gut when I tried to use make I got the error:

/usr/bin/ar ruvs ../../lib/libGmshNetgen.a *.o libsrc/*/*.o
ranlib ../../lib/libGmshNetgen.a
make[1]: Leaving directory `/home/szahib/gmsh-2.3.1/contrib/Netgen'
make[1]: Entering directory `/home/szahib/gmsh-2.3.1/contrib/MathEval'
make[1]: `../../lib/libGmshMathEval.a' is up to date.
make[1]: Leaving directory `/home/szahib/gmsh-2.3.1/contrib/MathEval'
g++ -g -O2 -o bin/gmsh -Llib -lGmshFltk -lGmshCommon -lGmshMesh -lGmshGeo
-lGmshPost -lGmshPlugin -lGmshCommon -lGmshGraphics -lGmshParser
-lGmshNumeric -lGmshTreeBrowser -Wl,-Bsymbolic-functions -lfltk_images
-lfltk_gl -lfltk -lGLU -lGL -lGmshANN -lGmshChaco -lGmshMetis -lGmshNetgen
-lGmshMathEval -lm
/usr/bin/ld: cannot find -lGmshFltk
collect2: ld returned 1 exit status
make: *** [link] Error 1

What should I do?

Best
Tsachi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20090421/50a56d93/attachment.html>