View Issue Details

IDProjectCategoryView StatusLast Update
0004707FreeCADBugpublic2021-07-19 03:35
Reporterkevinnguyen2020 Assigned To 
PriorityhighSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version0.20 
Summary0004707: error: cannot convert TColStd_Array1OfReal to Standard_Integer
Description/home/kevin/DATA/EnziinStudio/ubuntu/freecad-source/src/Mod/Part/App/BezierCurvePyImp.cpp: In member function ‘PyObject* Part::BezierCurvePy::interpolate(PyObject*)’:
/home/kevin/DATA/EnziinStudio/ubuntu/freecad-source/src/Mod/Part/App/BezierCurvePyImp.cpp:441:65: error: cannot convert ‘TColStd_Array1OfReal’ to ‘Standard_Integer’ {aka ‘int’}
  441 | BSplCLib::EvalBsplineBasis(row.size()-1, num_poles, knots, params(cons_idx), first_non_zero, bezier_eval, Standard_False);
      | ^~~~~
      | |
      | TColStd_Array1OfReal
In file included from /home/kevin/DATA/EnziinStudio/ubuntu/freecad-source/src/Mod/Part/App/BezierCurvePyImp.cpp:32:
/usr/lib/x86_64-linux-gnu/oce-0.17/../../../include/oce/BSplCLib.hxx:694:155: note: initializing argument 3 of ‘static Standard_Integer BSplCLib::EvalBsplineBasis(Standard_Integer, Standard_Integer, Standard_Integer, const TColStd_Array1OfReal&, Standard_Real, Standard_Integer&, math_Matrix&, Standard_Boolean)’
  694 | Standard_EXPORT static Standard_Integer EvalBsplineBasis (const Standard_Integer Side, const Standard_Integer DerivativeOrder, const Standard_Integer Order, const TColStd_Array1OfReal& FlatKnots, const Standard_Real Parameter, Standard_Integer& FirstNonZeroBsplineIndex, math_Matrix& BsplineBasis, const Standard_Boolean isPeriodic = Standard_False) ;
      | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
[ 51%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/AttachEnginePyImp.cpp.o
make[2]: *** [src/Mod/Part/App/CMakeFiles/Part.dir/build.make:1549: src/Mod/Part/App/CMakeFiles/Part.dir/BezierCurvePyImp.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:3399: src/Mod/Part/App/CMakeFiles/Part.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 61%] Built target FreeCADGui
make: *** [Makefile:130: all] Error 2
Steps To Reproduceecho "*****************************************************"
echo "git pull..."
echo "*****************************************************"

cd freecad-source
git pull

cd ..

cd freecad-build

echo "*****************************************************"
echo "Building..."
echo "*****************************************************"

cmake -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCMAKE_BUILD_TYPE=Debug ../freecad-source

make -j$(nproc --ignore=2)

# ==> errors
TagsNo tags attached.
FreeCAD Information

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-07-19 03:35 kevinnguyen2020 New Issue