MantisBT - Orfeo Toolbox (OTB)
View Issue Details
0001044Orfeo Toolbox (OTB)Generalpublic2015-05-05 14:442015-05-19 11:01
Reporterrashadkm 
Assigned Torashadkm 
PriorityhighSeverityblockReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Summary0001044: OTB Windows 64bit -error cast from 'const short unsigned int*' to 'long unsigned int
Description

[ 60%] Building CXX object Modules/Filtering/Statistics/test/CMakeFiles/otbStatisticsTestDriver.dir/otbStreamingStatisticsVectorImageFilter.cxx.obj
[ 60%] Building CXX object Modules/Segmentation/Conversion/test/CMakeFiles/otbConversionTestDriver.dir/otbVectorDataToLabelMapFilterNew.cxx.obj
[ 60%] Building CXX object Modules/Core/LabelMap/test/CMakeFiles/otbLabelMapTestDriver.dir/otbKMeansAttributesLabelMapFilter.cxx.obj
[ 60%] Building CXX object Modules/Filtering/Statistics/test/CMakeFiles/otbStatisticsTestDriver.dir/otbStreamingMinMaxVectorImageFilter.cxx.obj
[ 60%] Building CXX object Modules/Core/LabelMap/test/CMakeFiles/otbLabelMapTestDriver.dir/otbLabelMapToSampleListFilter.cxx.obj
[ 60%] Building CXX object Modules/Segmentation/Conversion/test/CMakeFiles/otbConversionTestDriver.dir/otbLabelImageToVectorDataFilterNew.cxx.obj
In file included from /.../src/Modules/Segmentation/Conversion/include/otbLabelImageToVectorDataFilter.h:124:0,
                 from /.../src/Modules/Segmentation/Conversion/test/otbLabelImageToVectorDataFilterNew.cxx:20:
/.../src/Modules/Segmentation/Conversion/include/otbLabelImageToVectorDataFilter.txx: In instantiation of 'void otb::LabelImageToVectorDataFilter<TInputImage, TPrecision>::GenerateData() [with TInputImage = otb::Image<short unsigned int, 2u>; TPrecision = double]':
/.../src/Modules/Segmentation/Conversion/test/otbLabelImageToVectorDataFilterNew.cxx:35:1: required from here

/.../src/Modules/Segmentation/Conversion/include/otbLabelImageToVectorDataFilter.txx:144:31: error: cast from 'const short unsigned int*' to 'long unsigned int' loses precision [-fpermissive]

            << "DATAPOINTER=" << (unsigned long)(this->GetInput()->GetBufferPointer()) << ","
                               ^
Additional Informationrelated gdal ticket:
http://trac.osgeo.org/gdal/ticket/3460

and its fix:
http://trac.osgeo.org/gdal/changeset/19065


dashboard submission
http://dash.orfeo-toolbox.org/viewBuildError.php?buildid=181585
TagsNo tags attached.
Attached Files

Notes
(0002847)
rashadkm   
2015-05-05 15:07   
fixed by http://hg.orfeo-toolbox.org/OTB/rev/769ac292c933

waiting for dashboard results for all platforms

Issue History
2015-05-05 14:44rashadkmNew Issue
2015-05-05 15:07rashadkmNote Added: 0002847
2015-05-12 10:37rashadkmStatusnew => resolved
2015-05-12 10:37rashadkmResolutionopen => fixed
2015-05-12 10:37rashadkmAssigned To => rashadkm
2015-05-19 11:01julienStatusresolved => closed