Error:
Code: Select all
[ 0%] Building CXX object
src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/src/Driver/Driver_Mesh.cpp.o
cd /builddir/build/BUILD/FreeCAD-0.18.4/build/src/3rdParty/salomesmesh &&
/usr/bin/c++ -DCSFDB -DDriver_EXPORTS -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DLIN
-DOCC_CONVERT_SIGNALS -D_OCC64 -I/builddir/build/BUILD/FreeCAD-0.18.4/build
-I/builddir/build/BUILD/FreeCAD-0.18.4/build/src
-I/builddir/build/BUILD/FreeCAD-0.18.4/src
-I/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/src/SMDS
-I/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/src/Driver
-I/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/src/DriverUNV
-I/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/src/DriverDAT
-I/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/src/DriverSTL
-I/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/src/StdMeshers
-I/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/inc
-I/builddir/build/BUILD/FreeCAD-0.18.4/build/src/3rdParty/salomesmesh
-I/usr/include/opencascade -I/usr/include/med -Wall -Wextra -Wno-write-strings
-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-std=c++11 -D_OCC64 -Wno-sign-compare -Wno-reorder -Wno-switch
-Wno-unused-variable -Wno-unused-but-set-variable -Wno-comment
-Wno-unused-parameter -fPIC -o
CMakeFiles/Driver.dir/src/Driver/Driver_Mesh.cpp.o -c
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/src/Driver/Driver_Mesh.cpp
In file included from
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/inc/SMDS_VtkVolume.hxx:26,
from
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/inc/SMDS_Mesh.hxx:45,
from
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/src/SMDS/SMDS_BallElement.cpp:28:
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/inc/SMDS_UnstructuredGrid.hxx:
In member function 'vtkCellLinks* SMDS_UnstructuredGrid::GetLinks()':
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/inc/SMDS_UnstructuredGrid.hxx:98:12:
error: invalid user-defined conversion from
'vtkSmartPointer<vtkAbstractCellLinks>' to 'vtkCellLinks*' [-fpermissive]
98 | return Links;
| ^~~~~
In file included from /usr/include/vtk/vtkGenericDataArray.h:73,
from /usr/include/vtk/vtkAOSDataArrayTemplate.h:36,
from /usr/include/vtk/vtkCellArray.h:141,
from /usr/include/vtk/vtkUnstructuredGrid.h:31,
from
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/inc/SMDS_VtkEdge.hxx:30,
from
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/inc/SMDS_Mesh.hxx:43,
from
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/src/SMDS/SMDS_BallElement.cpp:28:
/usr/include/vtk/vtkSmartPointer.h:188:3: note: candidate is:
'vtkSmartPointer<ArrayType>::operator T*() const [with T =
vtkAbstractCellLinks]' (near match)
188 | operator T*() const noexcept { return static_cast<T*>(this->Object);
}
| ^~~~~~~~
/usr/include/vtk/vtkSmartPointer.h:188:3: note: no known conversion from
'vtkAbstractCellLinks*' to 'vtkCellLinks*'
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/src/SMDS/SMDS_BallElement.cpp:
In member function 'bool SMDS_BallElement::ChangeNode(const SMDS_MeshNode*)':
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/src/SMDS/SMDS_BallElement.cpp:72:38:
error: binding reference of type 'const vtkIdType*&' {aka 'const long long
int*&'} to 'vtkIdType*' {aka 'long long int*'} discards qualifiers
72 | grid->GetCellPoints(myVtkID, npts, pts);
| ^~~
In file included from
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/inc/SMDS_VtkEdge.hxx:30,
from
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/inc/SMDS_Mesh.hxx:43,
from
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/src/SMDS/SMDS_BallElement.cpp:28:
/usr/include/vtk/vtkUnstructuredGrid.h:196:75: note: initializing argument 3
of 'void vtkUnstructuredGrid::GetCellPoints(vtkIdType, vtkIdType&, const
vtkIdType*&)'
196 | void GetCellPoints(vtkIdType cellId, vtkIdType& npts, vtkIdType
const*& pts)
|
~~~~~~~~~~~~~~~~~~^~~
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/src/SMDS/SMDS_BallElement.cpp:
In member function 'virtual const SMDS_MeshNode* SMDS_BallElement::GetNode(int)
const':
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/src/SMDS/SMDS_BallElement.cpp:87:39:
error: binding reference of type 'const vtkIdType*&' {aka 'const long long
int*&'} to 'vtkIdType*' {aka 'long long int*'} discards qualifiers
87 | grid->GetCellPoints( myVtkID, npts, pts );
| ^~~
In file included from
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/inc/SMDS_VtkEdge.hxx:30,
from
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/inc/SMDS_Mesh.hxx:43,
from
/builddir/build/BUILD/FreeCAD-0.18.4/src/3rdParty/salomesmesh/src/SMDS/SMDS_BallElement.cpp:28:
/usr/include/vtk/vtkUnstructuredGrid.h:196:75: note: initializing argument 3
of 'void vtkUnstructuredGrid::GetCellPoints(vtkIdType, vtkIdType&, const
vtkIdType*&)'
196 | void GetCellPoints(vtkIdType cellId, vtkIdType& npts, vtkIdType
const*& pts)
|
~~~~~~~~~~~~~~~~~~^~~
make[2]: *** [src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/build.make:86:
src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/src/SMDS/SMDS_BallElement.cpp.o]
Error 1
Thanks,
Richard