[ros-users] Problem compiling with camera1394 package.

Renato Samperio mintaka_alnitak at hotmail.com
Thu Jul 1 15:09:01 UTC 2010


Hi,

I downloaded from SVN the camera1394 located in camera_drivers (not in camera_drivers_experimental).

Then, I added to my manifest.xml file the following line:

  <depend package="camera1394"/>


In my testFile.cpp I do not include any library or declared reference to camera1394.

----------------------------------FILE-START----------------------------------
#include <ros/ros.h>
   
int main(int argc, char** argv){
  ros::init(argc, argv, "testFile");
  ros::NodeHandle n;
  g_cm = new testFile();

  ros::Rate r(100);

  while(n.ok()){
   
    ROS_INFO("ROS is started");
    r.sleep();
  }
}
----------------------------------FILE-END----------------------------------

However it is showing to me a compilation error:

  /usr/include/stdio.h:722: error: initializer expression list treated as compound expression
  /usr/include/stdio.h:727: error: ‘FILE’ was not declared in this scope
  /usr/include/stdio.h:727: error: ‘__stream’ was not declared in this scope
  /usr/include/stdio.h:732: error: variable or field ‘rewind’ declared void
  /usr/include/stdio.h:732: error: ‘FILE’ was not declared in this scope
  /usr/include/stdio.h:732: error: ‘__stream’ was not declared in this scope
  /usr/include/stdio.h:771: error: ‘FILE’ was not declared in this scope
  /usr/include/stdio.h:771: error: expected primary-expression before ‘__restrict__’
  /usr/include/stdio.h:771: error: expected primary-expression before ‘*’ token
  /usr/include/stdio.h:771: error: expected primary-expression before ‘__restrict__’
  /usr/include/stdio.h:771: error: initializer expression list treated as compound expression
  /usr/include/stdio.h:776: error: ‘FILE’ was not declared in this scope
  /usr/include/stdio.h:776: error: ‘__stream’ was not declared in this scope
  /usr/include/stdio.h:776: error: expected primary-expression before ‘const’
  /usr/include/stdio.h:776: error: initializer expression list treated as compound expression
  /usr/include/stdio.h:799: error: variable or field ‘clearerr’ declared void
  /usr/include/stdio.h:799: error: ‘FILE’ was not declared in this scope
  /usr/include/stdio.h:799: error: ‘__stream’ was not declared in this scope
  /usr/include/stdio.h:801: error: ‘FILE’ was not declared in this scope
  /usr/include/stdio.h:801: error: ‘__stream’ was not declared in this scope
  /usr/include/stdio.h:803: error: ‘FILE’ was not declared in this scope
  /usr/include/stdio.h:803: error: ‘__stream’ was not declared in this scope
  In file included from /usr/include/dc1394/camera.h:22,
                   from /usr/include/dc1394/dc1394.h:46,
                   from /opt/ros/boxturtle/stacks/camera_drivers/camera1394/src/nodes/features.h:41,
                   from /usr/include/c++/4.4/i486-linux-gnu/bits/os_defines.h:39,
                   from /usr/include/c++/4.4/i486-linux-gnu/bits/c++config.h:243,
                   from /usr/include/c++/4.4/iostream:39,
                   from /opt/ros/boxturtle/ros/core/roslib/include/ros/duration.h:38,
                   from /opt/ros/boxturtle/ros/core/roslib/include/ros/time.h:38,
                   from /opt/ros/boxturtle/ros/core/roscpp/include/ros/ros.h:38,
                   from /home/renato/workspace/sscrovers-svn/test/src/testFile.cpp:1:
  /usr/include/stdio.h:916: error: expected declaration before ‘}’ token
  make[3]: *** [CMakeFiles/testFile.dir/src/testFile.o] Error 1
  make[3]: Leaving directory `/home/renato/workspace/sscrovers-svn/test/build'
  make[2]: *** [CMakeFiles/testFile.dir/all] Error 2
  make[2]: Leaving directory `/home/renato/workspace/sscrovers-svn/test/build'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/home/renato/workspace/sscrovers-svn/test/build'

Does anyone knows how could be the best form of integrate camera1394 package into new a ROS packages?


Kind regards

Renato



 		 	   		  
_________________________________________________________________
Hotmail: Free, trusted and rich email service.
https://signup.live.com/signup.aspx?id=60969
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/ros-users/attachments/20100701/f69c0e90/attachment-0002.html>


More information about the ros-users mailing list