make[2]: ** [CMakeFiles/ORB_SLAM2.dir/src/Optimizer.cc.o] Error 4
make[1]: ** [CMakeFiles/ORB_SLAM2.dir/all] Error 2
make: *** [all] Error 2
i have tried to restall the ORB_SLAM2, but the errors still exist . i really do not know what to do next ,pleease help me out ,thank u very much
@raulmur
@sakurazhu
Could you pose all the compile output? There should be some lines before.
Also remocing -j from build.sh to make the build sequential rather than
parallel could help debugging
On Apr 15, 2016 4:11 PM, "joyousrabbit" [email protected] wrote:
@sakurazhu https://github.com/sakurazhu
Could you pose all the compile output? There should be some lines before.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/raulmur/ORB_SLAM2/issues/68#issuecomment-210477473
The before lines are as follow:
PS : I have tried make -j4 when debugging this time ,but the error still there.@poine @joyousrabbit
`[ 16%] Building CXX object modules/nonfree/CMakeFiles/opencv_perf_nonfree_pch_dephelp.dir/opencv_perf_nonfree_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_perf_ocl_pch_dephelp.a
[ 16%] Built target opencv_perf_ocl_pch_dephelp
[ 16%] Generating opencv_test_nonfree_pch_dephelp.cxx
Scanning dependencies of target opencv_test_nonfree_pch_dephelp
[ 16%] Building CXX object modules/nonfree/CMakeFiles/opencv_test_nonfree_pch_dephelp.dir/opencv_test_nonfree_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_nonfree_pch_dephelp.a
[ 16%] Built target opencv_nonfree_pch_dephelp
[ 16%] Generating opencv_contrib_pch_dephelp.cxx
Scanning dependencies of target opencv_contrib_pch_dephelp
[ 16%] Building CXX object modules/contrib/CMakeFiles/opencv_contrib_pch_dephelp.dir/opencv_contrib_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_test_ocl_pch_dephelp.a
[ 16%] Built target opencv_test_ocl_pch_dephelp
[ 16%] Generating opencv_test_contrib_pch_dephelp.cxx
Scanning dependencies of target opencv_test_contrib_pch_dephelp
[ 16%] Building CXX object modules/contrib/CMakeFiles/opencv_test_contrib_pch_dephelp.dir/opencv_test_contrib_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_perf_nonfree_pch_dephelp.a
[ 16%] Built target opencv_perf_nonfree_pch_dephelp
[ 16%] Generating opencv_stitching_pch_dephelp.cxx
Scanning dependencies of target opencv_stitching_pch_dephelp
[ 17%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching_pch_dephelp.dir/opencv_stitching_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_contrib_pch_dephelp.a
[ 17%] Built target opencv_contrib_pch_dephelp
[ 17%] Generating opencv_perf_stitching_pch_dephelp.cxx
Linking CXX static library ../../lib/libopencv_test_nonfree_pch_dephelp.a
Scanning dependencies of target opencv_perf_stitching_pch_dephelp
[ 17%] Built target opencv_test_nonfree_pch_dephelp
[ 17%] Building CXX object modules/stitching/CMakeFiles/opencv_perf_stitching_pch_dephelp.dir/opencv_perf_stitching_pch_dephelp.cxx.o
[ 17%] Generating opencv_test_stitching_pch_dephelp.cxx
Scanning dependencies of target opencv_test_stitching_pch_dephelp
[ 18%] Building CXX object modules/stitching/CMakeFiles/opencv_test_stitching_pch_dephelp.dir/opencv_test_stitching_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_test_contrib_pch_dephelp.a
[ 18%] Built target opencv_test_contrib_pch_dephelp
[ 18%] Generating opencv_perf_superres_pch_dephelp.cxx
Scanning dependencies of target opencv_perf_superres_pch_dephelp
[ 18%] Building CXX object modules/superres/CMakeFiles/opencv_perf_superres_pch_dephelp.dir/opencv_perf_superres_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_stitching_pch_dephelp.a
[ 18%] Built target opencv_stitching_pch_dephelp
[ 18%] Generating opencv_superres_pch_dephelp.cxx
Scanning dependencies of target opencv_superres_pch_dephelp
[ 19%] Building CXX object modules/superres/CMakeFiles/opencv_superres_pch_dephelp.dir/opencv_superres_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_perf_stitching_pch_dephelp.a
[ 19%] Built target opencv_perf_stitching_pch_dephelp
[ 19%] Generating opencv_test_superres_pch_dephelp.cxx
Scanning dependencies of target opencv_test_superres_pch_dephelp
[ 19%] Building CXX object modules/superres/CMakeFiles/opencv_test_superres_pch_dephelp.dir/opencv_test_superres_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_test_stitching_pch_dephelp.a
[ 19%] Built target opencv_test_stitching_pch_dephelp
[ 19%] Linking CXX static library ../../lib/libopencv_superres_pch_dephelp.a
Generating opencv_videostab_pch_dephelp.cxx
[ 19%] Built target opencv_superres_pch_dephelp
Scanning dependencies of target libtiff
Linking CXX static library ../../lib/libopencv_perf_superres_pch_dephelp.a
Scanning dependencies of target opencv_videostab_pch_dephelp
[ 19%] Built target opencv_perf_superres_pch_dephelp
[ 20%] [ 20%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab_pch_dephelp.dir/opencv_videostab_pch_dephelp.cxx.o
Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_aux.c.o
Scanning dependencies of target libpng
[ 21%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngset.c.o
[ 21%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_close.c.o
[ 21%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_codec.c.o
[ 21%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_color.c.o
[ 21%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngrtran.c.o
[ 21%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_compress.c.o
[ 21%] Linking CXX static library ../../lib/libopencv_videostab_pch_dephelp.a
Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_dir.c.o
[ 21%] Built target opencv_videostab_pch_dephelp
Scanning dependencies of target IlmImf
[ 21%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Half/half.cpp.o
[ 21%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_dirinfo.c.o
Linking CXX static library ../../lib/libopencv_test_superres_pch_dephelp.a
[ 21%] Built target opencv_test_superres_pch_dephelp
Scanning dependencies of target pch_Generate_opencv_core
[ 21%] Generating precomp.hpp
[ 21%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_dirread.c.o
[ 21%] Generating precomp.hpp.gch/opencv_core_Release.gch
[ 21%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngmem.c.o
[ 21%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/png.c.o
[ 21%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Iex/IexBaseExc.cpp.o
[ 21%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Iex/IexThrowErrnoExc.cpp.o
[ 21%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngread.c.o
[ 21%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngwutil.c.o
[ 22%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_dirwrite.c.o
[ 22%] Built target pch_Generate_opencv_core
[ 22%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_dumpmode.c.o
[ 22%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_error.c.o
[ 22%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngerror.c.o
[ 22%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_extension.c.o
[ 22%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThread.cpp.o
[ 22%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_fax3.c.o
[ 22%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngtrans.c.o
[ 22%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngget.c.o
[ 22%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadPosix.cpp.o
[ 22%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_fax3sm.c.o
[ 22%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadSemaphorePosix.cpp.o
Scanning dependencies of target pch_Generate_opencv_ts
[ 22%] [ 22%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngwrite.c.o
Generating precomp.hpp
[ 22%] Generating precomp.hpp.gch/opencv_ts_Release.gch
[ 22%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadSemaphore.cpp.o
[ 22%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadMutex.cpp.o
[ 22%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadMutexPosix.cpp.o
[ 22%] [ 22%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngwio.c.o
Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_flush.c.o
[ 22%] [ 23%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngrio.c.o
Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_getimage.c.o
[ 23%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngpread.c.o
[ 23%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadPool.cpp.o
[ 23%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngwtran.c.o
[ 23%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngrutil.c.o
[ 23%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadSemaphorePosixCompat.cpp.o
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathMatrixAlgo.cpp.o
Linking C static library ../lib/liblibpng.a
[ 24%] Built target libpng
Scanning dependencies of target pch_Generate_opencv_flann
[ 24%] Generating precomp.hpp
[ 24%] Generating precomp.hpp.gch/opencv_flann_Release.gch
[ 24%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_jbig.c.o
[ 24%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_jpeg_12.c.o
[ 24%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_jpeg.c.o
[ 25%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_luv.c.o
[ 25%] Built target pch_Generate_opencv_ts
Scanning dependencies of target pch_Generate_opencv_imgproc
[ 25%] Generating precomp.hpp
[ 25%] Generating precomp.hpp.gch/opencv_imgproc_Release.gch
[ 25%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_lzma.c.o
[ 25%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_lzw.c.o
[ 25%] [ 25%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_next.c.o
Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathRandom.cpp.o
[ 25%] [ 25%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathColorAlgo.cpp.o
Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_ojpeg.c.o
[ 25%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_open.c.o
[ 25%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_packbits.c.o
[ 25%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathFun.cpp.o
[ 25%] Built target pch_Generate_opencv_flann
Scanning dependencies of target pch_Generate_opencv_highgui
[ 25%] [ 25%] Generating precomp.hpp
Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_pixarlog.c.o
[ 25%] [ 25%] Generating precomp.hpp.gch/opencv_highgui_Release.gch
Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathVec.cpp.o
[ 25%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRationalAttribute.cpp.o
[ 25%] Built target pch_Generate_opencv_imgproc
[ 25%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTileOffsets.cpp.o
[ 25%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_predict.c.o
[ 25%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_print.c.o
Scanning dependencies of target pch_Generate_opencv_features2d
[ 25%] Generating precomp.hpp
[ 25%] Generating precomp.hpp.gch/opencv_features2d_Release.gch
[ 25%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_read.c.o
[ 26%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_strip.c.o
[ 26%] Built target pch_Generate_opencv_highgui
[ 26%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_swab.c.o
[ 26%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfStringVectorAttribute.cpp.o
[ 26%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_thunder.c.o
[ 26%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_tile.c.o
[ 26%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfOutputFile.cpp.o
[ 26%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_version.c.o
[ 26%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_warning.c.o
Scanning dependencies of target pch_Generate_opencv_video
[ 26%] [ 26%] Generating precomp.hpp
Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_write.c.o
[ 26%] Generating precomp.hpp.gch/opencv_video_Release.gch
[ 26%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_zip.c.o
[ 26%] Building CXX object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_stream.cxx.o
[ 26%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_unix.c.o
[ 26%] Built target pch_Generate_opencv_features2d
Scanning dependencies of target pch_Generate_opencv_perf_core
Linking CXX static library ../lib/liblibtiff.a
[ 26%] Generating perf_precomp.hpp
[ 26%] [ 26%] Built target libtiff
Generating perf_precomp.hpp.gch/opencv_perf_core_Release.gch
Scanning dependencies of target pch_Generate_opencv_test_core
[ 26%] Generating test_precomp.hpp
[ 26%] Generating test_precomp.hpp.gch/opencv_test_core_Release.gch
[ 26%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPizCompressor.cpp.o
[ 26%] Built target pch_Generate_opencv_video
Scanning dependencies of target pch_Generate_opencv_test_flann
[ 27%] Generating test_precomp.hpp
[ 27%] Generating test_precomp.hpp.gch/opencv_test_flann_Release.gch
[ 27%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRational.cpp.o
[ 28%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfAcesFile.cpp.o
[ 28%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTimeCodeAttribute.cpp.o
[ 28%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfChromaticities.cpp.o
[ 28%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTiledMisc.cpp.o
[ 28%] Built target pch_Generate_opencv_perf_core
Scanning dependencies of target pch_Generate_opencv_perf_imgproc
[ 28%] [ 28%] Generating perf_precomp.hpp
Built target pch_Generate_opencv_test_core
[ 28%] Scanning dependencies of target pch_Generate_opencv_test_imgproc
Generating perf_precomp.hpp.gch/opencv_perf_imgproc_Release.gch
[ 28%] Generating test_precomp.hpp
[ 28%] Generating test_precomp.hpp.gch/opencv_test_imgproc_Release.gch
[ 28%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfStdIO.cpp.o
[ 28%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTileDescriptionAttribute.cpp.o
[ 28%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPreviewImageAttribute.cpp.o
[ 28%] Built target pch_Generate_opencv_test_flann
Scanning dependencies of target pch_Generate_opencv_perf_highgui
[ 28%] Generating perf_precomp.hpp
[ 28%] Generating perf_precomp.hpp.gch/opencv_perf_highgui_Release.gch
[ 28%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPreviewImage.cpp.o
[ 28%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfEnvmapAttribute.cpp.o
[ 28%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfHeader.cpp.o
[ 28%] Built target pch_Generate_opencv_perf_imgproc
Scanning dependencies of target pch_Generate_opencv_test_highgui
[ 28%] Built target pch_Generate_opencv_test_imgproc
[ 28%] Scanning dependencies of target pch_Generate_opencv_perf_features2d
Generating test_precomp.hpp
[ 28%] Generating perf_precomp.hpp
[ 28%] Generating perf_precomp.hpp.gch/opencv_perf_features2d_Release.gch
[ 28%] Generating test_precomp.hpp.gch/opencv_test_highgui_Release.gch
[ 28%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfMultiView.cpp.o
[ 28%] Built target pch_Generate_opencv_perf_highgui
[ 28%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfOpaqueAttribute.cpp.o
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfInputFile.cpp.o
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfChannelListAttribute.cpp.o
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfThreading.cpp.o
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfVersion.cpp.o
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfStandardAttributes.cpp.o
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfFramesPerSecond.cpp.o
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfChannelList.cpp.o
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPxr24Compressor.cpp.o
[ 29%] Built target pch_Generate_opencv_perf_features2d
Scanning dependencies of target pch_Generate_opencv_test_features2d
[ 29%] Generating test_precomp.hpp
[ 29%] Generating test_precomp.hpp.gch/opencv_test_features2d_Release.gch
[ 29%] Built target pch_Generate_opencv_test_highgui
Scanning dependencies of target pch_Generate_opencv_calib3d
[ 29%] Generating precomp.hpp
[ 29%] Generating precomp.hpp.gch/opencv_calib3d_Release.gch
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfCompressor.cpp.o
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfMatrixAttribute.cpp.o
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/b44ExpLogTable.cpp.o
[ 30%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfB44Compressor.cpp.o
[ 30%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfDoubleAttribute.cpp.o
[ 30%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfKeyCodeAttribute.cpp.o
[ 30%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfWav.cpp.o
[ 30%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRgbaFile.cpp.o
[ 30%] Built target pch_Generate_opencv_calib3d
Scanning dependencies of target pch_Generate_opencv_perf_calib3d
[ 30%] Generating perf_precomp.hpp
[ 30%] Generating perf_precomp.hpp.gch/opencv_perf_calib3d_Release.gch
[ 30%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfIO.cpp.o
[ 30%] Built target pch_Generate_opencv_test_features2d
[ 30%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRleCompressor.cpp.o
[ 30%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfHuf.cpp.o
[ 30%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfAttribute.cpp.o
[ 30%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTiledOutputFile.cpp.o
[ 30%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfCRgbaFile.cpp.o
[ 30%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfFloatAttribute.cpp.o
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTimeCode.cpp.o
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfZipCompressor.cpp.o
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfLut.cpp.o
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfIntAttribute.cpp.o
Scanning dependencies of target pch_Generate_opencv_test_calib3d
[ 31%] Generating test_precomp.hpp
[ 31%] Built target pch_Generate_opencv_perf_calib3d
[ 31%] Scanning dependencies of target pch_Generate_opencv_ml
Generating test_precomp.hpp.gch/opencv_test_calib3d_Release.gch
[ 31%] Generating precomp.hpp
[ 31%] Generating precomp.hpp.gch/opencv_ml_Release.gch
Scanning dependencies of target pch_Generate_opencv_test_ml
[ 31%] Generating test_precomp.hpp
[ 31%] Generating test_precomp.hpp.gch/opencv_test_ml_Release.gch
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTestFile.cpp.o
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfLineOrderAttribute.cpp.o
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRgbaYca.cpp.o
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfChromaticitiesAttribute.cpp.o
[ 31%] Built target pch_Generate_opencv_ml
Scanning dependencies of target pch_Generate_opencv_perf_video
[ 31%] Generating perf_precomp.hpp
[ 31%] Generating perf_precomp.hpp.gch/opencv_perf_video_Release.gch
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfConvert.cpp.o
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfBoxAttribute.cpp.o
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfVecAttribute.cpp.o
[ 31%] Built target pch_Generate_opencv_test_calib3d
Scanning dependencies of target pch_Generate_opencv_test_video
[ 31%] Generating test_precomp.hpp
[ 32%] Generating test_precomp.hpp.gch/opencv_test_video_Release.gch
[ 33%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTiledInputFile.cpp.o
[ 33%] Built target pch_Generate_opencv_test_ml
Scanning dependencies of target pch_Generate_opencv_legacy
[ 33%] Generating precomp.hpp
[ 33%] Generating precomp.hpp.gch/opencv_legacy_Release.gch
[ 33%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfStringAttribute.cpp.o
[ 33%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfKeyCode.cpp.o
[ 33%] Built target pch_Generate_opencv_perf_video
[ 33%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfMisc.cpp.o
[ 33%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfFrameBuffer.cpp.o
[ 33%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfScanLineInputFile.cpp.o
[ 33%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfEnvmap.cpp.o
[ 33%] Built target pch_Generate_opencv_legacy
Scanning dependencies of target pch_Generate_opencv_test_legacy
[ 33%] Generating test_precomp.hpp
[ 33%] Generating test_precomp.hpp.gch/opencv_test_legacy_Release.gch
[ 33%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTiledRgbaFile.cpp.o
[ 33%] Built target pch_Generate_opencv_test_video
Scanning dependencies of target pch_Generate_opencv_objdetect
[ 33%] Generating precomp.hpp
[ 33%] Generating precomp.hpp.gch/opencv_objdetect_Release.gch
[ 33%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfCompressionAttribute.cpp.o
Scanning dependencies of target pch_Generate_opencv_perf_objdetect
[ 33%] Generating perf_precomp.hpp
[ 33%] Generating perf_precomp.hpp.gch/opencv_perf_objdetect_Release.gch
Linking CXX static library ../lib/libIlmImf.a
[ 33%] Built target IlmImf
Scanning dependencies of target pch_Generate_opencv_test_objdetect
[ 33%] Generating test_precomp.hpp
[ 33%] Generating test_precomp.hpp.gch/opencv_test_objdetect_Release.gch
[ 33%] Built target pch_Generate_opencv_objdetect
Scanning dependencies of target pch_Generate_opencv_photo
[ 33%] Generating precomp.hpp
[ 33%] Generating precomp.hpp.gch/opencv_photo_Release.gch
[ 33%] Built target pch_Generate_opencv_test_legacy
Scanning dependencies of target pch_Generate_opencv_perf_photo
[ 33%] Generating perf_precomp.hpp
[ 34%] Generating perf_precomp.hpp.gch/opencv_perf_photo_Release.gch
[ 34%] Built target pch_Generate_opencv_photo
Scanning dependencies of target pch_Generate_opencv_test_photo
[ 34%] Generating test_precomp.hpp
[ 34%] Generating test_precomp.hpp.gch/opencv_test_photo_Release.gch
[ 34%] Built target pch_Generate_opencv_perf_objdetect
Scanning dependencies of target pch_Generate_opencv_gpu
[ 34%] Generating precomp.hpp
[ 35%] Generating precomp.hpp.gch/opencv_gpu_Release.gch
[ 35%] Built target pch_Generate_opencv_test_objdetect
Scanning dependencies of target pch_Generate_opencv_perf_gpu
[ 35%] Generating perf_precomp.hpp
[ 36%] Generating perf_precomp.hpp.gch/opencv_perf_gpu_Release.gch
[ 36%] Built target pch_Generate_opencv_gpu
Scanning dependencies of target pch_Generate_opencv_test_gpu
[ 36%] Generating test_precomp.hpp
[ 36%] Generating test_precomp.hpp.gch/opencv_test_gpu_Release.gch
[ 36%] Built target pch_Generate_opencv_perf_photo
Scanning dependencies of target pch_Generate_opencv_ocl
[ 36%] Generating precomp.hpp
[ 36%] Generating precomp.hpp.gch/opencv_ocl_Release.gch
[ 36%] Built target pch_Generate_opencv_test_photo
Scanning dependencies of target pch_Generate_opencv_perf_ocl
[ 36%] Generating perf_precomp.hpp
[ 36%] Generating perf_precomp.hpp.gch/opencv_perf_ocl_Release.gch
[ 36%] Built target pch_Generate_opencv_test_gpu
Scanning dependencies of target pch_Generate_opencv_test_ocl
[ 36%] Generating test_precomp.hpp
[ 36%] Generating test_precomp.hpp.gch/opencv_test_ocl_Release.gch
[ 36%] Built target pch_Generate_opencv_perf_gpu
Scanning dependencies of target pch_Generate_opencv_nonfree
[ 37%] Generating precomp.hpp
[ 37%] Generating precomp.hpp.gch/opencv_nonfree_Release.gch
[ 37%] Built target pch_Generate_opencv_ocl
Scanning dependencies of target pch_Generate_opencv_perf_nonfree
[ 37%] Generating perf_precomp.hpp
[ 37%] Generating perf_precomp.hpp.gch/opencv_perf_nonfree_Release.gch
[ 37%] Built target pch_Generate_opencv_test_ocl
Scanning dependencies of target pch_Generate_opencv_test_nonfree
[ 37%] Generating test_precomp.hpp
[ 38%] Generating test_precomp.hpp.gch/opencv_test_nonfree_Release.gch
[ 38%] Built target pch_Generate_opencv_perf_ocl
Scanning dependencies of target pch_Generate_opencv_contrib
[ 38%] Generating precomp.hpp
[ 38%] Generating precomp.hpp.gch/opencv_contrib_Release.gch
[ 38%] Built target pch_Generate_opencv_nonfree
Scanning dependencies of target pch_Generate_opencv_test_contrib
[ 38%] Generating test_precomp.hpp
[ 38%] Generating test_precomp.hpp.gch/opencv_test_contrib_Release.gch
[ 38%] Built target pch_Generate_opencv_perf_nonfree
Scanning dependencies of target pch_Generate_opencv_stitching
[ 39%] Generating precomp.hpp
[ 39%] Generating precomp.hpp.gch/opencv_stitching_Release.gch
[ 39%] Built target pch_Generate_opencv_contrib
Scanning dependencies of target pch_Generate_opencv_perf_stitching
[ 39%] Generating perf_precomp.hpp
[ 39%] Generating perf_precomp.hpp.gch/opencv_perf_stitching_Release.gch
[ 39%] Built target pch_Generate_opencv_test_nonfree
Scanning dependencies of target pch_Generate_opencv_test_stitching
[ 39%] Generating test_precomp.hpp
[ 39%] Generating test_precomp.hpp.gch/opencv_test_stitching_Release.gch
[ 39%] Built target pch_Generate_opencv_test_contrib
Scanning dependencies of target pch_Generate_opencv_perf_superres
[ 39%] Generating perf_precomp.hpp
[ 39%] Generating perf_precomp.hpp.gch/opencv_perf_superres_Release.gch
[ 39%] Built target pch_Generate_opencv_stitching
Scanning dependencies of target pch_Generate_opencv_superres
[ 39%] Generating precomp.hpp
[ 39%] Generating precomp.hpp.gch/opencv_superres_Release.gch
[ 39%] Built target pch_Generate_opencv_perf_stitching
Scanning dependencies of target pch_Generate_opencv_test_superres
[ 39%] Generating test_precomp.hpp
[ 39%] Generating test_precomp.hpp.gch/opencv_test_superres_Release.gch
[ 39%] Built target pch_Generate_opencv_perf_superres
Scanning dependencies of target pch_Generate_opencv_videostab
[ 39%] Generating precomp.hpp
[ 39%] Generating precomp.hpp.gch/opencv_videostab_Release.gch
[ 39%] Built target pch_Generate_opencv_test_stitching
Scanning dependencies of target opencv_core
[ 39%] Built target pch_Generate_opencv_superres
[ 39%] [ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.o
Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/gpumat.cpp.o
[ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix.cpp.o
[ 39%] [ 39%] Built target pch_Generate_opencv_videostab
Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/opengl_interop.cpp.o
[ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o
[ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/persistence.cpp.o
/home/sakura/opencv-2.4.10/modules/core/src/system.cpp: In function ‘(static initializers for /home/sakura/opencv-2.4.10/modules/core/src/system.cpp)’:
/home/sakura/opencv-2.4.10/modules/core/src/system.cpp:280:10: error: inconsistent operand constraints in an ‘asm’
make[2]: ** [modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o] Error 1
make[2]: ** Waiting for unfinished jobs....
[ 39%] Built target pch_Generate_opencv_test_superres
make[1]: ** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: ** [all] Error 2
sakura@ubuntu:~/opencv-2.4.10/build$
`
@sakurazhu
It's a bug of opencv2.10, you can follow this link to modifiy and rebuild opencv. http://code.opencv.org/issues/3983
If you don't want to build opencv from source code, just type:
sudo apt-get install libcv-dev libcvaux-dev libhighgui-dev libopencv-dev
It works for me always.
i have tried your method,but the error happened again and one more error happened
@joyousrabbit
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/gpumat.cpp.o
[ 19%] Built target pch_Generate_opencv_videostab
[ 19%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.o
[ 19%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix.cpp.o
[ 19%] [ 19%] Built target pch_Generate_opencv_superres
Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/opengl_interop.cpp.o
[ 20%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o
[ 20%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/persistence.cpp.o
[ 20%] Built target pch_Generate_opencv_test_superres
[ 20%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matmul.cpp.o
/home/sakura/opencv-2.4.10/modules/core/src/system.cpp: In function ‘(static initializers for /home/sakura/opencv-2.4.10/modules/core/src/system.cpp)’:
/home/sakura/opencv-2.4.10/modules/core/src/system.cpp:280:10: error: inconsistent operand constraints in an ‘asm’
make[2]: ** [modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o] Error 1
make[2]: ** Waiting for unfinished jobs....
make[1]: ** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: ** [all] Error 2
sakura@ubuntu:~/opencv-2.4.10/build$
i have tried gcc 4.6 and gcc 4.9 ,however ,the error still there @joyousrabbit @poine @raulmur
@sakurazhu
Did you modifified the source code as explained by the forum?
I suggest you try the following steps:
thank u @joyousrabbit . I have managed to solve the problem with opencv by your meathod . However when running ORB-SLAM2 ,new problems come again.
/usr/include/eigen3/Eigen/src/Core/NoAlias.h:95:37: required from ‘ExpressionType& Eigen::NoAlias
/home/sakura/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/base_unary_edge.hpp:62:27: required from ‘void g2o::BaseUnaryEdge
/home/sakura/ORB_SLAM2/src/System.cc:426:1: required from here
/usr/include/eigen3/Eigen/src/Core/DenseBase.h:172:59: warning: enumeral mismatch in conditional expression: ‘Eigen::internal::size_at_compile_time<6, 1>::
/usr/include/eigen3/Eigen/src/Core/DenseBase.h: In instantiation of ‘class Eigen::DenseBaseEigen::SelfCwiseBinaryOp
/usr/include/eigen3/Eigen/src/Core/MatrixBase.h:61:34: required from ‘class Eigen::MatrixBaseEigen::SelfCwiseBinaryOp
/usr/include/eigen3/Eigen/src/Core/SelfCwiseBinaryOp.h:58:63: required from ‘class Eigen::SelfCwiseBinaryOpEigen::internal::scalar_difference_op
/usr/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h:221:84: required from ‘Derived& Eigen::MatrixBase
/usr/include/eigen3/Eigen/src/Core/NoAlias.h:95:37: required from ‘ExpressionType& Eigen::NoAlias
/home/sakura/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/base_unary_edge.hpp:62:27: required from ‘void g2o::BaseUnaryEdge
/home/sakura/ORB_SLAM2/src/LoopClosing.cc:770:1: required from here
/usr/include/eigen3/Eigen/src/Core/DenseBase.h:172:59: warning: enumeral mismatch in conditional expression: ‘Eigen::internal::size_at_compile_time<6, 1>::
/usr/include/eigen3/Eigen/src/Core/DenseBase.h: In instantiation of ‘class Eigen::DenseBaseEigen::SelfCwiseBinaryOp
/usr/include/eigen3/Eigen/src/Core/MatrixBase.h:61:34: required from ‘class Eigen::MatrixBaseEigen::SelfCwiseBinaryOp
/usr/include/eigen3/Eigen/src/Core/SelfCwiseBinaryOp.h:58:63: required from ‘class Eigen::SelfCwiseBinaryOpEigen::internal::scalar_sum_op
/usr/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h:235:77: required from ‘Derived& Eigen::MatrixBase
/usr/include/eigen3/Eigen/src/Core/NoAlias.h:91:37: required from ‘ExpressionType& Eigen::NoAlias
/home/sakura/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/base_unary_edge.hpp:63:27: required from ‘void g2o::BaseUnaryEdge
/home/sakura/ORB_SLAM2/src/Tracking.cc:1601:1: required from here
/usr/include/eigen3/Eigen/src/Core/DenseBase.h:172:59: warning: enumeral mismatch in conditional expression: ‘Eigen::internal::size_at_compile_time<6, 6>::
/usr/include/eigen3/Eigen/src/Core/DenseBase.h: In instantiation of ‘class Eigen::DenseBaseEigen::SelfCwiseBinaryOp
/usr/include/eigen3/Eigen/src/Core/MatrixBase.h:61:34: required from ‘class Eigen::MatrixBaseEigen::SelfCwiseBinaryOp
/usr/include/eigen3/Eigen/src/Core/SelfCwiseBinaryOp.h:58:63: required from ‘class Eigen::SelfCwiseBinaryOpEigen::internal::scalar_sum_op
/usr/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h:235:77: required from ‘Derived& Eigen::MatrixBase
/usr/include/eigen3/Eigen/src/Core/NoAlias.h:91:37: required from ‘ExpressionType& Eigen::NoAlias
/home/sakura/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/base_unary_edge.hpp:63:27: required from ‘void g2o::BaseUnaryEdge
/home/sakura/ORB_SLAM2/src/System.cc:426:1: required from here
/usr/include/eigen3/Eigen/src/Core/DenseBase.h:172:59: warning: enumeral mismatch in conditional expression: ‘Eigen::internal::size_at_compile_time<6, 6>::
/usr/include/eigen3/Eigen/src/Core/DenseBase.h: In instantiation of ‘class Eigen::DenseBaseEigen::SelfCwiseBinaryOp
/usr/include/eigen3/Eigen/src/Core/MatrixBase.h:61:34: required from ‘class Eigen::MatrixBaseEigen::SelfCwiseBinaryOp
/usr/include/eigen3/Eigen/src/Core/SelfCwiseBinaryOp.h:58:63: required from ‘class Eigen::SelfCwiseBinaryOpEigen::internal::scalar_sum_op
/usr/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h:235:77: required from ‘Derived& Eigen::MatrixBase
/usr/include/eigen3/Eigen/src/Core/NoAlias.h:91:37: required from ‘ExpressionType& Eigen::NoAlias
/home/sakura/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/base_unary_edge.hpp:63:27: required from ‘void g2o::BaseUnaryEdge
/home/sakura/ORB_SLAM2/src/LoopClosing.cc:770:1: required from here
/usr/include/eigen3/Eigen/src/Core/DenseBase.h:172:59: warning: enumeral mismatch in conditional expression: ‘Eigen::internal::size_at_compile_time<6, 6>::
make[2]: ** [CMakeFiles/ORB_SLAM2.dir/src/LocalMapping.cc.o] Error 1
/usr/include/eigen3/Eigen/src/Core/DenseBase.h: In instantiation of ‘class Eigen::DenseBase
/usr/include/eigen3/Eigen/src/Core/MatrixBase.h:61:34: required from ‘class Eigen::MatrixBase
/usr/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h:176:7: required from ‘class Eigen::CwiseBinaryOpImpl
/usr/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h:119:7: required from ‘class Eigen::CwiseBinaryOp
/usr/include/eigen3/Eigen/src/Core/Dot.h:47:121: required from ‘static Eigen::internal::dot_nocheck
/usr/include/eigen3/Eigen/src/Core/Dot.h:86:71: required from ‘typename Eigen::internal::scalar_product_traits
/home/sakura/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/base_edge.h:60:47: required from ‘double g2o::BaseEdge
/home/sakura/ORB_SLAM2/src/LoopClosing.cc:770:1: required from here
/usr/include/eigen3/Eigen/src/Core/DenseBase.h:172:59: warning: enumeral mismatch in conditional expression: ‘Eigen::internal::size_at_compile_time<2, 1>::
/usr/include/eigen3/Eigen/src/Core/DenseBase.h: In instantiation of ‘class Eigen::DenseBase
/usr/include/eigen3/Eigen/src/Core/MatrixBase.h:61:34: required from ‘class Eigen::MatrixBase
/usr/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h:176:7: required from ‘class Eigen::CwiseBinaryOpImpl
/usr/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h:119:7: required from ‘class Eigen::CwiseBinaryOp
/usr/include/eigen3/Eigen/src/Core/Dot.h:47:121: required from ‘static Eigen::internal::dot_nocheck
/usr/include/eigen3/Eigen/src/Core/Dot.h:86:71: required from ‘typename Eigen::internal::scalar_product_traits
/home/sakura/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/base_edge.h:60:47: required from ‘double g2o::BaseEdge
/home/sakura/ORB_SLAM2/src/System.cc:426:1: required from here
/usr/include/eigen3/Eigen/src/Core/DenseBase.h:172:59: warning: enumeral mismatch in conditional expression: ‘Eigen::internal::size_at_compile_time<2, 1>::
/usr/include/eigen3/Eigen/src/Core/DenseBase.h: In instantiation of ‘class Eigen::DenseBase
/usr/include/eigen3/Eigen/src/Core/MatrixBase.h:61:34: required from ‘class Eigen::MatrixBase
/usr/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h:176:7: required from ‘class Eigen::CwiseBinaryOpImpl
/usr/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h:119:7: required from ‘class Eigen::CwiseBinaryOp
/usr/include/eigen3/Eigen/src/Core/Dot.h:47:121: required from ‘static Eigen::internal::dot_nocheck
/usr/include/eigen3/Eigen/src/Core/Dot.h:86:71: required from ‘typename Eigen::internal::scalar_product_traits
/home/sakura/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/base_edge.h:60:47: required from ‘double g2o::BaseEdge
/home/sakura/ORB_SLAM2/src/Tracking.cc:1601:1: required from here
/usr/include/eigen3/Eigen/src/Core/DenseBase.h:172:59: warning: enumeral mismatch in conditional expression: ‘Eigen::internal::size_at_compile_time<2, 1>::
/usr/include/eigen3/Eigen/src/Core/DenseBase.h: In instantiation of ‘class Eigen::DenseBaseEigen::SelfCwiseBinaryOp
/usr/include/eigen3/Eigen/src/Core/MatrixBase.h:61:34: required from ‘class Eigen::MatrixBaseEigen::SelfCwiseBinaryOp
/usr/include/eigen3/Eigen/src/Core/SelfCwiseBinaryOp.h:58:63: required from ‘class Eigen::SelfCwiseBinaryOpEigen::internal::scalar_difference_op
Most helpful comment
To correct it change here
SparseMatrix::Indextoint. It's a dirty fix, bit it works.