Personal tools
You are here: Home Forum Install & build FYI fixed NETGEN plugin configuration problem

FYI fixed NETGEN plugin configuration problem

Up to Install & build
  • FYI fixed NETGEN plugin configuration problem

    Posted by Todd Martin at May 30. 2007
    Hi

    I compiled netgen for Salome with the necessary patches. Then I tried to build the NETGEN plugin.

    It seems the configuration script creates a temporary libNETGEN.so library in order to test the correct installation of the netgen object files. But the configuration failed due to some undefined references. (See the config.log file below).

    I fixed this problem by adding "csgparser.o" & "extrusion.o" to the $CXX flag in the configuration file.

    Presumably my version of netgen has moved some of the code into different units.

    From the configuration script
    -------------------------------------

    Netgen_ok=yes;ar x "$NETGEN_LIBS_DIR/libnginterface.a";
            ar x "$NETGEN_LIBS_DIR/libocc.a";
                ar x "$NETGEN_LIBS_DIR/libcsg.a";
                ar x "$NETGEN_LIBS_DIR/libgprim.a";
                ar x "$NETGEN_LIBS_DIR/libmesh.a";
                ar x "$NETGEN_LIBS_DIR/libopti.a";
                ar x "$NETGEN_LIBS_DIR/libgen.a";
                ar x "$NETGEN_LIBS_DIR/libla.a";
                ar x "$NETGEN_LIBS_DIR/libstlgeom.a";
                ar x "$NETGEN_LIBS_DIR/libgeom2d.a";
                $CXX -shared linopt.o bfgs.o linsearch.o global.o bisect.o meshtool.o refine.o ruler3.o improve3.o adfront3.o tetrarls.o prism2rls.o profiler.o pyramidrls.o pyramid2rls.o netrule3.o ruler2.o meshclass.o improve2.o adfront2.o netrule2.o triarls.o geomsearch.o secondorder.o meshtype.o parser3.o quadrls.o specials.o parser2.o meshing2.o meshing3.o meshfunc.o localh.o improve2gen.o delaunay.o boundarylayer.o msghandler.o meshfunc2d.o smoothing2.o smoothing3.o topology.o curvedelems_new.o clusters.o zrefine.o ngexception.o geomtest3d.o geom2d.o geom2dmesh.o geom3d.o adtree.o transform3d.o geomfuncs.o polynomial.o densemat.o vector.o basemat.o sparsmat.o algprim.o brick.o manifold.o bspline2d.o meshsurf.o csgeom.o polyhedra.o curve2d.o singularref.o edgeflw.o solid.o explicitcurve2d.o specpoin.o gencyl.o revolution.o genmesh.o genmesh2d.o spline3d.o surface.o identify.o triapprox.o meshstlsurface.o stlline.o stltopology.o stltool.o stlgeom.o stlgeomchart.o stlgeommesh.o table.o optmem.o spbita2d.o hashtabl.o sort.o flags.o seti.o bitarray.o array.o symbolta.o mystring.o moveablemem.o spline.o splinegeometry.o ngnewdelete.o nglib.o hprefinement.o Partition_Inter2d.o Partition_Loop.o Partition_Loop3d.o Partition_Inter3d.o Partition_Loop2d.o Partition_Spliter.o occgeom.o occgenmesh.o occmeshsurf.o -o libNETGEN.so;
                rm -rf linopt.o bfgs.o linsearch.o global.o bisect.o meshtool.o refine.o ruler3.o improve3.o adfront3.o tetrarls.o prism2rls.o profiler.o pyramidrls.o pyramid2rls.o netrule3.o ruler2.o meshclass.o improve2.o adfront2.o netrule2.o triarls.o geomsearch.o secondorder.o meshtype.o parser3.o quadrls.o specials.o parser2.o meshing2.o meshing3.o meshfunc.o localh.o improve2gen.o delaunay.o boundarylayer.o msghandler.o meshfunc2d.o smoothing2.o smoothing3.o topology.o curvedelems_new.o clusters.o zrefine.o ngexception.o geomtest3d.o geom2d.o geom2dmesh.o geom3d.o adtree.o transform3d.o geomfuncs.o polynomial.o densemat.o vector.o basemat.o sparsmat.o algprim.o brick.o manifold.o bspline2d.o meshsurf.o csgeom.o polyhedra.o curve2d.o singularref.o edgeflw.o solid.o explicitcurve2d.o specpoin.o gencyl.o revolution.o genmesh.o genmesh2d.o spline3d.o surface.o identify.o triapprox.o meshstlsurface.o stlline.o stltopology.o stltool.o stlgeom.o stlgeomchart.o stlgeommesh.o table.o optmem.o spbita2d.o hashtabl.o sort.o flags.o seti.o bitarray.o array.o symbolta.o mystring.o moveablemem.o spline.o splinegeometry.o ngnewdelete.o nglib.o hprefinement.o Partition_Inter2d.o Partition_Loop.o Partition_Loop3d.o Partition_Inter3d.o Partition_Loop2d.o Partition_Spliter.o occgeom.o occgenmesh.o occmeshsurf.o csgparser.o dynamicmem.o extrusion.o occconstruction.o parthreads.o readuser.o writeabaqus.o writediffpack.o writeelmer.o writefeap.o writefluent.o writegmsh.o writejcm.o writepermas.o writetecplot.o writetochnog.o writeuser.o wuchemnitz.o
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5

    Netgen_ok=no
    fi


    From the config.log file
    ------------------------------------------

    configure:14225: g++ -o conftest -I/opt/netgen4salome//include -DOCC_VERSION_MAJOR=6 -DOCC_VERSION_MINOR=2 -DOCC_VERSION_MAINTENANCE=0 -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -DOCC_CONVERT_SIGNALS -I/opt/OpenCASCADE6.2.0/ros/inc  -g -D_DEBUG_  -pthread -I/opt/netgen4salome//include -DOCC_VERSION_MAJOR=6 -DOCC_VERSION_MINOR=2 -DOCC_VERSION_MAINTENANCE=0 -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -DOCC_CONVERT_SIGNALS -I/opt/OpenCASCADE6.2.0/ros/inc  -L. -lNETGEN -L/opt/OpenCASCADE6.2.0/ros/Linux/lib  -lTKBRep -lTKShHealing -lTKSTEP -lTKXSBase -lTKIGES -lTKSTL -lTKTopAlgo  conftest.cc -lnsl -lm -ldl   >&5
    In file included from /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/backward/iostream.h:31,
                     from conftest.cc:34:
    /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated.
    /usr/bin/ld: warning: libstdc++.so.5, needed by /opt/OpenCASCADE6.2.0/ros/Linux/lib/libTKBRep.so, may conflict with libstdc++.so.6
    ./libNETGEN.so: undefined reference to `netgen::operator>>(netgen::CSGScanner&, double&;)'
    ./libNETGEN.so: undefined reference to `netgen::ExtrusionFace::GetRawData(netgen::ARRAY&;) const'
    ./libNETGEN.so: undefined reference to `netgen::ExtrusionFace::ExtrusionFace(netgen::ARRAY const&;)'
    ./libNETGEN.so: undefined reference to `netgen::operator>>(netgen::CSGScanner&, char)'
    ./libNETGEN.so: undefined reference to `netgen::operator>>(netgen::CSGScanner&, int&;)'
    ./libNETGEN.so: undefined reference to `typeinfo for netgen::ExtrusionFace'
    collect2: ld returned 1 exit status
    configure:14231: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
Powered by Ploneboard
Document Actions