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

Problem in compilation #12

Open
abdur4373 opened this issue May 14, 2019 · 0 comments
Open

Problem in compilation #12

abdur4373 opened this issue May 14, 2019 · 0 comments

Comments

@abdur4373
Copy link

Hello, First let me confess I am totally newb so donot get dishurt if I ask something crazy.

I am trying to compile this in my separate work space created for this with catkin_make, however there is some error coming up which I am unable to solve by myself, Can you help me in solving it.

One possible reason which I suppose could be that of what you have said about the lsd_slam,
Of which I have to install dependencies before compiling which I do not know how to install.
Thank you.

`ghost@viper:$ cd ar_navigation/
ghost@viper:
/ar_navigation$ catkin_make
Base path: /home/ghost/ar_navigation
Source space: /home/ghost/ar_navigation/src
Build space: /home/ghost/ar_navigation/build
Devel space: /home/ghost/ar_navigation/devel
Install space: /home/ghost/ar_navigation/install

Running command: "make cmake_check_build_system" in "/home/ghost/ar_navigation/build"

Running command: "make -j8 -l8" in "/home/ghost/ar_navigation/build"

[ 1%] Built target lsd_slam_viewer_gencfg
[ 2%] Built target lsd_slam_core_gencfg
[ 2%] Built target std_msgs_generate_messages_cpp
[ 2%] Built target _lsd_slam_viewer_generate_messages_check_deps_keyframeGraphMsg
[ 2%] Built target _lsd_slam_viewer_generate_messages_check_deps_keyframeMsg
[ 2%] Built target _tum_ardrone_generate_messages_check_deps_SetReference
[ 2%] Built target _tum_ardrone_generate_messages_check_deps_SetMaxControl
[ 4%] Built target tum_ardrone_gencfg
[ 4%] Built target _tum_ardrone_generate_messages_check_deps_SetStayWithinDistance
[ 4%] Built target _tum_ardrone_generate_messages_check_deps_SetInitialReachDistance
[ 10%] Built target thirdparty
[ 10%] Built target _tum_ardrone_generate_messages_check_deps_filter_state
[ 10%] Built target std_msgs_generate_messages_nodejs
[ 10%] Built target std_msgs_generate_messages_py
[ 10%] Built target std_msgs_generate_messages_lisp
[ 10%] Built target std_msgs_generate_messages_eus
[ 11%] Built target lsd_slam_viewer_generate_messages_cpp
[ 11%] Built target _tum_ardrone_generate_messages_check_deps_SetStayTime
[ 12%] Built target conversion
[ 15%] Built target lsd_slam_viewer_generate_messages_py
[ 16%] Built target lsd_slam_viewer_generate_messages_lisp
[ 21%] Built target lsd_slam_viewer_generate_messages_nodejs
[ 21%] Built target lsd_slam_viewer_generate_messages_eus
[ 21%] Built target ardrone_controller
[ 25%] Built target tum_ardrone_generate_messages_cpp
[ 32%] Built target tum_ardrone_generate_messages_py
[ 36%] Built target tum_ardrone_generate_messages_lisp
[ 40%] Built target tum_ardrone_generate_messages_nodejs
[ 45%] Built target tum_ardrone_generate_messages_eus
[ 45%] Building CXX object hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/DataStructures/Frame.cpp.o
[ 46%] Building CXX object hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/DataStructures/FramePoseStruct.cpp.o
[ 47%] Building CXX object hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/DataStructures/FrameMemory.cpp.o
[ 47%] Building CXX object hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/SlamSystem.cpp.o
[ 47%] Built target tum_ardrone_gencpp
[ 47%] Built target lsd_slam_viewer_generate_messages
[ 47%] Built target tum_ardrone_generate_messages
[ 47%] Building CXX object hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/CMakeFiles/viewer.dir/src/main_viewer.o
[ 48%] Building CXX object hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/LiveSLAMWrapper.cpp.o
[ 49%] Building CXX object hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/CMakeFiles/viewer.dir/src/PointCloudViewer.o
[ 58%] Built target drone_gui
[ 59%] Building CXX object hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/DepthEstimation/DepthMap.cpp.o
In file included from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/DataStructures/FramePoseStruct.h:23:0,
from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/DataStructures/FramePoseStruct.cpp:22:
/home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/GlobalMapping/g2oTypeSim3Sophus.h:24:34: fatal error: g2o/core/base_vertex.h: No such file or directory
compilation terminated.
hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/build.make:86: recipe for target 'hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/DataStructures/FramePoseStruct.cpp.o' failed
make[2]: *** [hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/DataStructures/FramePoseStruct.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 60%] Building CXX object hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/CMakeFiles/viewer.dir/src/KeyFrameDisplay.o
In file included from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/DepthEstimation/DepthMap.cpp:21:0:
/home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/DepthEstimation/DepthMap.h:23:33: fatal error: opencv2/core/core.hpp: No such file or directory
compilation terminated.
hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/build.make:182: recipe for target 'hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/DepthEstimation/DepthMap.cpp.o' failed
make[2]: *** [hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/DepthEstimation/DepthMap.cpp.o] Error 1
In file included from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/LiveSLAMWrapper.h:29:0,
from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/LiveSLAMWrapper.cpp:21:
/home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/IOWrapper/TimestampedObject.h:26:33: fatal error: opencv2/core/core.hpp: No such file or directory
compilation terminated.
hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/build.make:158: recipe for target 'hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/LiveSLAMWrapper.cpp.o' failed
make[2]: *** [hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/LiveSLAMWrapper.cpp.o] Error 1
[ 64%] Built target drone_autopilot
In file included from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/DataStructures/FramePoseStruct.h:23:0,
from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/DataStructures/Frame.h:26,
from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/DataStructures/Frame.cpp:21:
/home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/GlobalMapping/g2oTypeSim3Sophus.h:24:34: fatal error: g2o/core/base_vertex.h: No such file or directory
compilation terminated.
hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/build.make:62: recipe for target 'hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/DataStructures/Frame.cpp.o' failed
make[2]: *** [hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/DataStructures/Frame.cpp.o] Error 1
In file included from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/DataStructures/FramePoseStruct.h:23:0,
from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/DataStructures/Frame.h:26,
from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/DataStructures/FrameMemory.cpp:22:
/home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/GlobalMapping/g2oTypeSim3Sophus.h:24:34: fatal error: g2o/core/base_vertex.h: No such file or directory
compilation terminated.
hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/build.make:110: recipe for target 'hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/DataStructures/FrameMemory.cpp.o' failed
make[2]: *** [hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/DataStructures/FrameMemory.cpp.o] Error 1
[ 80%] Built target drone_stateestimation
In file included from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/SlamSystem.cpp:21:0:
/home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/src/SlamSystem.h:29:33: fatal error: opencv2/core/core.hpp: No such file or directory
compilation terminated.
hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/build.make:134: recipe for target 'hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/SlamSystem.cpp.o' failed
make[2]: *** [hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/src/SlamSystem.cpp.o] Error 1
CMakeFiles/Makefile2:3168: recipe for target 'hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/all' failed
make[1]: *** [hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /opt/ros/kinetic/include/opencv-3.3.1-dev/opencv2/opencv.hpp:86:0,
from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/KeyFrameDisplay.cpp:31:
/opt/ros/kinetic/include/opencv-3.3.1-dev/opencv2/stitching.hpp:58:4: warning: #warning Detected X11 'Status' macro definition, it can cause build conflicts. Please, include this header before any X11 headers. [-Wcpp]

warning Detected X11 'Status' macro definition, it can cause build conflicts. Please, include this header before any X11 headers.

^

In file included from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.cpp:22:0:
/home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.h: In member function ‘std::__cxx11::string AnimationObject::toString()’:
/home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.h:136:26: error: invalid initialization of non-const reference of type ‘qreal& {aka double&}’ from an rvalue of type ‘qreal {aka double}’
frame.getPosition(x,y,z);
^
In file included from /usr/include/QGLViewer/keyFrameInterpolator.h:31:0,
from /usr/include/QGLViewer/camera.h:26,
from /usr/include/QGLViewer/qglviewer.h:26,
from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.h:26,
from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.cpp:22:
/usr/include/QGLViewer/frame.h:188:7: note: initializing argument 1 of ‘void qglviewer::Frame::getPosition(qreal&, qreal&, qreal&) const’
void getPosition(qreal& x, qreal& y, qreal& z) const;
^
In file included from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/main_viewer.cpp:25:0:
/home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.h: In member function ‘std::__cxx11::string AnimationObject::toString()’:
/home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.h:136:26: error: invalid initialization of non-const reference of type ‘qreal& {aka double&}’ from an rvalue of type ‘qreal {aka double}’
frame.getPosition(x,y,z);
^
In file included from /usr/include/QGLViewer/keyFrameInterpolator.h:31:0,
from /usr/include/QGLViewer/camera.h:26,
from /usr/include/QGLViewer/qglviewer.h:26,
from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.h:26,
from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/main_viewer.cpp:25:
/usr/include/QGLViewer/frame.h:188:7: note: initializing argument 1 of ‘void qglviewer::Frame::getPosition(qreal&, qreal&, qreal&) const’
void getPosition(qreal& x, qreal& y, qreal& z) const;
^
/home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.cpp: In member function ‘virtual void PointCloudViewer::keyPressEvent(QKeyEvent*)’:
/home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.cpp:327:44: error: invalid initialization of non-const reference of type ‘qreal& {aka double&}’ from an rvalue of type ‘qreal {aka double}’
camera()->frame()->getPosition(x,y,z);
^
In file included from /usr/include/QGLViewer/keyFrameInterpolator.h:31:0,
from /usr/include/QGLViewer/camera.h:26,
from /usr/include/QGLViewer/qglviewer.h:26,
from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.h:26,
from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.cpp:22:
/usr/include/QGLViewer/frame.h:188:7: note: initializing argument 1 of ‘void qglviewer::Frame::getPosition(qreal&, qreal&, qreal&) const’
void getPosition(qreal& x, qreal& y, qreal& z) const;
^
In file included from /usr/include/GL/glx.h:30:0,
from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/KeyFrameDisplay.cpp:27:
/opt/ros/kinetic/include/opencv-3.3.1-dev/opencv2/stitching.hpp:128:10: error: expected identifier before ‘int’
enum Status
^
In file included from /opt/ros/kinetic/include/opencv-3.3.1-dev/opencv2/opencv.hpp:86:0,
from /home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/KeyFrameDisplay.cpp:31:
/opt/ros/kinetic/include/opencv-3.3.1-dev/opencv2/stitching.hpp:129:5: error: expected unqualified-id before ‘{’ token
{
^
/home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/KeyFrameDisplay.cpp: In member function ‘void KeyFrameDisplay::setFrom(lsd_slam_viewer::keyframeMsgConstPtr)’:
/home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/KeyFrameDisplay.cpp:98:106: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
msg->pointcloud.size(), sizeof(InputPointDense), width, height, widthheightsizeof(InputPointDense));
^
/home/ghost/ar_navigation/src/hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/src/KeyFrameDisplay.cpp:98:106: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘long unsigned int’ [-Wformat=]
hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/CMakeFiles/viewer.dir/build.make:62: recipe for target 'hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/CMakeFiles/viewer.dir/src/main_viewer.o' failed
make[2]: *** [hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/CMakeFiles/viewer.dir/src/main_viewer.o] Error 1
make[2]: *** Waiting for unfinished jobs....
hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/CMakeFiles/viewer.dir/build.make:86: recipe for target 'hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/CMakeFiles/viewer.dir/src/PointCloudViewer.o' failed
make[2]: *** [hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/CMakeFiles/viewer.dir/src/PointCloudViewer.o] Error 1
hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/CMakeFiles/viewer.dir/build.make:110: recipe for target 'hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/CMakeFiles/viewer.dir/src/KeyFrameDisplay.o' failed
make[2]: *** [hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/CMakeFiles/viewer.dir/src/KeyFrameDisplay.o] Error 1
CMakeFiles/Makefile2:539: recipe for target 'hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/CMakeFiles/viewer.dir/all' failed
make[1]: *** [hypharos_ardrone_navigation/third_parties/lsd_slam/lsd_slam_viewer/CMakeFiles/viewer.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed
`

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

1 participant