MSVC 2005 compile problem (FLANN) (Bug #1151)
Description
Since rev 5572, OpenCV trunk does not compile anymore with MSVC2005.
9>d:\hudson\workspace\OpenCV trunk\opencv\modules\flann\include\opencv2/flann/dist.h(37) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
The stdint.h include file is not present in most MSVC verstions.
See here for more detail:
http://stackoverflow.com/questions/126279/c99-stdint-h-header-and-ms-visual-studio
Associated revisions
Merge pull request #1151 from jet47:gpubgsegm-refactoring
History
Updated by Pieter-Jan Busschaert over 13 years ago
This stdint.h problem is solved in rev 5574, but now another compile problem is hit:
15>d:\hudson\workspace\opencv trunk\opencv\modules\flann\include\opencv2\flann\kdtree_index.h(129) : error C2039: 'data' : is not a member of 'std::vector<_Ty>'
15> with
15> [
15> _Ty=int
15> ]
Background info:
http://stackoverflow.com/questions/6212572/whats-the-status-of-stdvectordata
Updated by Vadim Pisarevsky over 13 years ago
In r5578 flann in trunk has been reverted to 1.5. flann 1.6 is put to a separate branch
https://code.opencv.org/svn/opencv/branches/FLANN_1.6/
- Status deleted (
Open)
Updated by Vadim Pisarevsky over 13 years ago
forgot to add that stdint.h is not required anymore, but the second bug may be still valid
Updated by Marius Muja over 13 years ago
Fixed in r5582.
- Status set to Done
- (deleted custom field) set to fixed
Updated by Pieter-Jan Busschaert over 13 years ago
Now flann 1.6 is back on trunk, I get a similar failure:
10>d:\hudson\workspace\opencv trunk\opencv\modules\flann\include\opencv2\flann\lsh_table.h(213) : error C2039: 'at' : is not a member of 'std::map<_Kty,_Ty>'
10> with
10> [
10> _Kty=cvflann::lsh::BucketKey,
10> _Ty=cvflann::lsh::Bucket
10> ]
10> d:\hudson\workspace\opencv trunk\opencv\modules\flann\include\opencv2\flann\lsh_table.h(204) : while compiling class template member function 'const cvflann::lsh::Bucket *cvflann::lsh::LshTable<ElementType>::getBucketFromKey(cvflann::lsh::BucketKey) const'
10> with
10> [
10> ElementType=unsigned char
10> ]
10>flann.cpp
- Status changed from Done to Cancelled
- (deleted custom field) deleted (
fixed)
Updated by Vadim Pisarevsky over 13 years ago
fixed in trunk
- Status changed from Cancelled to Done
- (deleted custom field) set to fixed