<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Dear Brian,<br><br>I sent a wrongly assumption for a problem you helped me to solve with your advices.<br><br>Though, I made a last modification and it compiled. <br><br>I updated the manifest.xml as: <br><br>  <export><br>    <cpp cflags="-I${prefix}/src/nodes -I${prefix}/cfg/cpp -Wall -g"/><br>  </export><br><br><br>Regards,<br><br>Renato.<br><br><hr id="stopSpelling">From: mintaka_alnitak@hotmail.com<br>To: ros-users@code.ros.org<br>Date: Sun, 4 Jul 2010 19:56:59 +0000<br>Subject: Re: [ros-users] Problem compiling with camera1394 package.<br><br>



<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>


Hi again Brian,<br><br>I made a wrong compilation and the package is still not compiling even modifying the cflags tag.<br><br>My apologies for wrong assumptions.<br><br>Kind regards,<br><br>Renato.<br><br><hr id="ecxstopSpelling">From: mintaka_alnitak@hotmail.com<br>To: ros-users@code.ros.org<br>Date: Sun, 4 Jul 2010 19:26:07 +0000<br>Subject: Re: [ros-users] Problem compiling with camera1394 package.<br><br>



<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>


Hi Brian,<br><br>It was an error originated in file: "Features.h". It was in line 43 when it was looking for file: "#include "camera1394/Camera1394Config.h". <br><br><br>I solved this problem by adding "-I${prefix}/cpp" to the  <cpp cflags=...> tag in manifest.xml and it compiled.<br><br><br>  <export><br>    <cpp cflags="-I${prefix}/src/nodes -I${prefix}/cpp -Wall -g"/><br>  </export><br><br><br>Should this file requires to be corrected from repository?<br><br><br>Thanks for your help as I couldn't find this error without the VERBOSE option.<br><br>Kind regads,<br><br>Renato.<br><br>> Date: Thu, 1 Jul 2010 08:34:04 -0700<br>> From: gerkey@willowgarage.com<br>> To: ros-users@code.ros.org<br>> Subject: Re: [ros-users] Problem compiling with camera1394 package.<br>> <br>> Can you post the full output from a verbose build in your package?<br>>   make VERBOSE=1<br>> <br>> It looks like something is adding camera1394/src/nodes to the include<br>> path, which is causing the compiler to find features.h in there,<br>> instead of in /usr/include.<br>> <br>>  brian.<br>> <br>> On Thu, Jul 1, 2010 at 8: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">Get it now.</a>                                         <br><hr>Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. <a href="https://signup.live.com/signup.aspx?id=60969">Sign up now.</a>                                        <br /><hr />Hotmail: Powerful Free email with security by Microsoft. <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>Get it now.</a></body>
</html>