View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015358VTK(No Category)public2015-03-04 09:432015-03-13 15:20
ReporterGuillaume Jacquenot 
Assigned ToDavid Gobbi 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version6.2.0 
Target VersionFixed in Version6.3.0 
Summary0015358: VTK 6.2.0: MinGW64 compilation bug on Windows7 error in vtkWin32VideoSource::Initialize() call
DescriptionWith the new version 6.2.0, I encounter a compilation bug with MinGW 64 bits G++ 4.9.2 in method Initialize of class vtkWin32VideoSource

Here is the compilation error

[ 92%] Building CXX object IO/Video/CMakeFiles/vtkIOVideo.dir/vtkWin32VideoSource.cxx.obj
In file included from d:/VTK-6.2.0/IO/Video/vtkWin32VideoSource.cxx:31:0:
d:/VTK-6.2.0/IO/Video/vtkWin32VideoSource.cxx: In member function 'virtual void vtkWin32VideoSource::Initialize()':
d:/VTK-6.2.0/IO/Video/vtkWin32VideoSource.cxx:352:52: error: cast from 'vtkWin32VideoSource*' to 'long int' loses precision [-fpermissive]
   if (!capSetUserData(this->Internal->CapWnd,(long)this))
                                                    ^
make[2]: *** [IO/Video/CMakeFiles/vtkIOVideo.dir/vtkWin32VideoSource.cxx.obj] Error 1
make[1]: *** [IO/Video/CMakeFiles/vtkIOVideo.dir/all] Error 2
make: *** [all] Error 2


I fixed it by removing the cast

- if (!capSetUserData(this->Internal->CapWnd,(long)this))
+ if (!capSetUserData(this->Internal->CapWnd,this))

This is similar to bug 0014292
TagsNo tags attached.
ProjectTBD
Typecrash
Attached Files

 Relationships

  Notes
(0034301)
David Gobbi (developer)
2015-03-13 09:08

http://review.source.kitware.com/19492 [^]
(0034303)
David Gobbi (developer)
2015-03-13 15:20

Patch has been merged.

 Issue History
Date Modified Username Field Change
2015-03-04 09:43 Guillaume Jacquenot New Issue
2015-03-13 08:57 David Gobbi Assigned To => David Gobbi
2015-03-13 09:08 David Gobbi Note Added: 0034301
2015-03-13 09:08 David Gobbi Status backlog => gerrit review
2015-03-13 15:20 David Gobbi Product Version => 6.2.0
2015-03-13 15:20 David Gobbi Fixed in Version => 6.3.0
2015-03-13 15:20 David Gobbi Note Added: 0034303
2015-03-13 15:20 David Gobbi Status gerrit review => closed
2015-03-13 15:20 David Gobbi Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team