-
Notifications
You must be signed in to change notification settings - Fork 178
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
unrecognized command line option '-msse3' #35
Comments
Hi @fangthu, this issue looks similar to the one already solved in fovis srv/fovis#17, could you please try the same approach and do a pull request? |
hi @miquelmassot thank you for quick response. I have tried two approach, but it comes with some new issues. Approach 1: (1). add 'set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")' to my cmake file (2). change ' add_definitions("-msse3")' to Approach 2: (1). add 'set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")' to my cmake file (2). change ' add_definitions("-msse3")' to The debug information is in the end. It looks like emmintirn,h is wrong. My hardware is odriod XU4 with a 2GB RAM . [ 0%] [ 7%] Built target std_msgs_generate_messages_cpp |
hi @miquelmassot Thank you very much .
But is still does not work. And when do you mean by 'Have you tried if plain libviso2 compiles' ? compile this package alone? |
Hi. Your odroid XU4 has an ARM processor which indeed doesn't support Intels SSE intrinsics.
). |
Hi! Based on what can you write this compatibility header? |
I didn't write the header myself, but that's essentially how it's done. |
thank you very much~ Your suggestions are really helpful. @miquelmassot @Tymolc |
@Tymolc @miquelmassot
Then I edited filter.h and matcher.h to include this file. Then I edited the CMakeLists.txt file located at:
I added: I also edited the CMakeLists.txt located at:
I added and edited lines as: Now when I run catkin_make, I get error saying mm_free and mm_malloc are not declared in scope. How can I fix this? Thank You. |
Right, I think I had the same problem. What I did was, I commented the check if MM_ALLOC_H is defined (line 14 and corresponding endif in line 46 in the sse-to-neon.h) |
@Tymolc |
If you want to provide a pull request I would merge it to a new ARM branch for future users. |
@miquelmassot I would love to help, but I am quite new to ROS. So, I would like to know how you want it to be done. I know what files I have edited. Do you want me to provide just those files or do you want me copy the entire viso2 folder from my ROS Indigo catkin workspace? I can also include a readme file inside the folder. |
@syamprasadkr I meant through a pull request I forked our own project on my github and did the changes you mentioned. Could you please confirm? The fork is in https://github.com/miquelmassot/viso2 branch arm. |
Hi, I am trying to install viso2_arm package on Firefly 3288 plus board, running ROS Indigo, but when I run catkin_make, I get error. I am deletes all lines before mentionated (-msse3) but can not works. Which is the posible problem?. Thanks you. |
@miquelmassot I tried to install your "arm" branch but when compiling I got the -msse3 option error :( |
Hi @gbr1, have you tried the solution proposed in this comment? I would also like to mention that we are not maintainers of libviso2, we only provide a wrapper for ROS, expecting Ubuntu 64bit. We don't test other platforms such as ARM. |
@miquelmassot yes! |
Have you tried also this one? https://github.com/miquelmassot/viso2/tree/arm |
@miquelmassot Yes! Maybe could be this issue only for odroid? ( @syamprasadkr used a TX1) |
Can you make sure that Neon capabilities are enabled (i.e. the #if defined(ARM_NEON) is true)? |
Hello, Don't forget to turn ARM_CROSS_COMPILATION on: Let me know if I should create a pull request. |
@fabolhak Hi, we did try cloning your branch to our odroid and it is showing us the same error as before. Are we missing something? Can you please check? Its urgent. |
Hey, what kind of error are you referring to? Still the This is the only possible errors I can think of. Unfortunately, I don't have an odroid here (only Jetson). |
Yeah, checked. Doesn't work. Do you think there might be something else that makes it different for your code to run on Jetson compared to the odroid. If there is I might be able to check and make it run for the odroid. |
I was able to find all the places that set the |
hi, I am trying to use this package in my odriod.
ROS version : indigo
OS: Ubuntu 14.04
I have downloaded package in my own workspace.
When I run 'catkin_make', there are some errors as below:
Could you help to fix this problem? Thx
Scanning dependencies of target viso2
[ 0%] [ 0%] [ 0%] [ 0%] [ 0%] Built target topic_tools_generate_messages_cpp
[ 0%] Built target std_msgs_generate_messages_cpp
Built target sensor_msgs_generate_messages_lisp
Built target nav_msgs_generate_messages_py
Built target roscpp_generate_messages_cpp
Built target sensor_msgs_generate_messages_py
[ 7%] [ 14%] [ 21%] Building CXX object viso2/libviso2/CMakeFiles/viso2.dir/libviso2/src/filter.cpp.o
[ 21%] [ 28%] Building CXX object viso2/libviso2/CMakeFiles/viso2.dir/libviso2/src/matcher.cpp.o
[ 28%] Built target _viso2_ros_generate_messages_check_deps_VisoInfo
Building CXX object viso2/libviso2/CMakeFiles/viso2.dir/libviso2/src/matrix.cpp.o
Building CXX object viso2/libviso2/CMakeFiles/viso2.dir/libviso2/src/reconstruction.cpp.o
g++-4.8.real: error: unrecognized command line option '-msse3'
Built target roscpp_generate_messages_py
make[2]: *** [viso2/libviso2/CMakeFiles/viso2.dir/libviso2/src/filter.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
g++-4.8.real: error: unrecognized command line option '-msse3'
make[2]: *** [viso2/libviso2/CMakeFiles/viso2.dir/libviso2/src/matcher.cpp.o] Error 1
[ 28%] g++-4.8.real: error: unrecognized command line option '-msse3'
make[2]: *** [viso2/libviso2/CMakeFiles/viso2.dir/libviso2/src/matrix.cpp.o] Error 1
Built target roscpp_generate_messages_lisp
g++-4.8.real: error: unrecognized command line option '-msse3'
make[2]: *** [viso2/libviso2/CMakeFiles/viso2.dir/libviso2/src/reconstruction.cpp.o] Error 1
make[1]: *** [viso2/libviso2/CMakeFiles/viso2.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 28%] Built target nav_msgs_generate_messages_lisp
[ 28%] Built target actionlib_msgs_generate_messages_cpp
[ 28%] [ 28%] Built target tf_generate_messages_py
[ 28%] [ 28%] Built target actionlib_msgs_generate_messages_lisp
Built target rosgraph_msgs_generate_messages_py
Built target rosgraph_msgs_generate_messages_cpp
[ 28%] Built target nodelet_generate_messages_lisp
make: *** [all] Error 2
Invoking "make -j8 -l8" failed
The text was updated successfully, but these errors were encountered: