Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build.sh error #661

Closed
lucasjinreal opened this issue Oct 15, 2018 · 4 comments
Closed

build.sh error #661

lucasjinreal opened this issue Oct 15, 2018 · 4 comments

Comments

@lucasjinreal
Copy link

Simply installed depencies and run build.sh. got error:

/usr/local/include/eigen3/Eigen/src/Core/util/Constants.h:162:37: note: declared here
 EIGEN_DEPRECATED const unsigned int AlignedBit = 0x80;
                                     ^~~~~~~~~~
/home/jintain/work/codes/slam/ORB_SLAM2/src/Tracking.cc: In member function ‘void ORB_SLAM2::Tracking::Reset()’:
/home/jintain/work/codes/slam/ORB_SLAM2/src/Tracking.cc:1512:24: error: ‘usleep’ was not declared in this scope
             usleep(3000);
                        ^
CMakeFiles/ORB_SLAM2.dir/build.make:296: recipe for target 'CMakeFiles/ORB_SLAM2.dir/src/Viewer.cc.o' failed
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/src/Viewer.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/ORB_SLAM2.dir/build.make:88: recipe for target 'CMakeFiles/ORB_SLAM2.dir/src/LocalMapping.cc.o' failed
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/src/LocalMapping.cc.o] Error 1
CMakeFiles/ORB_SLAM2.dir/build.make:101: recipe for target 'CMakeFiles/ORB_SLAM2.dir/src/LoopClosing.cc.o' failed
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/src/LoopClosing.cc.o] Error 1
CMakeFiles/ORB_SLAM2.dir/build.make:75: recipe for target 'CMakeFiles/ORB_SLAM2.dir/src/Tracking.cc.o' failed
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/src/Tracking.cc.o] Error 1
CMakeFiles/ORB_SLAM2.dir/build.make:62: recipe for target 'CMakeFiles/ORB_SLAM2.dir/src/System.cc.o' failed
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/src/System.cc.o] Error 1
CMakeFiles/Makefile2:257: recipe for target 'CMakeFiles/ORB_SLAM2.dir/all' failed
make[1]: *** [CMakeFiles/ORB_SLAM2.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

It's this a bug or my mistake for missed something?

@missminga
Copy link

my mistake is the same as yours,but the"EIGEN_DEPRECATED const unsigned int AlignedBit = 0x80"is bug?

@cbachhuber
Copy link

The error is caused by a missing header inclusion, unistd.h is missing. This has been discussed before. Solution given here:

Put #include <unistd.h> in System.h.

@lucasjinreal
Copy link
Author

Problem solved, thanks.

@plutomedia
Copy link

plutomedia commented May 19, 2019

Hi. I had a similar or the same problem. So I tried the solution above ('Put #include <unistd.h> in System.h.' from cbachhuber) but it didn't help.
But: after reading the following post I tried to Downgrade the Eigen to 3.2 and all the problems magically dissappeared :)
#317

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants