hdl_localization icon indicating copy to clipboard operation
hdl_localization copied to clipboard

c++: error: unrecognized command line option ‘-msse’; did you mean ‘-fdse’?

Open jsYangCode opened this issue 4 years ago • 4 comments

hello,friends. today, i compile this on Xavier which is NVIDIA's product, it is the ARM architecture different from the intel‘s x86_64. when i build it on Xavier, some errors occur!! like these: c++: error: unrecognized command line option ‘-msse’; did you mean ‘-fdse’? c++: error: unrecognized command line option ‘-msse2’ c++: error: unrecognized command line option ‘-msse3’ c++: error: unrecognized command line option ‘-msse4’ c++: error: unrecognized command line option ‘-msse4.1’ c++: error: unrecognized command line option ‘-msse4.2’ c++: error: unrecognized command line option ‘-msse’; did you mean ‘-fdse’? c++: error: unrecognized command line option ‘-msse2’ c++: error: unrecognized command line option ‘-msse3’ c++: error: unrecognized command line option ‘-msse4’ c++: error: unrecognized command line option ‘-msse4.1’ c++: error: unrecognized command line option ‘-msse4.2’

In the CMakeLists.txt is "add_definitions(-std=c++11 -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2) set(CMAKE_CXX_FLAGS "-std=c++11 -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2")". which is OK on the intel‘s x86_64 architecture. Can you give me some help ? THANK YOU FIRST!!

jsYangCode avatar Mar 13 '20 01:03 jsYangCode

did you solve this? if you have soled, pease tell me how to do

cyan-color avatar Dec 21 '21 09:12 cyan-color

does u guys solve this problem

ZBoIsHere avatar May 11 '22 03:05 ZBoIsHere

You need to remove the -msse from the cmakelists.txt. See below for example just comment it out.

if("$ENV{ROS_DISTRO}" STRGREATER "melodic") add_definitions(-std=c++17) #add_definitions(-std=c++17 -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2) #set(CMAKE_CXX_FLAGS "-std=c++17 -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2") set(CMAKE_CXX_FLAGS "-std=c++17") else() #add_definitions(-std=c++11 -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2) add_definitions(-std=c++11) #set(CMAKE_CXX_FLAGS "-std=c++11 -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2") set(CMAKE_CXX_FLAGS "-std=c++11") endif()

THLL245 avatar May 24 '22 14:05 THLL245

i have the same problem, someone can solve it?

Strinkin avatar Mar 03 '24 15:03 Strinkin