[Gmsh] compilation error

Christophe Geuzaine cgeuzaine at ulg.ac.be
Tue Oct 6 09:49:30 CEST 2009


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


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