View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004707 | FreeCAD | Bug | public | 2021-07-19 03:35 | 2021-08-20 15:02 |
Reporter | kevinnguyen2020 | Assigned To | chennes | ||
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | won't fix | ||
Product Version | 0.20 | ||||
Summary | 0004707: 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 Reproduce | echo "*****************************************************" 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 | ||||
Tags | No tags attached. | ||||
FreeCAD Information | |||||
|
Does this issue persist? I haven't seen other reports of this compilation failure -- did you start a forum topic? |
|
The release of oce-0.17 was 2015. Is it possible to use a newer lib? @chennes: Exits a rule for minimum of opencascade? |
|
@gift good catch, I didn't even see that version. Our minimum requirements are list on the wiki here: https://wiki.freecadweb.org/0.20_Development_Cycle -- Technically, we don't support OCE at all anymore, at least according to https://wiki.freecadweb.org/OpenCASCADE |
|
@chennes shall we label 'wont fix' and mention something about OCE not supported anymore? |
|
Good suggestion. @kevinnguyen2020, if you want to start a forums discussion about reinstating support for OCE I think that's the most appropriate path forward, we aren't supporting compiling against OCE at this time. |
Date Modified | Username | Field | Change |
---|---|---|---|
2021-07-19 03:35 | kevinnguyen2020 | New Issue | |
2021-08-11 17:32 | chennes | Assigned To | => chennes |
2021-08-11 17:32 | chennes | Status | new => feedback |
2021-08-11 17:32 | chennes | Note Added: 0015807 | |
2021-08-11 19:55 | gift | Note Added: 0015808 | |
2021-08-11 20:03 | chennes | Note Added: 0015809 | |
2021-08-11 20:59 | chennes | Note Edited: 0015809 | |
2021-08-20 14:21 | Kunda1 | Note Added: 0015832 | |
2021-08-20 15:02 | chennes | Status | feedback => closed |
2021-08-20 15:02 | chennes | Resolution | open => won't fix |
2021-08-20 15:02 | chennes | Note Added: 0015841 |