安装DBow3失败

[  6%] Building CXX object src/CMakeFiles/DBoW3.dir/FeatureVector.cpp.o
In file included from /home/DBow3-master/DBow3-master/src/FeatureVector.h:13,
                 from /home/jiangsiyi/DBow3-master/DBow3-master/src/FeatureVector.cpp:10:
/home/jiangsiyi/DBow3-master/DBow3-master/src/BowVector.h:99:21: error: ‘ostream’ in namespace ‘std’ does not name a type
   99 |         friend std::ostream& operator<<(std::ostream &out, const BowVector &v);
      |                     ^~~~~~~
/home/jiangsiyi/DBow3-master/DBow3-master/src/BowVector.h:16:1: note: ‘std::ostream’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
   15 | #include "exports.h"
  +++ |+#include <ostream>
   16 | #if _WIN32
/home/jiangsiyi/DBow3-master/DBow3-master/src/BowVector.h:106:31: error: ‘string’ in namespace ‘std’ does not name a type
  106 |         void saveM(const std::string &filename, size_t W) const;
      |                               ^~~~~~
/home/jiangsiyi/DBow3-master/DBow3-master/src/BowVector.h:16:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
   15 | #include "exports.h"
  +++ |+#include <string>
   16 | #if _WIN32
/home/jiangsiyi/DBow3-master/DBow3-master/src/BowVector.h:106:49: error: ‘size_t’ has not been declared
  106 |         void saveM(const std::string &filename, size_t W) const;
      |                                                 ^~~~~~
/home/jiangsiyi/DBow3-master/DBow3-master/src/BowVector.h:109:5: error: ‘uint64_t’ does not name a type
  109 |     uint64_t getSignature()const;
      |     ^~~~~~~~
/home/jiangsiyi/DBow3-master/DBow3-master/src/BowVector.h:16:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   15 | #include "exports.h"
  +++ |+#include <cstdint>
   16 | #if _WIN32
/home/jiangsiyi/DBow3-master/DBow3-master/src/BowVector.h:111:24: error: ‘std::ostream’ has not been declared
  111 |     void toStream(std::ostream &str)const;
      |                        ^~~~~~~
/home/jiangsiyi/DBow3-master/DBow3-master/src/BowVector.h:112:26: error: ‘std::istream’ has not been declared
  112 |     void fromStream(std::istream &str);
      |                          ^~~~~~~
In file included from /home/jiangsiyi/DBow3-master/DBow3-master/src/FeatureVector.cpp:10:
/home/jiangsiyi/DBow3-master/DBow3-master/src/FeatureVector.h:48:15: error: ‘ostream’ in namespace ‘std’ does not name a type
   48 |   friend std::ostream& operator<<(std::ostream &out, const FeatureVector &v);
      |               ^~~~~~~
/home/jiangsiyi/DBow3-master/DBow3-master/src/FeatureVector.h:14:1: note: ‘std::ostream’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
   13 | #include "BowVector.h"
  +++ |+#include <ostream>
   14 | #include <map>
make[2]: *** [src/CMakeFiles/DBoW3.dir/build.make:118:src/CMakeFiles/DBoW3.dir/FeatureVector.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:147:src/CMakeFiles/DBoW3.dir/all] 错误 2
make: *** [Makefile:136:all] 错误 2

安装DBow3失败这是什么原因阿

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值