Problem in using serial package? [closed]

asked 2013-07-23 16:19:22 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I got to install the Serial package and trying to write program I am having problem as Compiler ('eclipse' made it compatible to rosworkspace) showing problem to resolve resolve the #include <unix.h>. What I understand is that unix.h directory is not available.
I created a package with dependencies as rospy std_msgs roscpp serial. Unix.h is header file in of serial package but it is showing unresolved inclusion.

I am using linux 12.04, the ROS version is Groovy. The eclipse resolve the inclusion at the time of writing the the line #include <unix.h>.Its showing error in resolving inclusion.
Please tell how to resolve this problem.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2014-10-27 19:30:53.674847

Comments

There's not enough information here for us to help you. For any question involving code, include the relevant code, any error messages, and what you've tried/where else you've looked for a solution. (the more work you've done on your own, the more likely people are going to want to help)

lindzey gravatar image lindzey  ( 2013-07-23 19:04:59 -0500 )edit

What OS are you using, what version of ROS are you using, and can you post the output of `locate unix.h`? (also please edit your question rather than posting updates in an answers)

William gravatar image William  ( 2013-07-23 20:16:51 -0500 )edit

I edited the question, I hope its ok now. Thank you for suggesting the changes.

lifelonglearner gravatar image lifelonglearner  ( 2013-07-23 20:25:10 -0500 )edit

Which file do you have open? If you have my serial library from source and you are looking at the unix.cc file, then you'll need to ensure that the include folder is in the include path for eclipse. Otherwise it doesn't know where to find `serial/impl/unix.h`

William gravatar image William  ( 2013-07-23 20:34:30 -0500 )edit