[vtkusers] VTK compiling error with MinGW-w64: "cast loses precision"

nirhal nirhal at post.bgu.ac.il
Fri Sep 18 11:02:38 EDT 2015


Hi,

I'm trying to compile VTK 6.3 (from git) using MinGW-w64.
During the comilation i'm getting this error:

C:\libs\VTK\VTK\Rendering\FreeType\vtkFreeTypeTools.cxx: In member function
'FT_
Bitmap* vtkFreeTypeTools::GetBitmap(FT_UInt32, FTC_Scaler, FT_UInt&,
FT_BitmapGl
yphRec_*&)':
C:\libs\VTK\VTK\Rendering\FreeType\vtkFreeTypeTools.cxx:2348:75: error: cast
fro
m 'FTC_FaceID {aka void*}' to 'long unsigned int' loses precision
[-fpermissive]

   if (!this->GetGlyphIndex(reinterpret_cast<unsigned
long>(scaler->face_id), c,

                                                                           ^
C:\libs\VTK\VTK\Rendering\FreeType\vtkFreeTypeTools.cxx: In member function
'FT_
Outline* vtkFreeTypeTools::GetOutline(FT_UInt32, FTC_Scaler, FT_UInt&,
FT_Outlin
eGlyphRec_*&)':
C:\libs\VTK\VTK\Rendering\FreeType\vtkFreeTypeTools.cxx:2410:75: error: cast
fro
m 'FTC_FaceID {aka void*}' to 'long unsigned int' loses precision
[-fpermissive]

   if (!this->GetGlyphIndex(reinterpret_cast<unsigned
long>(scaler->face_id), c,


What should i do?

Thanks



--
View this message in context: http://vtk.1045678.n5.nabble.com/VTK-compiling-error-with-MinGW-w64-cast-loses-precision-tp5734017.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list