[Gmsh] compilation error
Martijn Brouwer
martijn.brouwer at inter.nl.net
Wed Oct 7 22:02:35 CEST 2009
I have opencascade installed, with tons of header files
in /usr/include/opencascade. If I toggle the advanced settings on I see
that ccmake is able to find it: OCC_INC=/usr/include/opencascade.
Running ccmake DCMAKE_PREFIX_PATH=/usr/include/opencascade . does not
make any difference (as expected).
My opencascade installation does not have a config.h file.
I'll try the cvs snapshot.
Thanks for your help.
Martijn
On Tue, 2009-10-06 at 09:49 +0200, Christophe Geuzaine wrote:
> Ruth V. Sabariego wrote:
> > If you want to compile with OpenCascade, you should indicate where it is
> > when using cmake. E.g.:
> > cmake DCMAKE_PREFIX_PATH=/opt/local ..
> >
> > See the README.txt in Gmsh directory.
> >
>
> PS : some installation of OpenCascade seem to come with a config.h, some
> without. I've added a test in the configuration file to try to detect
> it: give it a try tomorrow with the nightly CVS snapshot.
>
>
>
> > Cheers,
> > Ruth
> >
> >
> > Martijn wrote:
> >> Hi,
> >> I tried to compile gmsh 2.4.2 on an ubuntu 9.10 system (gcc/g++/gfortran
> >> 4.4, fltk 1.1)
> >> During compilation, I get an error concerning a missing config.h:
> >>
> >> [ 0%] [ 0%] Building CXX object
> >> CMakeFiles/gmsh.dir/Geo/OCCVertex.cpp.o
> >> Building CXX object CMakeFiles/gmsh.dir/Geo/OCCEdge.cpp.o
> >> In file included
> >> from /home/martijn/Download/gmsh-2.4.2-source/Geo/OCCVertex.h:12,
> >>
> >> from /home/martijn/Download/gmsh-2.4.2-source/Geo/OCCVertex.cpp:10:
> >> /home/martijn/Download/gmsh-2.4.2-source/Geo/OCCIncludes.h:17:20: error:
> >> config.h: No such file or directory
> >> In file included
> >> from /home/martijn/Download/gmsh-2.4.2-source/Geo/OCCVertex.h:12,
> >>
> >> from /home/martijn/Download/gmsh-2.4.2-source/Geo/OCCEdge.h:12,
> >>
> >> from /home/martijn/Download/gmsh-2.4.2-source/Geo/OCCEdge.cpp:10:
> >> /home/martijn/Download/gmsh-2.4.2-source/Geo/OCCIncludes.h:17:20: error:
> >> config.h: No such file or directory
> >>
> >>
> >> CCmake was not able to find all it might need, but I do not have the
> >> feeling that this is the cause. I nevertheless show a part of the ccmake
> >> screenshot:
> >>
> >>
> >>> FLTK_DIR /usr/lib/fltk
> >>> FLTK_FLUID_EXECUTABLE /usr/bin/fluid
> >>> FLTK_JPEG FLTK_JPEG-NOTFOUND
> >>> FLTK_MATH_LIBRARY /usr/lib/libm.so
> >>> FLTK_PNG FLTK_PNG-NOTFOUND
> >>> FLTK_Z FLTK_Z-NOTFOUND
> >>>
> >>
> >> Does this result in reduced functionality?
> >>
> >> with kind regards,
> >>
> >> Martijn
> >>
> >>
> >> _______________________________________________
> >> gmsh mailing list
> >> gmsh at geuz.org
> >> http://www.geuz.org/mailman/listinfo/gmsh
> >>
> >
> >
> > --
> > Dr. Ir. Ruth V. Sabariego
> > University of Liege, Institut Montefiore,
> > Dept. of Electrical Engineering & Computer Science,
> > Applied & Computational Electromagnetics (ACE),
> > Sart Tilman Campus, Grande Traverse, 10 (B28), B-4000 LIEGE, Belgium
> > phone: +32-4-3663737 -- fax: +32-4-3662910 -- http://elap.montefiore.ulg.ac.be/
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > gmsh mailing list
> > gmsh at geuz.org
> > http://www.geuz.org/mailman/listinfo/gmsh
>
>