Comments (5)
Please provide a reproducible example:
- What exact commands did you run?
- What exact error apppered?
from hybvio.
Sorry, when I run make -j6
here,
mkdir target
cd target
cmake -DBUILD_VISUALIZATIONS=ON -DUSE_SLAM=ON ..
# or if not using clang by default:
# CC=clang CXX=clang++ cmake ..
make -j6
I got this error:
/home/ryf/slam/HybVIO/src/slam/orb_extractor.cpp: In member function ‘virtual void slam::{anonymous}::OrbExtractorImplementation::detectAndExtract(tracker::Image&, const tracker::Camera&, const std::vector<tracker::Feature>&, slam::KeyPointVector&, std::vector<int>&)’:
/home/ryf/slam/HybVIO/src/slam/orb_extractor.cpp:110:18: warning: missing initializer for member ‘slam::KeyPoint::bearing’ [-Wmissing-field-initializers]
});
^
/home/ryf/slam/HybVIO/src/slam/orb_extractor.cpp:110:18: warning: missing initializer for member ‘slam::KeyPoint::descriptor’ [-Wmissing-field-initializers]
/home/ryf/slam/HybVIO/src/slam/orb_extractor.cpp:161:18: error: no matching function for call to ‘std::vector<slam::KeyPoint, Eigen::aligned_allocator<slam::KeyPoint> >::push_back(<brace-enclosed initializer list>)’
});
^
In file included from /usr/include/c++/7/vector:64:0,
from /home/ryf/slam/HybVIO/src/slam/static_settings.hpp:4,
from /home/ryf/slam/HybVIO/src/slam/orb_extractor.hpp:4,
from /home/ryf/slam/HybVIO/src/slam/orb_extractor.cpp:40:
/usr/include/c++/7/bits/stl_vector.h:939:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = slam::KeyPoint; _Alloc = Eigen::aligned_allocator<slam::KeyPoint>; std::vector<_Tp, _Alloc>::value_type = slam::KeyPoint]
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:939:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const slam::KeyPoint&}’
/usr/include/c++/7/bits/stl_vector.h:953:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = slam::KeyPoint; _Alloc = Eigen::aligned_allocator<slam::KeyPoint>; std::vector<_Tp, _Alloc>::value_type = slam::KeyPoint]
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:953:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<slam::KeyPoint, Eigen::aligned_allocator<slam::KeyPoint> >::value_type&& {aka slam::KeyPoint&&}’
src/slam/CMakeFiles/slam.dir/build.make:470: recipe for target 'src/slam/CMakeFiles/slam.dir/orb_extractor.cpp.o' failed
make[2]: *** [src/slam/CMakeFiles/slam.dir/orb_extractor.cpp.o] Error 1
CMakeFiles/Makefile2:340: recipe for target 'src/slam/CMakeFiles/slam.dir/all' failed
make[1]: *** [src/slam/CMakeFiles/slam.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
Referencing error #11 , I have tried rm -rf target
and using clang-10, but still doesn't work.
from hybvio.
It may be that you are not really using clang-10. Note that if you just apt install clang-10
, this does not guarantee that you are actually using it in Ubuntu. Try clang --version
to verify. Also try rebuilding mobile-cv-suite after changing the compiler version.
from hybvio.
Thanks for your advice and I checked the clang version to be 10.0. I have also tried rebuilding mobile-cv-suite but still doesn't work. I would change a computer to rebuild. Thanks.
from hybvio.
I also think the errors look like an unsupported compiler is being used. Can you check the file target/CMakeCache.txt
contains this kind of line: CMAKE_CXX_COMPILER:STRING=/usr/bin/clang++
, and not something ending in gcc++
.
To clarify, if echo $CXX
doesn't say /usr/bin/clang++
, then you need to set the compiler to clang
before compiling, like this:
CC=clang CXX=clang++ cmake ..
make -j6
from hybvio.
Related Issues (20)
- Question about parameter visualR HOT 1
- Question about the world to local quaternion
- Visual inertial ekf slam HOT 1
- Recreating Online Arxiv Paper Results for TUM-VI HOT 4
- KERNEL.HASWELL file missing? HOT 3
- Most Faithful Real-time Settings HOT 2
- Question about the input data. HOT 1
- Question about the paper HOT 1
- Problem with the dy/dx in the predict function? HOT 4
- Question about the parameters HOT 4
- Question about distortion coefficients HOT 1
- Question about triangulateLinear HOT 1
- Question about jacobian in triangulation HOT 1
- Can't compile on any of the systems HOT 2
- question about the processing queues HOT 1
- visualUpdateForEveryNFrame Quality Worse Than Skipping Entire Frame HOT 2
- Problem with triangulation【More importantly about how to understand PIVO】? HOT 2
- Test without additional sensor data HOT 1
- Problem about IMU noise unit HOT 7
- HybVIO assume/tuned for parallel stereo cameras? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hybvio.