Skip to content
New issue

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

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

Already on GitHub? # to your account

cmake error with tx2(arm) #2

Closed
autoperson opened this issue Jul 23, 2018 · 2 comments
Closed

cmake error with tx2(arm) #2

autoperson opened this issue Jul 23, 2018 · 2 comments

Comments

@autoperson
Copy link

c++: error: unrecognized command line option ‘-msse’
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’
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’
ndt_omp/CMakeFiles/ndt_omp.dir/build.make:62: recipe for target 'slam/ndt_omp/CMakeFiles/ndt_omp.dir/src/pclomp/voxel_grid_covariance_omp.cpp.o' failed
make[2]: *** [slam/ndt_omp/CMakeFiles/ndt_omp.dir/src/pclomp/voxel_grid_covariance_omp.cpp.o] Error 1

I modify CMakeLists.txt with:
add_definitions(-std=c++11)
set(CMAKE_CXX_FLAGS "-std=c++11")
still have error:
catkin_ws/src/slam/ndt_omp/include/pclomp/gicp_omp_impl.hpp:78:61: error: ‘omp_get_thread_num’ was not declared in this scope
auto& nn_indecies = nn_indecies_array[omp_get_thread_num()];

@koide3
Copy link
Owner

koide3 commented Jul 26, 2018

It seems it failed to find OpenMP. Can you check if OpenMP has been installed in your environment?

@autoperson
Copy link
Author

I slove this problem. OpenMP has been installed ,but need to modify CMAKE_CXX_FLAGS "-std=c++11 -fopenmp" in cmakelist.

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

No branches or pull requests

2 participants