[ros-users] Problem compiling with camera1394 package.
Renato Samperio
mintaka_alnitak at hotmail.com
Sun Jul 4 19:26:07 UTC 2010
Hi Brian,
It was an error originated in file: "Features.h". It was in line 43 when it was looking for file: "#include "camera1394/Camera1394Config.h".
I solved this problem by adding "-I${prefix}/cpp" to the <cpp cflags=...> tag in manifest.xml and it compiled.
<export>
<cpp cflags="-I${prefix}/src/nodes -I${prefix}/cpp -Wall -g"/>
</export>
Should this file requires to be corrected from repository?
Thanks for your help as I couldn't find this error without the VERBOSE option.
Kind regads,
Renato.
> Date: Thu, 1 Jul 2010 08:34:04 -0700
> From: gerkey at willowgarage.com
> To: ros-users at code.ros.org
> Subject: Re: [ros-users] Problem compiling with camera1394 package.
>
> Can you post the full output from a verbose build in your package?
> make VERBOSE=1
>
> It looks like something is adding camera1394/src/nodes to the include
> path, which is causing the compiler to find features.h in there,
> instead of in /usr/include.
>
> brian.
>
> On Thu, Jul 1, 2010 at 8:09 AM, Renato Samperio
> <mintaka_alnitak at hotmail.com> wrote:
> > 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. Get it now.
> > _______________________________________________
> > ros-users mailing list
> > ros-users at code.ros.org
> > https://code.ros.org/mailman/listinfo/ros-users
> >
> >
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
_________________________________________________________________
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.ros.org/pipermail/ros-users/attachments/20100704/4163440e/attachment-0004.html>
More information about the ros-users
mailing list