[ros-users] Problem compiling with camera1394 package.

Eric Perko wisesage5001 at gmail.com
Thu Jul 1 15:17:05 UTC 2010


Hi Renato,

Are you running Boxturtle or Cturtle?

And your test file does compile successfully if you remove the
dependency on camera1394?

It seems like an odd error, as I just double checked one of my
packages, and it compiles just fine with a dependency on camera1394.
That is with the latest Cturtle amd64 debs for Ubuntu 10.04.

- Eric

On Thu, Jul 1, 2010 at 11: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
>
>



More information about the ros-users mailing list