[Ros-kinect] failure compiling openni_tracker

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Ros-kinect] failure compiling openni_tracker

Marco Clocchiatti
on a gentoo ditribution:
failure compiling openni_tracker, from
http://www.ros.org/wiki/openni_kinect?action=AttachFile&do=get&target=openni_kinect.rosinstall

[rosmake-0] Starting >>> pcl_ros [ make ]                                                                                  
[ rosmake ] Last 40 linesenni_tracker: 2.0 sec ] [ pcl_ros: 0.5 sec ]
[ 2 Active 52/55 Complete ]
{-------------------------------------------------------------------------------
  /usr/include/boost-1_42/boost/date_time/gregorian/conversion.hpp:44:
warning: missing initializer for member ‘tm::tm_zone’
  In file included from /usr/include/boost-1_42/boost/thread/xtime.hpp:15,
                   from
/usr/include/boost-1_42/boost/thread/pthread/mutex.hpp:13,
                   from /usr/include/boost-1_42/boost/thread/mutex.hpp:16,
                   from /opt/dback/geometry/tf/include/tf/time_cache.h:36,
                   from /opt/dback/geometry/tf/include/tf/tf.h:43,
                   from
/opt/dback/geometry/tf/include/tf/transform_broadcaster.h:36,
                   from
/opt/openni_kinect/openni_kinect/openni_tracker/src/openni_tracker.cpp:5:
  /usr/include/boost-1_42/boost/date_time/posix_time/conversion.hpp: In
function ‘tm boost::posix_time::to_tm(const
boost::posix_time::time_duration&)’:
  /usr/include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46:
warning: missing initializer for member ‘tm::tm_sec’
  /usr/include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46:
warning: missing initializer for member ‘tm::tm_min’
  /usr/include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46:
warning: missing initializer for member ‘tm::tm_hour’
  /usr/include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46:
warning: missing initializer for member ‘tm::tm_mday’
  /usr/include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46:
warning: missing initializer for member ‘tm::tm_mon’
  /usr/include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46:
warning: missing initializer for member ‘tm::tm_year’
  /usr/include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46:
warning: missing initializer for member ‘tm::tm_wday’
  /usr/include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46:
warning: missing initializer for member ‘tm::tm_yday’
  /usr/include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46:
warning: missing initializer for member ‘tm::tm_isdst’
  /usr/include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46:
warning: missing initializer for member ‘tm::tm_gmtoff’
  /usr/include/boost-1_42/boost/date_time/posix_time/conversion.hpp:46:
warning: missing initializer for member ‘tm::tm_zone’
  /opt/openni_kinect/openni_kinect/openni_tracker/src/openni_tracker.cpp: At
global scope:
  /opt/openni_kinect/openni_kinect/openni_tracker/src/openni_tracker.cpp:14:
error: ‘xn’ has not been declared
  /opt/openni_kinect/openni_kinect/openni_tracker/src/openni_tracker.cpp:14:
error: expected constructor, destructor, or type conversion before ‘g_Context’
  /opt/openni_kinect/openni_kinect/openni_tracker/src/openni_tracker.cpp:15:
error: ‘xn’ has not been declared
  /opt/openni_kinect/openni_kinect/openni_tracker/src/openni_tracker.cpp:15:
error: expected constructor, destructor, or type conversion before
‘g_DepthGenerator’
  /opt/openni_kinect/openni_kinect/openni_tracker/src/openni_tracker.cpp:16:
error: ‘xn’ has not been declared
  /opt/openni_kinect/openni_kinect/openni_tracker/src/openni_tracker.cpp:16:
error: expected constructor, destructor, or type conversion before
‘g_UserGenerator’
  /opt/openni_kinect/openni_kinect/openni_tracker/src/openni_tracker.cpp:18:
error: ‘XnBool’ does not name a type
  /opt/openni_kinect/openni_kinect/openni_tracker/src/openni_tracker.cpp:19:
error: ‘XnChar’ does not name a type
  /opt/openni_kinect/openni_kinect/openni_tracker/src/openni_tracker.cpp:21:
error: expected initializer before ‘User_NewUser’
  /opt/openni_kinect/openni_kinect/openni_tracker/src/openni_tracker.cpp:30:
error: expected initializer before ‘User_LostUser’
  /opt/openni_kinect/openni_kinect/openni_tracker/src/openni_tracker.cpp:34:
error: expected initializer before ‘UserCalibration_CalibrationStart’
  /opt/openni_kinect/openni_kinect/openni_tracker/src/openni_tracker.cpp:38:
error: expected initializer before ‘UserCalibration_CalibrationEnd’
  make[3]: *** [CMakeFiles/openni_tracker.dir/src/openni_tracker.o] Error 1
  make[3]: Leaving directory
`/opt/openni_kinect/openni_kinect/openni_tracker/build'
  make[2]: *** [CMakeFiles/openni_tracker.dir/all] Error 2
  make[2]: Leaving directory
`/opt/openni_kinect/openni_kinect/openni_tracker/build'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory
`/opt/openni_kinect/openni_kinect/openni_tracker/build'
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package openni_tracker written to:
[ rosmake ]
/opt/dback/.ros/rosmake/rosmake_output-20110408-003938/openni_tracker/build_output.log
[rosmake-3] Finished <<< openni_tracker [FAIL] [ 2.01 seconds ]                                                            
[ rosmake ] Halting due to failure in package openni_tracker.
[ rosmake ] Waiting for other threads to complete.          

_______________________________________________
Ros-kinect mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-kinect
Reply | Threaded
Open this post in threaded view
|

Re: [Ros-kinect] failure compiling openni_tracker

Marco Clocchiatti
boh?

in the previous log output I read:
/opt/openni_kinect/openni_kinect/openni_tracker/src/openni_tracker.cpp:14:
error: ‘xn’ has not been declared

in /opt/openni_kinect/openni_kinect/openni_tracker/src/openni_tracker.cpp I
have:

#include <XnOpenNI.h>

an line 8.
but if I found any XnOpenNI.h in my /opt/dback or /opt/openni_kinect folders,
I don't find anything.

why may this happen?
that's the script I'm using to build everithing:

#!/bin/bash
[ -d /opt/dback ] || mkdir /opt/dback
export HOME=/opt/dback
rosinstall /opt/dback
"http://packages.ros.org/cgi-bin/gen_rosinstall.py?rosdistro=diamondback&variant=desktop-full&overlay=no"
. /opt/dback/setup.bash
rosinstall /opt/openni_kinect /opt/dback
'http://www.ros.org/wiki/openni_kinect?action=AttachFile&do=get&target=openni_kinect.rosinstall'
. /opt/openni_kinect/setup.bash
rosmake openni_kinect --rosdep-install

_______________________________________________
Ros-kinect mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-kinect