Ask Your Question
0

Mac os 10.8.2 Ros Fuerte, tutorial "CMake with rosserial_arduino" problem

asked 2012-09-29 09:51:30 -0500

Darius gravatar image

Was following http://www.ros.org/wiki/rosserial_arduino/Tutorials/CMake tutorial on ros website, "cmake ." command finished and then when i ran "make chatter" command, got these errors:

avr-g++: error: unrecognized command line option '-arch' avr-g++: error: x86_64: No such file or directory make[3]: * [CMakeFiles/chatter.dir/src/chatter.cpp.o] Error 1 make[2]: [CMakeFiles/chatter.dir/all] Error 2 make[1]: [CMakeFiles/chatter.dir/rule] Error 2 make: * [chatter] Error 2

I think it has something to do with CMAKE_CXX_FLAGS flags, wonder if there is any way to remove "-arch x86_64" flag.

Additional info:

$ which avr-g++ /usr/local/bin/avr-g++ $ avr-g++ --version avr-g++ (GCC) 4.7.0

$ which gcc /usr/bin/gcc $ gcc --version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-09-29 10:47:15 -0500

Darius gravatar image

Managed to change it manually, by editing CMakeFiles/chatter.dir/flags.make file, but then got stuck with another problem :) "fatal error: Arduino.h: No such file or directory" well at least my arduino ide works with ros..

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-09-29 09:51:30 -0500

Seen: 340 times

Last updated: Sep 29 '12