GithubHelp home page GithubHelp logo

Comments (2)

sven-hm avatar sven-hm commented on May 26, 2024
  1. Ok, sorry, the first differences were my fault, I took the wrong pythonocc release, now with 0.16.2 the ChFiKPart.i is the same.
    But ChFiKPart_headers.i is still produced with a different order of the includes and compiling leads to the same error quoted above ([...] error: ‘TopOpeBRepDS_DataStructure’ was not declared in this scope [...]). Here a detaiil from the git diff:
diff --git a/src/SWIG_files/wrapper/ChFiKPart_headers.i b/src/SWIG_files/wrapper/ChFiKPart_headers.i
index fc987fa..0026a71 100644
--- a/src/SWIG_files/wrapper/ChFiKPart_headers.i
+++ b/src/SWIG_files/wrapper/ChFiKPart_headers.i
@@ -18,1404 +18,1404 @@ along with pythonOCC.  If not, see <http://www.gnu.org/licenses/>.

 */
 %{
-#include<ChFiKPart_ComputeData.hxx>
-#include<ChFiKPart_ComputeData_CS.hxx>
-#include<ChFiKPart_ComputeData_Fcts.hxx>
-#include<ChFiKPart_ComputeData_FilPlnCon.hxx>
-#include<ChFiKPart_ComputeData_FilPlnCyl.hxx>
-#include<ChFiKPart_ComputeData_FilPlnPln.hxx>
 #include<ChFiKPart_ComputeData_Rotule.hxx>
+#include<ChFiKPart_ComputeData_FilPlnCyl.hxx>
 #include<ChFiKPart_DataMapIteratorOfRstMap.hxx>
 #include<ChFiKPart_DataMapNodeOfRstMap.hxx>
+#include<ChFiKPart_ComputeData_FilPlnCon.hxx>
 #include<ChFiKPart_RstMap.hxx>
+#include<ChFiKPart_ComputeData.hxx>
+#include<ChFiKPart_ComputeData_CS.hxx>
+#include<ChFiKPart_ComputeData_Fcts.hxx>
+#include<ChFiKPart_ComputeData_FilPlnPln.hxx>
 #include<TopOpeBRepDS.hxx>
-#include<TopOpeBRepDS_Array1OfDataMapOfIntegerListOfInterference.hxx>
-#include<TopOpeBRepDS_Association.hxx>
-#include<TopOpeBRepDS_BuildTool.hxx>
-#include<TopOpeBRepDS_Check.hxx>
-#include<TopOpeBRepDS_CheckStatus.hxx>
-#include<TopOpeBRepDS_Config.hxx>
-#include<TopOpeBRepDS_connex.hxx>
-#include<TopOpeBRepDS_Curve.hxx>
-#include<TopOpeBRepDS_CurveData.hxx>
-#include<TopOpeBRepDS_CurveExplorer.hxx>
-#include<TopOpeBRepDS_CurveIterator.hxx>
-#include<TopOpeBRepDS_CurvePointInterference.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfCheckStatus.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfIntegerListOfInterference.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfInterferenceListOfInterference.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfInterferenceShape.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfShapeListOfShapeOn1State.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfShapeState.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfMapOfCurve.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfMapOfIntegerShapeData.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfMapOfPoint.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfMapOfSurface.hxx>
 #include<TopOpeBRepDS_DataMapIteratorOfShapeSurface.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape.hxx>
 #include<TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfMapOfCurve.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfMapOfPoint.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfMapOfSurface.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfShapeSurface.hxx>
-#include<TopOpeBRepDS_DataMapOfCheckStatus.hxx>
-#include<TopOpeBRepDS_DataMapOfIntegerListOfInterference.hxx>
-#include<TopOpeBRepDS_DataMapOfInterferenceListOfInterference.hxx>
-#include<TopOpeBRepDS_DataMapOfInterferenceShape.hxx>
-#include<TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State.hxx>
-#include<TopOpeBRepDS_DataMapOfShapeState.hxx>
-#include<TopOpeBRepDS_DataStructure.hxx>   <-------
-#include<TopOpeBRepDS_define.hxx>
+#include<TopOpeBRepDS_Transition.hxx>
+#include<TopOpeBRepDS_GapFiller.hxx>
+#include<TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus.hxx>
+#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfIntegerListOfInterference.hxx>
+#include<TopOpeBRepDS_InterferenceIterator.hxx>
+#include<TopOpeBRepDS_PDataStructure.hxx>
 #include<TopOpeBRepDS_DoubleMapIteratorOfDoubleMapOfIntegerShape.hxx>
-#include<TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape.hxx>
-#include<TopOpeBRepDS_DoubleMapOfIntegerShape.hxx>
-#include<TopOpeBRepDS_DRAW.hxx>
-#include<TopOpeBRepDS_DSS.hxx>
+#include<TopOpeBRepDS_PointExplorer.hxx>
+#include<TopOpeBRepDS_CurveData.hxx>
+#include<TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State.hxx>
+#include<TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference.hxx>
+#include<TopOpeBRepDS_HDataStructure.hxx>
+#include<TopOpeBRepDS_ShapeSurface.hxx>
+#include<TopOpeBRepDS_ShapeWithState.hxx>
+#include<TopOpeBRepDS_DataMapIteratorOfMapOfSurface.hxx>
+#include<TopOpeBRepDS_ShapeData.hxx>
 #include<TopOpeBRepDS_DSX.hxx>
-#include<TopOpeBRepDS_Dumper.hxx>
-#include<TopOpeBRepDS_Edge3dInterferenceTool.hxx>
-#include<TopOpeBRepDS_EdgeInterferenceTool.hxx>
+#include<TopOpeBRepDS_DataMapOfIntegerListOfInterference.hxx>
 #include<TopOpeBRepDS_EdgeVertexInterference.hxx>
-#include<TopOpeBRepDS_EIR.hxx>
+#include<TopOpeBRepDS_PointData.hxx>
+#include<TopOpeBRepDS_InterferenceTool.hxx>
 #include<TopOpeBRepDS_Explorer.hxx>
-#include<TopOpeBRepDS_EXPORT.hxx>
-#include<TopOpeBRepDS_FaceEdgeInterference.hxx>
-#include<TopOpeBRepDS_FaceInterferenceTool.hxx>
-#include<TopOpeBRepDS_Filter.hxx>
-#include<TopOpeBRepDS_FIR.hxx>
-#include<TopOpeBRepDS_FaceInterferenceTool.hxx>
-#include<TopOpeBRepDS_Filter.hxx>
-#include<TopOpeBRepDS_FIR.hxx>
-#include<TopOpeBRepDS_GapFiller.hxx>
-#include<TopOpeBRepDS_GapTool.hxx>
+#include<TopOpeBRepDS_DataMapIteratorOfMapOfIntegerShapeData.hxx>
+#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfCheckStatus.hxx>
+#include<TopOpeBRepDS_define.hxx>
+#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfShapeListOfShapeOn1State.hxx>
+#include<TopOpeBRepDS_TOOL.hxx>
 #include<TopOpeBRepDS_GeometryData.hxx>
-#include<TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference.hxx>
-#include<TopOpeBRepDS_HDataStructure.hxx>
-#include<TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState.hxx>
-#include<TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint.hxx>
-#include<TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData.hxx>
+#include<TopOpeBRepDS_ListOfInterference.hxx>
+#include<TopOpeBRepDS_CheckStatus.hxx>
+#include<TopOpeBRepDS_SurfaceExplorer.hxx>
+#include<TopOpeBRepDS_DataMapOfShapeState.hxx>
+#include<TopOpeBRepDS_Marker.hxx>
+#include<TopOpeBRepDS_PointIterator.hxx>
+#include<TopOpeBRepDS_EIR.hxx>
+#include<TopOpeBRepDS_DataMapNodeOfMapOfCurve.hxx>
+#include<TopOpeBRepDS_SurfaceData.hxx>
+#include<TopOpeBRepDS_Filter.hxx>
+#include<TopOpeBRepDS_FaceEdgeInterference.hxx>
+#include<TopOpeBRepDS_ListNodeOfListOfInterference.hxx>
+#include<TopOpeBRepDS_DataMapOfInterferenceListOfInterference.hxx>
+#include<TopOpeBRepDS_Edge3dInterferenceTool.hxx>
 #include<TopOpeBRepDS_IndexedDataMapOfShapeWithState.hxx>
 #include<TopOpeBRepDS_IndexedDataMapOfVertexPoint.hxx>
-#include<TopOpeBRepDS_Interference.hxx>
-#include<TopOpeBRepDS_InterferenceIterator.hxx>
-#include<TopOpeBRepDS_InterferenceTool.hxx>
-#include<TopOpeBRepDS_Kind.hxx>
+#include<TopOpeBRepDS_SurfaceCurveInterference.hxx>
+#include<TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData.hxx>
+#include<TopOpeBRepDS_CurveIterator.hxx>
+#include<TopOpeBRepDS_BuildTool.hxx>
+#include<TopOpeBRepDS_Curve.hxx>
+#include<TopOpeBRepDS_repvg.hxx>
+#include<TopOpeBRepDS_Config.hxx>
+#include<TopOpeBRepDS_DataMapOfCheckStatus.hxx>
+#include<TopOpeBRepDS_Surface.hxx>
+#include<TopOpeBRepDS_DataMapNodeOfMapOfPoint.hxx>
+#include<TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape.hxx>
 #include<TopOpeBRepDS_ListIteratorOfListOfInterference.hxx>
-#include<TopOpeBRepDS_ListNodeOfListOfInterference.hxx>
-#include<TopOpeBRepDS_ListOfInterference.hxx>
+#include<TopOpeBRepDS_DoubleMapOfIntegerShape.hxx>
+#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfInterferenceShape.hxx>
+#include<TopOpeBRepDS_DataMapNodeOfShapeSurface.hxx>
 #include<TopOpeBRepDS_ListOfShapeOn1State.hxx>
+#include<TopOpeBRepDS_CurveExplorer.hxx>
+#include<TopOpeBRepDS_EXPORT.hxx>
+#include<TopOpeBRepDS_Interference.hxx>
+#include<TopOpeBRepDS_DataStructure.hxx>   <-------
[...]

I ran the generate_wrapper.py on linux with python 2.7.6.
How can I fix the order of the includes? Thanks!

from pythonocc-generator.

sven-hm avatar sven-hm commented on May 26, 2024

Ok, I could fix the include order using pythons list sort, see here.

But I don't understand why you get "well sorted" *_headers.i files?

from pythonocc-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.