Ticket #65631: patch-FbdReader-build.diff

File patch-FbdReader-build.diff, 3.0 KB (added by mbrethen, 2 years ago)
  • inc/FbdReader.hxx

    diff -ur FbdReader.orig/inc/FbdReader.hxx FbdReader/inc/FbdReader.hxx
    old new  
    7171
    7272#include <GeomPlate_CurveConstraint.hxx>
    7373#include <GeomAdaptor_Curve.hxx>
    74 #include <GeomAdaptor_HCurve.hxx>
    7574#include <GeomPlate_CurveConstraint.hxx>
    7675#include <GeomPlate_BuildPlateSurface.hxx>
    7776#include <GeomPlate_MakeApprox.hxx>
  • src/Makefile

    diff -ur FbdReader.orig/src/Makefile FbdReader/src/Makefile
    old new  
    99#Example makefile: (Source: https://www.cs.swarthmore.edu/~newhall/unixhelp/howto_makefiles.html)
    1010
    1111#Define path to Open Cascade library
    12 OCCT = /usr/local/opencascade-7.1.0/bin/lin64/gcc/lib
     12OCCT = @PREFIX@/lib
    1313#Define path to Open Cascade headers
    14 OCCINC = /usr/local/opencascade-7.1.0/inc
     14OCCINC = @PREFIX@/include/opencascade
    1515#Define path to CadReader
    16 PROGPATH = /usr/local/cgxCadTools/FbdReader
     16PROGPATH = ../../FbdReader
    1717
    18 # define the C compiler to use
    19 CC = gcc
    2018
    2119# define any compile-time flags
    22 CFLAGS = -Wall -std=c++11
     20CXXFLAGS += -Wall -std=c++11
     21LDFLAGS +=
    2322
    2423# define directories containing header files: The OpenCASCADE Libraries are in the inc direcory of OpenCASCADE
    2524INCLUDES = -I$(PROGPATH)/inc -I$(OCCINC)
     
    2928
    3029# define any libraries to link into executable: The OpenCASCADE Libraries are in the lib direcory of OpenCASCADE
    3130LIBS =  -L$(OCCT) \
    32  -L/usr/local/opencascade-7.1.0/bin/lin64/gcc/lib -lTKBinL -lTKBin -lTKBinTObj -lTKBinXCAF -lTKBool -lTKBO -lTKBRep -lTKCAF \
     31 -lTKBinL -lTKBin -lTKBinTObj -lTKBinXCAF -lTKBool -lTKBO -lTKBRep -lTKCAF \
    3332-lTKCDF -lTKDCAF -lTKDraw -lTKernel -lTKFeat -lTKFillet -lTKG2d -lTKG3d -lTKGeomAlgo -lTKGeomBase -lTKHLR -lTKIGES -lTKLCAF -lTKMath  -lTKMesh \
    3433-lTKMeshVS -lTKOffset -lTKOpenGl -lTKPrim -lTKQADraw -lTKService -lTKShHealing -lTKStdL -lTKStd -lTKSTEP209 -lTKSTEPAttr -lTKSTEPBase -lTKSTEP \
    3534-lTKSTL  -lTKTObjDRAW -lTKTObj -lTKTopAlgo -lTKTopTest -lTKV3d -lTKVCAF -lTKViewerTest -lTKVRML -lTKXCAF -lTKXDEDRAW -lTKXDEIGES -lTKXDESTEP \
    36 -lTKXMesh -lTKXmlL -lTKXml -lTKXmlTObj -lTKXmlXCAF -lTKXSBase -lTKXSDRAW -lstdc++ -lm
     35-lTKXMesh -lTKXmlL -lTKXml -lTKXmlTObj -lTKXmlXCAF -lTKXSBase -lTKXSDRAW -lm
    3736
    3837
    3938# define the C++ source files
     
    7271        @echo fbd2cad has been compiled successfully
    7372
    7473$(MAIN): $(OBJS)
    75         $(CC) $(CFLAGS) $(INCLUDES) -o $(MAIN) $(OBJS) $(LFLAGS) $(LIBS)
     74        $(CXX) $(CXXFLAGS) $(LDFLAGS) $(INCLUDES) -o $(MAIN) $(OBJS) $(LFLAGS) $(LIBS)
    7675
    7776# this is a suffix replacement rule for building .o's from .c's
    7877# it uses automatic variables $<: the name of the prerequisite of
    7978# the rule(a .c file) and $@: the name of the target of the rule (a .o file)
    8079# (see the gnu make manual section about automatic variables)
    8180.cpp.o:
    82         $(CC) $(CFLAGS) $(INCLUDES) -c $<  -o $@
     81        $(CXX) $(CXXFLAGS) $(INCLUDES) -c $<  -o $@
    8382
    8483clean:
    8584        $(RM) *.o *~ $(MAIN)