<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi Eric,<br><br>The file compiles successfully when I don't have the package camera1394. However, it doesn't have any library to be included.<br><br>I am compiling with last CTurtle. Though I downloaded manually the camera1394 and camera_info_manager.<br><br>Also, I am compiling in i686 Ubuntu 9.10 Karmic.<br><br>Any ideas?<br><br>Regards,<br><br>Renato.<br><br>> Date: Thu, 1 Jul 2010 11:17:05 -0400<br>> From: wisesage5001@gmail.com<br>> To: ros-users@code.ros.org<br>> Subject: Re: [ros-users] Problem compiling with camera1394 package.<br>> <br>> Hi Renato,<br>> <br>> Are you running Boxturtle or Cturtle?<br>> <br>> And your test file does compile successfully if you remove the<br>> dependency on camera1394?<br>> <br>> It seems like an odd error, as I just double checked one of my<br>> packages, and it compiles just fine with a dependency on camera1394.<br>> That is with the latest Cturtle amd64 debs for Ubuntu 10.04.<br>> <br>> - Eric<br>> <br>> On Thu, Jul 1, 2010 at 11:09 AM, Renato Samperio<br>> <mintaka_alnitak@hotmail.com> wrote:<br>> > Hi,<br>> ><br>> > I downloaded from SVN the camera1394 located in camera_drivers (not in<br>> > camera_drivers_experimental).<br>> ><br>> > Then, I added to my manifest.xml file the following line:<br>> ><br>> >   <depend package="camera1394"/><br>> ><br>> ><br>> > In my testFile.cpp I do not include any library or declared reference to<br>> > camera1394.<br>> ><br>> > ----------------------------------FILE-START----------------------------------<br>> > #include <ros/ros.h><br>> ><br>> > int main(int argc, char** argv){<br>> >   ros::init(argc, argv, "testFile");<br>> >   ros::NodeHandle n;<br>> >   g_cm = new testFile();<br>> ><br>> >   ros::Rate r(100);<br>> ><br>> >   while(n.ok()){<br>> ><br>> >     ROS_INFO("ROS is started");<br>> >     r.sleep();<br>> >   }<br>> > }<br>> > ----------------------------------FILE-END----------------------------------<br>> ><br>> > However it is showing to me a compilation error:<br>> ><br>> >   /usr/include/stdio.h:722: error: initializer expression list treated as<br>> > compound expression<br>> >   /usr/include/stdio.h:727: error: ‘FILE’ was not declared in this scope<br>> >   /usr/include/stdio.h:727: error: ‘__stream’ was not declared in this scope<br>> >   /usr/include/stdio.h:732: error: variable or field ‘rewind’ declared void<br>> >   /usr/include/stdio.h:732: error: ‘FILE’ was not declared in this scope<br>> >   /usr/include/stdio.h:732: error: ‘__stream’ was not declared in this scope<br>> >   /usr/include/stdio.h:771: error: ‘FILE’ was not declared in this scope<br>> >   /usr/include/stdio.h:771: error: expected primary-expression before<br>> > ‘__restrict__’<br>> >   /usr/include/stdio.h:771: error: expected primary-expression before ‘*’<br>> > token<br>> >   /usr/include/stdio.h:771: error: expected primary-expression before<br>> > ‘__restrict__’<br>> >   /usr/include/stdio.h:771: error: initializer expression list treated as<br>> > compound expression<br>> >   /usr/include/stdio.h:776: error: ‘FILE’ was not declared in this scope<br>> >   /usr/include/stdio.h:776: error: ‘__stream’ was not declared in this scope<br>> >   /usr/include/stdio.h:776: error: expected primary-expression before<br>> > ‘const’<br>> >   /usr/include/stdio.h:776: error: initializer expression list treated as<br>> > compound expression<br>> >   /usr/include/stdio.h:799: error: variable or field ‘clearerr’ declared<br>> > void<br>> >   /usr/include/stdio.h:799: error: ‘FILE’ was not declared in this scope<br>> >   /usr/include/stdio.h:799: error: ‘__stream’ was not declared in this scope<br>> >   /usr/include/stdio.h:801: error: ‘FILE’ was not declared in this scope<br>> >   /usr/include/stdio.h:801: error: ‘__stream’ was not declared in this scope<br>> >   /usr/include/stdio.h:803: error: ‘FILE’ was not declared in this scope<br>> >   /usr/include/stdio.h:803: error: ‘__stream’ was not declared in this scope<br>> >   In file included from /usr/include/dc1394/camera.h:22,<br>> >                    from /usr/include/dc1394/dc1394.h:46,<br>> >                    from<br>> > /opt/ros/boxturtle/stacks/camera_drivers/camera1394/src/nodes/features.h:41,<br>> >                    from<br>> > /usr/include/c++/4.4/i486-linux-gnu/bits/os_defines.h:39,<br>> >                    from<br>> > /usr/include/c++/4.4/i486-linux-gnu/bits/c++config.h:243,<br>> >                    from /usr/include/c++/4.4/iostream:39,<br>> >                    from<br>> > /opt/ros/boxturtle/ros/core/roslib/include/ros/duration.h:38,<br>> >                    from<br>> > /opt/ros/boxturtle/ros/core/roslib/include/ros/time.h:38,<br>> >                    from<br>> > /opt/ros/boxturtle/ros/core/roscpp/include/ros/ros.h:38,<br>> >                    from<br>> > /home/renato/workspace/sscrovers-svn/test/src/testFile.cpp:1:<br>> >   /usr/include/stdio.h:916: error: expected declaration before ‘}’ token<br>> >   make[3]: *** [CMakeFiles/testFile.dir/src/testFile.o] Error 1<br>> >   make[3]: Leaving directory<br>> > `/home/renato/workspace/sscrovers-svn/test/build'<br>> >   make[2]: *** [CMakeFiles/testFile.dir/all] Error 2<br>> >   make[2]: Leaving directory<br>> > `/home/renato/workspace/sscrovers-svn/test/build'<br>> >   make[1]: *** [all] Error 2<br>> >   make[1]: Leaving directory<br>> > `/home/renato/workspace/sscrovers-svn/test/build'<br>> ><br>> > Does anyone knows how could be the best form of integrate camera1394 package<br>> > into new a ROS packages?<br>> ><br>> ><br>> > Kind regards<br>> ><br>> > Renato<br>> ><br>> ><br>> ><br>> ><br>> > ________________________________<br>> > Hotmail: Free, trusted and rich email service. Get it now.<br>> > _______________________________________________<br>> > ros-users mailing list<br>> > ros-users@code.ros.org<br>> > https://code.ros.org/mailman/listinfo/ros-users<br>> ><br>> ><br>> _______________________________________________<br>> ros-users mailing list<br>> ros-users@code.ros.org<br>> https://code.ros.org/mailman/listinfo/ros-users<br>                                        <br /><hr />Hotmail: Free, trusted and rich email service. <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>Get it now.</a></body>
</html>