Open LiliMeng opened 10 years ago
can you add rosbuild_check_for_sse()
to the CMakeLists.txt in dvo_ros (somewhere after rosbuild_init()
). otherwise, which processor do you have? does it support SSE instructions?
Hi Chris, thank you so much for your kind reply and help! It still doesn't work after I add rosbuild_check_for_sse() to the CMakeLists.txt in dvo_ros (somewhere after rosbuild_init()
Here is the processor information:
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 58 model name : Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz stepping : 9 microcode : 0x15 cpu MHz : 1200.000 cache size : 3072 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 13 wp : yes
can you try adding the following lines to the CMakeLists.txt in dvo_ros?
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO
"${SSE_FLAGS} -O3 -march=native -msse3"
)
try add set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse -msse2 -msse3")
Hi,
/usr/lib/gcc/i686-linux-gnu/4.6/include/mmintrin.h:32:3: error: #error "MMX instruction set not enabled" In file included from /home/lili/fuerte_workspace/sandbox/dvo_slam/dvo_core/include/dvo/core/surface_pyramid.h:25:0, from /home/lili/fuerte_workspace/sandbox/dvo_slam/dvo_ros/src/camera_dense_tracking.cpp:27: /usr/lib/gcc/i686-linux-gnu/4.6/include/emmintrin.h:32:3: error: #error "SSE2 instruction set not enabled" /home/lili/fuerte_workspace/sandbox/dvo_slam/dvo_core/include/dvo/core/datatypes.h:33:28: warning: ‘dvo::core::Invalid’ defined but not used [-Wunused-variable] /home/lili/fuerte_workspace/sandbox/dvo_slam/dvo_core/include/dvo/core/datatypes.h:36:24: warning: ‘dvo::core::InvalidDepth’ defined but not used [-Wunused-variable] make[3]: * [CMakeFiles/dvo_ros.dir/src/camera_dense_tracking.o] Error 1 make[3]: Leaving directory `/home/lili/fuerte_workspace/sandbox/dvo_slam/dvo_ros/build' make[2]: * [CMakeFiles/dvo_ros.dir/all] Error 2 make[2]: Leaving directory
/home/lili/fuerte_workspace/sandbox/dvo_slam/dvo_ros/build' make[1]: **\* [all] Error 2 make[1]: Leaving directory
/home/lili/fuerte_workspace/sandbox/dvo_slam/dvo_ros/build' -------------------------------------------------------------------------------} [ rosmake ] Output from build of package dvo_ros written to: [ rosmake ] /home/lili/.ros/rosmake/rosmake_output-20140508-215630/dvo_ros/build_output.log [rosmake-0] Finished <<< dvo_ros [FAIL] [ 6.04 seconds ][ rosmake ] Halting due to failure in package dvo_ros. [ rosmake ] Waiting for other threads to complete. [ rosmake ] Results:
[ rosmake ] Built 41 packages with 1 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /home/lili/.ros/rosmake/rosmake_output-20140508-215630
Could anyone provide some suggestions? Many thanks in advance! :)