Ashwinning / libmv

Automatically exported from code.google.com/p/libmv
MIT License
0 stars 0 forks source link

Compiling on Windows #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Thank you @Keir for invitation to project. 
(http://groups.google.com/group/libmv-devel/t/1f3f9d00396f0fc0)

I'm making progress with it, but this is an error that I don't think I'll 
be able to understand or fix myself:

3>image_sequence_io.cc
2>L:\tmp\libmv-devel\libmv-
1\src\libmv/correspondence/bipartite_graph.h(260) : error C2679: binary '=' 
: no operator found which takes a right-hand operand of type 
'std::_Tree<_Traits>::const_iterator' (or there is no acceptable 
conversion)
2>        with
2>        [
2>            _Traits=std::_Tset_traits<std::pair<libmv::TrackID,const 
libmv::Feature *>,std::less<std::pair<libmv::TrackID,const libmv::Feature 
*>>,std::allocator<std::pair<libmv::TrackID,const libmv::Feature *>>,false>
2>        ]
2>        I:\Program Files\Microsoft Visual Studio 
9.0\VC\include\xtree(498): could be 'std::_Tree<_Traits>::iterator 
&std::_Tree<_Traits>::iterator::operator =(const 
std::_Tree<_Traits>::iterator &)'
2>        with
2>        [
2>            _Traits=std::_Tset_traits<std::pair<libmv::TrackID,const 
libmv::Feature *>,std::less<std::pair<libmv::TrackID,const libmv::Feature 
*>>,std::allocator<std::pair<libmv::TrackID,const libmv::Feature *>>,false>
2>        ]
2>        while trying to match the argument list 
'(std::_Tree<_Traits>::iterator, std::_Tree<_Traits>::const_iterator)'
2>        with
2>        [
2>            _Traits=std::_Tset_traits<std::pair<libmv::TrackID,const 
libmv::Feature *>,std::less<std::pair<libmv::TrackID,const libmv::Feature 
*>>,std::allocator<std::pair<libmv::TrackID,const libmv::Feature *>>,false>
2>        ]
2>        L:\tmp\libmv-devel\libmv-
1\src\libmv/correspondence/bipartite_graph.h(255) : while compiling class 
template member function 
'libmv::BipartiteGraph<LeftNode,Edge,RightNode>::Iterator 
libmv::BipartiteGraph<LeftNode,Edge,RightNode>::ScanEdgesForLeftNode(const 
LeftNode &)'
2>        with
2>        [
2>            LeftNode=libmv::ImageID,
2>            Edge=const libmv::Feature *,
2>            RightNode=libmv::TrackID
2>        ]
2>        L:\tmp\libmv-devel\libmv-
1\src\libmv/correspondence/correspondence.h(55) : see reference to class 
template instantiation 'libmv::BipartiteGraph<LeftNode,Edge,RightNode>' 
being compiled
2>        with
2>        [
2>            LeftNode=libmv::ImageID,
2>            Edge=const libmv::Feature *,
2>            RightNode=libmv::TrackID
2>        ]

Any ideas? 

(Don't close the ticket afterwards, I'll post all related stuff to Windows 
compilation here).

Original issue reported on code.google.com by bomb...@gmail.com on 20 Jun 2009 at 1:40

GoogleCodeExporter commented 9 years ago
The line that gives the error (src/libmv/correspondence/bipartite_graph.h(260)):

  Iterator ScanEdgesForLeftNode(const LeftNode &left_node) {
    typename LeftToRightMap::const_iterator it = left_to_right_.find(left_node);
    assert(it != left_to_right_.end());
    Iterator iterator;
    iterator.type_ = OVER_RIGHT_NODES;
    iterator.right_iter_ = it->second.begin();    <--- this one

Original comment by bomb...@gmail.com on 20 Jun 2009 at 2:14

GoogleCodeExporter commented 9 years ago
Well, I'm down to only slightly more than 1300 error messages, but they fall 
into 9 
categories:

build log here - http://3dengine.org/txt/log.html

All of those are about Eigen::Matrix and I have no idea what are they about. 
Any help 
would be appreciated.

Original comment by bomb...@gmail.com on 20 Jun 2009 at 7:12

GoogleCodeExporter commented 9 years ago
(Ignore linker errors for now)

Original comment by bomb...@gmail.com on 20 Jun 2009 at 7:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Down to 56 errors (6 categories)

Original comment by bomb...@gmail.com on 20 Jun 2009 at 9:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Down to just 1 error. (The one above)

Original comment by bomb...@gmail.com on 21 Jun 2009 at 9:26

GoogleCodeExporter commented 9 years ago
Yay! It compiles! 
Still a long way to go, though (RoadMap: http://3dengine.org/libmv_Windows)
Will send in .diff as soon as it links and passes tests.

Original comment by bomb...@gmail.com on 21 Jun 2009 at 9:34