> On 16 Oct 2018, at 04:01, Oleg Kmechak <[email protected]> wrote: > > Hello, > > Build of GMSH and running test was done by 100%. > > But when I am trying to use it in my cmake project, it poduces tons of > linking erros(some of them, full list in attachment): > > [build] /home/oleg/Source/gmsh/Geo/GModelIO_OCC.cpp:173: error: undefined > reference to 'TCollection_BasicMapIterator::Next()' > [build] /usr/include/oce/TopTools_DataMapOfIntegerShape.hxx:47: error: > undefined reference to 'TopTools_DataMapOfIntegerShape::Clear()' > [build] /usr/include/oce/TopTools_DataMapOfShapeInteger.hxx:47: error: > undefined reference to 'TopTools_DataMapOfShapeInteger::Clear()' > [build] /home/oleg/Source/gmsh/Geo/GModelIO_OCC.cpp:2510: error: undefined > reference to 'BRepAlgoAPI_BooleanOperation::Generated(TopoDS_Shape const&) > [build] /usr/include/FL/Fl_Tooltip.H:72: error: undefined reference to > 'Fl_Tooltip::size_' > > Example of configuration in Cmake file: > > message("GMSH setup") > include_directories(/usr/local/gmsh/include) > link_directories(/usr/local/gmsh/lib) > add_executable(riversim ${sources}) > target_link_libraries(riversim libgmsh.a) >
If you link with the static gmsh lib you'll also need to specify all the additional dependencies. If you have trouble compiling/linking, I would suggest downloading the binary gmsh SDK from the website - we distribute it exactly for that purpose. > With regards, > Oleg Kmechak > <linkingerror.zip>_______________________________________________ > gmsh mailing list > [email protected] > http://onelab.info/mailman/listinfo/gmsh — Prof. Christophe Geuzaine University of Liege, Electrical Engineering and Computer Science http://www.montefiore.ulg.ac.be/~geuzaine Free software: http://gmsh.info | http://getdp.info | http://onelab.info _______________________________________________ gmsh mailing list [email protected] http://onelab.info/mailman/listinfo/gmsh
