Hi,
I am trying to compile my package but I am getting the following error:
/usr/bin/ld: cannot find -lgripper_click_ui
collect2: ld returned 1 exit status
In my manifest I have the following two dependencies which possibly give me the hard time but it should be including the missing library:
This error occurs when I run make or rosmake. I am using diamondback.
Any clues?
Many thanks.
Hello all,
I am writing code C code that uses ROS and my OS is Linux.
I also use launch file in order to run my program.
**My problem:**
I don´t see the warnings on the screen after compilation. The only thing I am able to see is this message:
> [rosmake-3] Finished <<< guiPackage> [PASS] [ 4.21 seconds ] -- WARNING: 2> compiler warnings
**My Questions:**
1. Is this problem connected to the launch file or not?
2. Whatever the answer for 1 is, how can I see the warnings on the shell screen of Linux in this case?
Thank you all for your time,
Felix.
Hello,
Currently, I have a package containing all of my custom messages called "OryxMessages". This builds fine, and other packages can use these messages. A few weeks ago, my rosjava package had no problem generating the proper files for these messages building. Today, however, I removed 1 of the messages from that package and rebuilt it. Everything works fine, except now my rosjava package won't build, giving me the following error:
compile:
[javac] Compiling 4 source files to /home/oryx/.ros/rosjava/build/OryxMessages
[javac] javac: invalid flag: -g:${debuglevel}
[javac] Usage: javac
[javac] use -help for a list of possible options
BUILD FAILED
/home/oryx/ros_workspace/rosjava_core/rosjava_bootstrap/scripts/build-msg.xml:72: Compile failed; see the compiler error output for details.
Total time: 1 second
Traceback (most recent call last):
File "/home/oryx/ros_workspace/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/make.py", line 108, in
main(sys.argv)
File "/home/oryx/ros_workspace/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/make.py", line 100, in main
build(rospack, package)
File "/home/oryx/ros_workspace/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/make.py", line 70, in build
generate_msg_depends.generate_msg_depends(package)
File "/home/oryx/ros_workspace/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/generate_msg_depends.py", line 214, in generate_msg_depends
_generate_msgs(rospack, p, up_to_date)
File "/home/oryx/ros_workspace/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/generate_msg_depends.py", line 198, in _generate_msgs
run_ant(properties)
File "/home/oryx/ros_workspace/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/generate_msg_depends.py", line 111, in run_ant
subprocess.check_call(command)
File "/usr/lib/python2.7/subprocess.py", line 504, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ant', '-f', '/home/oryx/ros_workspace/rosjava_core/rosjava_bootstrap/scripts/build-msg.xml', u'-Dproperties=/home/oryx/.ros/rosjava/properties/build-OryxMessages.properties', 'maven-install']' returned non-zero exit status 1
I am not sure what could be causing it. To verify that it wasn't a code problem, I removed all dependencies except rosjava and built it. Like expected, it built fine. When I added in OryxMessages as a dependency, it once again failed to compile. Again, I am confused at what happened because it was working before I removed the one message.
Thank you,
-Joseph Amato
Having just preupgraded from Fedora 15, I set about installing ROS all over again. Fortunately, unlike the [previous](http://answers.ros.org/question/2636/fedora-15-electric-build-issues-gazebo) time, I had much fewer issues getting to the point of building gazebo. I had to build assimp, and that was it.
Build first failed due to fltk issues
[ 15%] Building CXX object server/physics/ode/CMakeFiles/gazebo_physics_ode.dir/ODEHeightmapShape.o
Linking CXX shared library libgazebo_physics_ode.so
make[4]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build'
[ 15%] Built target gazebo_physics_ode
make[4]: Entering directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build'
make[4]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build'
make[4]: Entering directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build'
[ 16%] Building CXX object server/rendering/CMakeFiles/gazebo_rendering.dir/OgreCreator.o
/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/server/rendering/OgreCreator.cc: In member function ‘Ogre::RenderWindow* gazebo::OgreCreator::CreateWindow(Fl_Window*, unsigned int, unsigned int)’:
/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/server/rendering/OgreCreator.cc:380:19: error: incomplete type ‘Fl_X’ used in nested name specifier
make[4]: *** [server/rendering/CMakeFiles/gazebo_rendering.dir/OgreCreator.o] Error 1
make[4]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build'
make[3]: *** [server/rendering/CMakeFiles/gazebo_rendering.dir/all] Error 2
make[3]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build'
make[1]: *** [installed] Error 2
make[1]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo'
CMake Error at CMakeLists.txt:32 (message):
Build of Gazebo failed
UPDATE 1 : This seems to be some issue with the updating of fltk as per [this](http://https://bugs.gentoo.org/show_bug.cgi?id=368607). However, looking at the x.h header from the Fl include directory, and comparing, I tried this (Sensible) patch. In ros/simulator_gazebo/gazebo/build/gazebo/server/rendering/OgreCreator.cc
-- win = OgreCreator::CreateWindow( fl_display, fl_visual->screen,
(int32_t)(Fl_X::i(flWindow)->xid), width, height);
++ win = OgreCreator::CreateWindow( fl_display, fl_visual->screen,
(int32_t)(fl_xid(flWindow)), width, height);
This resulted in the build process continuing further, with the following error
[ 46%] Building CXX object server/gui/CMakeFiles/gazebo_gui.dir/GLWindow.o
In file included from /usr/include/FL/fl_utf8.h:73:0,
from /usr/include/FL/Fl.H:39,
from /home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/server/gui/Gui.hh:33,
from /home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/server/gui/GLWindow.cc:51:
/usr/include/FL/Xutf8.h:161:5: error: ‘Status’ has not been declared
make[4]: *** [server/gui/CMakeFiles/gazebo_gui.dir/GLWindow.o] Error 1
make[4]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build'
make[3]: *** [server/gui/CMakeFiles/gazebo_gui.dir/all] Error 2
make[3]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build'
make[1]: *** [installed] Error 2
make[1]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo'
CMake Error at CMakeLists.txt:32 (message):
Build of Gazebo failed
Any dice?
UPDATE 2: I just went ahead and commented(!) out the relevant portion in the offending library header file. The build proceeded further. However [this](http://old.nabble.com/Problem-installing-gazebo-(make)-td28287759.html) seems to suggest that the relevant flags need to be set. What's that about?
Gazebo built, but then a `roslaunch gazebo_worlds empty_world.launch` gave another error
SUMMARY
========
PARAMETERS
* /rosversion
* /use_sim_time
* /rosdistro
NODES
/
gazebo (gazebo/gazebo)
auto-starting new master
process[master]: started with pid [3743]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to cb88f5d4-3ece-11e1-96c9-88532e12696b
process[rosout-1]: started with pid [3756]
started core service [/rosout]
process[gazebo-2]: started with pid [3759]
/home/kshaurya/ros/simulator_gazebo/gazebo/bin/gazebo: error while loading shared libraries: libboost_signals-mt.so.1.46.0: cannot open shared object file: No such file or directory
[gazebo-2] process has died [pid 3759, exit code 127].
log files: /home/kshaurya/.ros/log/cb88f5d4-3ece-11e1-96c9-88532e12696b/gazebo-2*.log
^C[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
I just checked - I have boost-devel-1.47. Why is it requiring 1.46? :S
Update 3: I cleaned all hte build directories, and when I attempted to build gazebo_worlds, build of cminpack failed as the md5 sum of the downloaded tarball didn't match the offical md5. Replacing it by the official tarball gave me this huge boost error subsequently along the build process
In file included from /usr/include/boost/ptr_container/detail/reversible_ptr_container.hpp:24:0,
from /usr/include/boost/ptr_container/ptr_sequence_adapter.hpp:20,
from /usr/include/boost/ptr_container/ptr_vector.hpp:20,
from /home/kshaurya/ros/image_common/image_transport/src/publisher.cpp:38:
/usr/include/boost/ptr_container/clone_allocator.hpp: In function ‘T* boost::new_clone(const T&) [with T = image_transport::PublisherPlugin]’:
/usr/include/boost/ptr_container/clone_allocator.hpp:68:33: instantiated from ‘static U* boost::heap_clone_allocator::allocate_clone(const U&) [with U = image_transport::PublisherPlugin]’
/usr/include/boost/ptr_container/detail/reversible_ptr_container.hpp:110:63: instantiated from ‘static boost::ptr_container_detail::reversible_ptr_container::Ty_* boost::ptr_container_detail::reversible_ptr_container::null_clone_allocator::allocate_clone(const Ty_*) [with bool allow_null_values = false, Config = boost::ptr_container_detail::sequence_config>>, CloneAllocator = boost::heap_clone_allocator, boost::ptr_container_detail::reversible_ptr_container::Ty_ = image_transport::PublisherPlugin]’
/usr/include/boost/ptr_container/detail/reversible_ptr_container.hpp:95:71: instantiated from ‘static boost::ptr_container_detail::reversible_ptr_container::Ty_* boost::ptr_container_detail::reversible_ptr_container::null_clone_allocator::allocate_clone_from_iterator(Iter) [with Iter = boost::void_ptr_iterator<__gnu_cxx::__normal_iterator>>, const image_transport::PublisherPlugin>, bool allow_null_values = false, Config = boost::ptr_container_detail::sequence_config>>, CloneAllocator = boost::heap_clone_allocator, boost::ptr_container_detail::reversible_ptr_container::Ty_ = image_transport::PublisherPlugin]’
/usr/include/boost/ptr_container/detail/scoped_deleter.hpp:70:21: instantiated from ‘boost::ptr_container_detail::scoped_deleter::scoped_deleter(InputIterator, InputIterator) [with InputIterator = boost::void_ptr_iterator<__gnu_cxx::__normal_iterator>>, const image_transport::PublisherPlugin>, T = image_transport::PublisherPlugin, CloneAllocator = boost::ptr_container_detail::reversible_ptr_container>>, boost::heap_clone_allocator>::null_clone_allocator]’
/usr/include/boost/ptr_container/detail/reversible_ptr_container.hpp:212:44: instantiated from ‘void boost::ptr_container_detail::reversible_ptr_container::clone_back_insert(ForwardIterator, ForwardIterator) [with ForwardIterator = boost::void_ptr_iterator<__gnu_cxx::__normal_iterator>>, const image_transport::PublisherPlugin>, Config = boost::ptr_container_detail::sequence_config>>, CloneAllocator = boost::heap_clone_allocator]’
/usr/include/boost/ptr_container/detail/reversible_ptr_container.hpp:303:13: instantiated from ‘void boost::ptr_container_detail::reversible_ptr_container::constructor_impl(I, I, std::forward_iterator_tag) [with I = boost::void_ptr_iterator<__gnu_cxx::__normal_iterator>>, const image_transport::PublisherPlugin>, Config = boost::ptr_container_detail::sequence_config>>, CloneAllocator = boost::heap_clone_allocator]’
/usr/include/boost/ptr_container/detail/reversible_ptr_container.hpp:348:13: instantiated from ‘boost::ptr_container_detail::reversible_ptr_container::reversible_ptr_container(const boost::ptr_container_detail::reversible_ptr_container&) [with Config = boost::ptr_container_detail::sequence_config>>, CloneAllocator = boost::heap_clone_allocator, boost::ptr_container_detail::reversible_ptr_container = boost::ptr_container_detail::reversible_ptr_container>>, boost::heap_clone_allocator>]’
/usr/include/boost/ptr_container/ptr_sequence_adapter.hpp:203:26: instantiated from ‘boost::ptr_sequence_adapter::ptr_sequence_adapter(const boost::ptr_sequence_adapter&) [with T = image_transport::PublisherPlugin, VoidPtrSeq = std::vector>, CloneAllocator = boost::heap_clone_allocator, boost::ptr_sequence_adapter = boost::ptr_sequence_adapter>, boost::heap_clone_allocator>]’
/usr/include/boost/ptr_container/ptr_vector.hpp:31:11: instantiated from ‘boost::foreach_detail_::simple_variant::simple_variant(const T&) [with T = boost::ptr_vector]’
/usr/include/boost/foreach.hpp:648:95: instantiated from ‘boost::foreach_detail_::auto_any> boost::foreach_detail_::contain(const T&, bool*) [with T = boost::ptr_vector]’
/home/kshaurya/ros/image_common/image_transport/src/publisher.cpp:59:943: instantiated from here
/usr/include/boost/ptr_container/clone_allocator.hpp:34:27: error: cannot allocate an object of abstract type ‘image_transport::PublisherPlugin’
/home/kshaurya/ros/image_common/image_transport/include/image_transport/publisher_plugin.h:13:7: note: because the following virtual functions are pure within ‘image_transport::PublisherPlugin’:
/home/kshaurya/ros/image_common/image_transport/include/image_transport/publisher_plugin.h:22:23: note: virtual std::string image_transport::PublisherPlugin::getTransportName() const
/home/kshaurya/ros/image_common/image_transport/include/image_transport/publisher_plugin.h:49:20: note: virtual uint32_t image_transport::PublisherPlugin::getNumSubscribers() const
/home/kshaurya/ros/image_common/image_transport/include/image_transport/publisher_plugin.h:54:23: note: virtual std::string image_transport::PublisherPlugin::getTopic() const
/home/kshaurya/ros/image_common/image_transport/include/image_transport/publisher_plugin.h:59:16: note: virtual void image_transport::PublisherPlugin::publish(const Image&) const
/home/kshaurya/ros/image_common/image_transport/include/image_transport/publisher_plugin.h:72:16: note: virtual void image_transport::PublisherPlugin::shutdown()
/home/kshaurya/ros/image_common/image_transport/include/image_transport/publisher_plugin.h:87:16: note: virtual void image_transport::PublisherPlugin::advertiseImpl(ros::NodeHandle&, const string&, uint32_t, const SubscriberStatusCallback&, const SubscriberStatusCallback&, const VoidPtr&, bool)
make[3]: *** [CMakeFiles/image_transport.dir/src/publisher.o] Error 1
Possible clone of [this](http://answers.ros.org/question/1906/diamondbacks-image_transport-fails-to-compile-how)? Bad news :S
Hello,
I've been stuck for a while now trying to get PCL to compile on my Pandaboard. The issue is with some libvtk library, which I've never heard of. Searching google did not yield much promising results either.
The linking error I'm getting is this :
/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../lib/libvtkIO.so: undefined reference to `__aeabi_d2lz@libmysqlclient_16'
/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../lib/libvtkIO.so: undefined reference to `__aeabi_f2lz@libmysqlclient_16'
/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../lib/libvtkIO.so: undefined reference to `__aeabi_f2ulz@libmysqlclient_16'
/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../lib/libvtkIO.so: undefined reference to `__aeabi_d2ulz@libmysqlclient_16'
Some mismatch with libmysqlclient and libvtk? I don't know what to do from here, any help is appreciated.
There seems to be an issue with compiling ROS nodes that use pcl on Ubuntu 11.10. When I try to compile my node on 10.04 I don't have any problems. Both installations were installed from the debian packages ros-electric-desktop-full and ros-electric-perception-pcl-addons.
1. Ubuntu 10.04, 32-bit, ROS Electric: **Works**
2. Ubuntu 11.10, 32-bit, ROS Electric: **Doesn't compile**
My node is pretty simple, mainly just visualizing a static point cloud that I create.
In the second case, I get the following compiler error during linking.
...
Linking CXX executable ../bin/publish_primitives
/usr/bin/ld: CMakeFiles/publish_primitives.dir/src/publish_primitives.o: undefined reference to symbol 'vtkSmartPointerBase::operator=(vtkObjectBase*)'
/usr/bin/ld: note: 'vtkSmartPointerBase::operator=(vtkObjectBase*)' is defined in DSO /usr/lib/libvtkCommon.so.5.6 so try adding it to the linker command line
/usr/lib/libvtkCommon.so.5.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
...
I manually added the required libraries in CMakeLists.txt (below) and it fixes the compiler problem.
rosbuild_add_executable(publish_primitives src/publish_primitives.cpp)
target_link_libraries(publish_primitives libvtkCommon.so libvtkFiltering.so )
Messing with the compiler flags for pcl is beyond me, so I'll leave it to the higher ups to figure out what is going on.
I was trying to use PCLVisualizer in a node but when I try to compile (using rosmake) I get as error
/usr/bin/ld: CMakeFiles/viz.dir/src/cluster_visualizer.o: undefined reference to symbol 'vtkSmartPointerBase::operator=(vtkObjectBase*)'
/usr/bin/ld: note: 'vtkSmartPointerBase::operator=(vtkObjectBase*)' is defined in DSO /usr/lib/libvtkCommon.so.5.6 so try adding it to the linker command line
/usr/lib/libvtkCommon.so.5.6: could not read symbols: Invalid operation
Here's the `CMakeLists.txt` I use
>cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)>rosbuild_init()>set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/include/cluster_extraction )>list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
find_package(Eigen REQUIRED)
include_directories(${Eigen_INCLUDE_DIRS})>rosbuild_add_executable(viz src/cluster_visualizer.cpp)
and here's the source code:
#include
#include
#include
#include
#include
int main () {
pcl::PointCloud::Ptr cloud (new pcl::PointCloud);
pcl::io::loadPCDFile ("/tmp/pointCloud0.pcd", *cloud);
boost::shared_ptr viewer (new pcl::visualization::PCLVisualizer ("3D Viewer"));
viewer->setBackgroundColor (0, 0, 0);
viewer->addPointCloud (cloud, "sample cloud");
viewer->setPointCloudRenderingProperties (pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 1, "sample cloud");
viewer->addCoordinateSystem (1.0);
viewer->initCameraParameters ();
viewer->spin();
}
Any suggestion on how can I fix? I'm using Ubuntu 11.10 with electric
EDIT:
my manifest.xml is
cluster_extraction
ManlioBSDhttp://ros.org/wiki/cluster_extraction
Hello everybody.
I have Ubuntu 64 bits 10.04 with kernel 2.6.32-38-generic and gcc (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3. The problem I have is that I need to compile ROS (Electric or Fuerte) with boost 1.47, but it looks like it only works for boost 1.41 or lower. Is there any workaround?
[Following this tutorial](http://ros.org/wiki/fuerte/Installation/Ubuntu/Source) , I've successfully compiled ROS Fuerte with boost 1.41. But when I try to compile ROS Fuerte with boost 1.42 (or higher, I've also tried with boost 1.44 and 1.47 and they give even more errors), and this is the output I get:
~/ros-underlay/build$ make -j
[Everything goes ok up to the following point]
[ 29%] Generating Lisp code from actionlib/TestRequestResult.msg
Linking CXX executable ../bin/rospack
[ 29%] Generating Lisp code from actionlib/TestRequestFeedback.msg
[ 29%] [ 29%] Linking CXX executable ../bin/rosstack
Generating Python from MSG rosgraph_msgs/Log
Generating Python from MSG actionlib/TwoIntsActionResult
[ 29%] Generating Lisp code from actionlib/TwoIntsAction.msg
[ 29%] Built target rosgraph_msgs_gencpp
../lib/librospack.so: undefined reference to `boost::program_options::options_description::options_description(std::basic_string, std::allocator> const&, unsigned int, unsigned int)'
collect2: ld returned 1 exit status
make[2]: *** [bin/rospack] Error 1
make[1]: *** [rospack/CMakeFiles/rospackexe.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Scanning dependencies of target std_srvs_gencpp
[ 29%] Generating Python from MSG actionlib/TwoIntsActionFeedback
[ 29%] Generating C++ code from std_srvs/Empty.srv
[ 29%] [ 29%] Generating Lisp code from actionlib/TwoIntsActionGoal.msg
Generating Python from MSG actionlib/TwoIntsGoal
[ 29%] ../lib/librospack.so: undefined reference to `boost::program_options::options_description::options_description(std::basic_string, std::allocator> const&, unsigned int, unsigned int)'
collect2: ld returned 1 exit status
make[2]: *** [bin/rosstack] Error 1
make[1]: *** [rospack/CMakeFiles/rosstackexe.dir/all] Error 2
Before executing make, I execute cmake, with the following result, which perhaps could be helpful in guessing what's happening:
~/ros-underlay/build$ cmake .. -DCMAKE_INSTALL_PREFIX=/opt/ros/fuerte
CMake Error: The source directory "/home/findeton" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
findeton@findeton-laptop:~/ros-underlay$ cd build
findeton@findeton-laptop:~/ros-underlay/build$ cmake .. -DCMAKE_INSTALL_PREFIX=/opt/ros/fuerte
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- +++ catkin
-- Found PythonInterp: /usr/bin/python2.6
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found gtest: gtests will be built.
TODO: implement add_roslaunch_check() in rostest-extras.cmake.
-- BUILD_SHARED_LIBS is on.
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing stacks/projects in dependency order ~~
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ genmsg
-- +++ genpy
-- +++ gencpp
-- +++ genlisp
-- +++ rospack
-- Rospack building shared objects.
-- Boost version: 1.42.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- program_options
-- +++ std_msgs
-- std_msgs: 32 messages
-- +++ ros
-- Boost version: 1.42.0
-- Found the following Boost libraries:
-- thread
-- Making toplevel forward script for bash script rosrun
-- +++ roscpp_core
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Performing Test HAVE_CXXABI_H
-- Performing Test HAVE_CXXABI_H - Failed
-- Looking for backtrace
-- Looking for backtrace - found
-- Boost version: 1.42.0
-- Found the following Boost libraries:
-- date_time
-- thread
-- +++ ros_comm
-- rosgraph_msgs: 2 messages
-- std_srvs: 0 messages
TODO: consider moving xmlrpcpp's headers into a subdirectory
-- Boost version: 1.42.0
-- Found the following Boost libraries:
-- regex
-- thread
-- Boost version: 1.42.0
-- Found the following Boost libraries:
-- signals
-- filesystem
-- system
-- Looking for include files HAVE_IFADDRS_H
-- Looking for include files HAVE_IFADDRS_H - found
-- Looking for trunc
-- Looking for trunc - not found
-- roscpp: 1 messages
-- topic_tools: 0 messages
CMake Warning at build/cmake/rosunit/rosunit-extras.cmake:17 (message):
add_pyunit() is deprecated. For Python tests, use add_nostests() instead.
Call Stack (most recent call first):
ros_comm/tools/topic_tools/CMakeLists.txt:70 (add_pyunit)
-- Found BZip2: /usr/lib/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so - found
CMake Warning at build/cmake/rosunit/rosunit-extras.cmake:17 (message):
add_pyunit() is deprecated. For Python tests, use add_nostests() instead.
Call Stack (most recent call first):
ros_comm/tools/rosbag/CMakeLists.txt:62 (add_pyunit)
-- test_ros: 15 messages
-- test_roslib_comm: 15 messages
-- test_rospy: 12 messages
-- test_rosservice: 0 messages
-- test_roscpp: 4 messages
-- test_roscpp_serialization: 18 messages
-- test_roscpp_serialization_perf: 3 messages
-- perf_roscpp: 2 messages
-- test_crosspackage: 2 messages
-- test_rosbag: 12 messages
CMake Warning at build/cmake/rosunit/rosunit-extras.cmake:17 (message):
add_pyunit() is deprecated. For Python tests, use add_nostests() instead.
Call Stack (most recent call first):
ros_comm/test/test_rosbag/CMakeLists.txt:52 (add_pyunit)
-- +++ rx
-- Found wxWidgets: TRUE
-- Found PythonLibs: /usr/lib/libpython2.6.so
-- +++ common_msgs
-- geometry_msgs: 23 messages
-- sensor_msgs: 18 messages
-- nav_msgs: 5 messages
-- actionlib_msgs: 3 messages
-- visualization_msgs: 10 messages
-- stereo_msgs: 1 messages
-- diagnostic_msgs: 3 messages
-- trajectory_msgs: 2 messages
-- +++ ros_tutorials
-- rospy_tutorials: 2 messages
-- roscpp_tutorials: 0 messages
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.6.2 (using /usr/bin/qmake)
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- turtlesim: 3 messages
-- +++ actionlib
-- Generating .msg files for action actionlib/Test /home/findeton/ros-underlay/actionlib/action/Test.action
Generating for action Test
-- Generating .msg files for action actionlib/TestRequest /home/findeton/ros-underlay/actionlib/action/TestRequest.action
Generating for action TestRequest
-- Generating .msg files for action actionlib/TwoInts /home/findeton/ros-underlay/actionlib/action/TwoInts.action
Generating for action TwoInts
-- actionlib: 21 messages
-- Configuring done
-- Generating done
-- Build files have been written to: /home/findeton/ros-underlay/build
I get the following error when building rosjava after I pulled just now:
:rosjava_bootstrap:jar
:rosjava_messages:generateSources
:rosjava_messages:compileJava
/home/tommy/my_workspace/rosjava_core/rosjava_messages/build/generated-src/test_rosjava_jni/TestDataTypes.java:52: getByte() is already defined in test_rosjava_jni.TestDataTypes
std_msgs.Byte getByte();
^
/home/tommy/my_workspace/rosjava_core/rosjava_messages/build/generated-src/test_rosjava_jni/TestDataTypes.java:54: getByteV() is already defined in test_rosjava_jni.TestDataTypes
java.util.List getByteV();
Is there something I'm not seeing or is this a bug?
Hi all,
How can I make that ROS look for headers files in /usr/include directory when compiling?
I want to use some headers present in that folder, but when I include them in my code and make it, the compiler cannot find the header files. Concretelly, I want to use gtkmm.h, in /usr/include/gtkmm-2.4/gtkmm.h. If I include the file like:
#include
it works, but it start to ask for another headers. I want it to search in /usr/include for all dependencies.
This is exactly the error I am getting when making the package:
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake ..
[rosbuild] Building package prglade
[rosbuild] Including /opt/ros/fuerte/share/roslisp/rosbuild/roslisp.cmake
[rosbuild] Including /opt/ros/fuerte/share/rospy/rosbuild/rospy.cmake
[rosbuild] Including /opt/ros/fuerte/share/roscpp/rosbuild/roscpp.cmake
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_TOOLCHAIN_FILE
-- Build files have been written to: /home/ruben/ROS_workspace/prglade/build
cd build && make
make[1]: se ingresa al directorio «/home/ruben/ROS_workspace/prglade/build»
make[2]: se ingresa al directorio «/home/ruben/ROS_workspace/prglade/build»
make[3]: se ingresa al directorio «/home/ruben/ROS_workspace/prglade/build»
make[3]: se sale del directorio «/home/ruben/ROS_workspace/prglade/build»
[ 0%] Built target rospack_genmsg_libexe
make[3]: se ingresa al directorio «/home/ruben/ROS_workspace/prglade/build»
make[3]: se sale del directorio «/home/ruben/ROS_workspace/prglade/build»
[ 0%] Built target rosbuild_precompile
make[3]: se ingresa al directorio «/home/ruben/ROS_workspace/prglade/build»
make[3]: se sale del directorio «/home/ruben/ROS_workspace/prglade/build»
make[3]: se ingresa al directorio «/home/ruben/ROS_workspace/prglade/build»
[ 50%] Building CXX object CMakeFiles/main_node.dir/src/main_node.o
In file included from /home/ruben/ROS_workspace/prglade/src/main_node.cpp:5:0:
/home/ruben/ROS_workspace/prglade/src/viewer.h:5:19: error fatal: gtkmm.h: No existe el archivo o el directorio
compilación terminada.
make[3]: *** [CMakeFiles/main_node.dir/src/main_node.o] Error 1
make[3]: se sale del directorio «/home/ruben/ROS_workspace/prglade/build»
make[2]: *** [CMakeFiles/main_node.dir/all] Error 2
make[2]: se sale del directorio «/home/ruben/ROS_workspace/prglade/build»
make[1]: *** [all] Error 2
make[1]: se sale del directorio «/home/ruben/ROS_workspace/prglade/build»
make: *** [all] Error 2
Thanks in advance
Hi,
I created a ROS package with one main cpp file and another my_class.cpp file + my_class.h with some simple cpp code.
As long as I have all files in the src folder of the package, it works fine. As soon as I move the header file to another directory (for example my_package/include/my_package/my_class.h) and change the #include in main to the new path, the header file can't be found (`error: include/sendPgmMarker/my_class.h: No such file or directory`) when I try to compile.
I tried it like in this post: [http://answers.ros.org/question/41873/ros-c-custom-class-compiler-and-linker/](http://answers.ros.org/question/41873/ros-c-custom-class-compiler-and-linker/) but it doesn't work for me.
What changes do I have to make so the header can be found? Sure I could just let the header in the source folder, but I also want to add other external .h and .cpp files that are in other folders than my package.
I'm trying to get rgbdslam to work with fuerte, which seems difficult from what I have culled from other posts. I am now encountering an error with compiling two classes that have the same name. I tried removing one but they both are required by other files. This is an excerpt of the error message I get after trying `rosmake rgbdslam`
[ 41%] Building CXX object CMakeFiles/rgbdslam.dir/src/main.o
In file included from /opt/ros/fuerte/include/g2o/core/hyper_dijkstra.h:34:0,
from /home/linus/Fuerte/sandbox/rgbdslam_freiburg/rgbdslam/src/graph_manager.h:53,
from /home/linus/Fuerte/sandbox/rgbdslam_freiburg/rgbdslam/src/openni_listener.h:30,
from /home/linus/Fuerte/sandbox/rgbdslam_freiburg/rgbdslam/src/main.cpp:17:
/opt/ros/fuerte/include/g2o/core/hyper_graph.h:59:22: error: redefinition of ‘class g2o::HyperGraph’
/home/linus/Fuerte/sandbox/g2o/include/g2o/core/hyper_graph.h:47:9: error: previous definition of ‘class g2o::HyperGraph’
make[3]: *** [CMakeFiles/rgbdslam.dir/src/main.o] Error 1
make[3]: Leaving directory `/home/linus/Fuerte/sandbox/rgbdslam_freiburg/rgbdslam/build'
make[2]: *** [CMakeFiles/rgbdslam.dir/all] Error 2
make[2]: Leaving directory `/home/linus/Fuerte/sandbox/rgbdslam_freiburg/rgbdslam/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/linus/Fuerte/sandbox/rgbdslam_freiburg/rgbdslam/build'
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package rgbdslam written to:
[ rosmake ] /home/linus/.ros/rosmake/rosmake_output-20121211-223719/rgbdslam/build_output.log
[rosmake-2] Finished <<< rgbdslam [FAIL] [ 9.35 seconds ]
[ rosmake ] Halting due to failure in package rgbdslam.
[ rosmake ] Waiting for other threads to complete.
[ rosmake ] Results:
[ rosmake ] Built 32 packages with 1 failures.
It appears that I am close, or at least 41% of the way, to getting the code to compile but I am unsure how to solve the 2-classes-1-name issue with my minimal C++ exposure. In addition, below is a portion of the hyper_graph.h file. The class declaration is near the end
#ifndef G2O_AIS_HYPER_GRAPH_HH
#define G2O_AIS_HYPER_GRAPH_HH
#include
Hi,
Updated my version of ROS - and I'm getting a build error in camera_calibration_parsers.
Anyone any idea where yaml.h is? as in the error message:
~/ros/image_common/camera_calibration_parsers/src/parse_yml.cpp:3:27: fatal error: yaml-cpp/yaml.h: No such file or directory
compilation terminated.
Most other packages are building without issue
Many Thanks
Mark
Hi All,
As part of freenect_stack it builds pcl_ros. I'm getting the compilation error below...any why this is a problem. I've downloaded PCL-1.6 source.
Thanks
Mark
[ 40%] Building CXX object CMakeFiles/pcl_ros_tf.dir/src/pcl_ros/transforms.o
In file included from /home/pi/ros/perception_pcl/pcl_ros/src/pcl_ros /transforms.cpp:39:0:
/home/pi/PCL-1.6.0-Source/common/include/pcl/point_types.h:56:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
In file included from /home/pi/ros/perception_pcl/pcl_ros/src/pcl_ros/transforms.cpp:39:0:
/home/pi/PCL-1.6.0-Source/common/include/pcl/point_types.h:590:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
In file included from /home/pi/ros/perception_pcl/pcl_ros/src/pcl_ros/transforms.cpp:40:0:
/home/pi/ros/perception_pcl/pcl_ros/include/pcl_ros/transforms.h:41:41: fatal error: pcl/registration/transforms.h: No such file or directory
compilation terminated.
make[3]: *** [CMakeFiles/pcl_ros_tf.dir/src/pcl_ros/transforms.o] Error 1
make[3]: Leaving directory `/home/pi/ros/perception_pcl/pcl_ros/build'
make[2]: *** [CMakeFiles/pcl_ros_tf.dir/all] Error 2
make[2]: Leaving directory `/home/pi/ros/perception_pcl/pcl_ros/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/pi/ros/perception_pcl/pcl_ros/build'
The compilation stops on debian/amd64 because the package `pr2_mechanism_model` requests the file `hardware_interface/hardware_interface.h`.
Where is this file ?
Hi, i am trying to include the ar_pose/ARMarkers.h header in a ROS node with
#include
I added *artoolkit* and *ar_pose* to the dependencies in the manifest file. But when making my package, it says "ar_pose/ARMarkers.h : No such file or directory"
*rospack find artoolkit* and *rospack find ar_pose* successfully bring up the path to these packages
I am using fuerte and installed the ar toolkit through ccny_vision first
the ARMarker(s).h is located at *ccny_vision/ar_pose/msg_gen/cpp/include/ar_pose*. I copied the files to */ccny_vision/ar_pose/include/ar_pose* but nothing helped.
update:
The files using AR Toolkit should be in the correct path, i got some other includes (pcl and ros) that work. AR and my package are in an extra path i added in my /home/user space because i have to work without superuser rights. The path is included in the ROS_PACKAGE_PATH. What makes me wonder is, that the packages can be located with ROS but when compiling it fails...
update:
I downloaded the bag files today to test if the package itself works correct. The demo_mutli and demo_single do work properly
Also tried now with the newer ar_toolkti package from IHeartEngineering, getting the same error when including
manifest.xml
obstacle_detectionmeBSD
link deleted, insufficient karma
code
#include
#include
void processing (const ar_pose::ARMarkers::ConstPtr& msg){
ar_pose::ARMarker ar_pose_marker;
for(i=0;i<=msg->markers.size();i++){
ar_pose_marker = msg->markers.at(i);
std::cout<<"x " << ar_pose_marker.pose.pose.position.x<
We are working with a pretty large catkin project that compiled just fine for months. Without code changes, we started seeing compile errors after some groovy updates and building from scratch, looking like:
[ 2%] Building CXX object flor_common/flor_interactive_marker_server_custom/CMakeFiles/flor_interactive_marker_server_custom.dir/src/interactive_marker_server_custom.cpp.o
In file included from /home/kohlbrecher/flor_repo/catkin_ws/src/flor_common/flor_interactive_marker_server_custom/src/interactive_marker_server_custom.cpp:68:0:
/home/kohlbrecher/flor_repo/catkin_ws/src/flor_common/flor_interactive_marker_server_custom/include/flor_interactive_marker_server_custom/interactive_marker_server_custom.h:80:45: fatal error: flor_ocs_msgs/OCSTemplateUpdate.h: No such file or directory
compilation terminated.
make[2]: *** [flor_common/flor_interactive_marker_server_custom/CMakeFiles/flor_interactive_marker_server_custom.dir/src/interactive_marker_server_custom.cpp.o] Error 1
make[1]: *** [flor_common/flor_interactive_marker_server_custom/CMakeFiles/flor_interactive_marker_server_custom.dir/all] Error 2
make: *** [all] Error 2
make: INTERNAL: Exiting with 3 jobserver tokens available; should be 2!
Invoking "make" failed
Noticing that the actual error messages changed when executing "catkin_make" multiple times, I figured there might be some issue with parallel jobs and different timings leading to different errors. Sure enough, when running "catkin_make -j1", the project compiles. Any ideas if there's something on our side making this error appear, or if this is a catkin bug?
Hey everyone
Really sorry if this is something silly or small I've gotten wrong, or if it's something that has been answered somewhere else on here. I am having issues getting through compiling on my raspberry pi. Below I have the last few lines that seem relevant before it stopped running. I also need to point out that I'm new to this. Am studying robotics at university and have followed the ROS Platform forever but only recently started trying to learn how to use it.
-- Using CATKIN_TEST_RESULTS_DIR: /home/pi/build_isolated/orocos_kdl/test_results
-- catkin 0.5.65
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for module 'eigen3'
-- package 'eigen3' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97
(MESSAGE):
Could NOT find Eigen (missing: EIGEN_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288
(_FPHSA_FAILURE_MESSAGE)
/opt/ros/groovy/share/eigen/cmake/eigen-config.cmake:31
(find_package_handle_standard_args)
CMakeLists.txt:7 (find_package)
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "./src/catkin/bin/../python/catkin/builder.py", line 658, in
build_workspace_isolated
number=index + 1, of=len(ordered_packages)
File "./src/catkin/bin/../python/catkin/builder.py", line 443, in build_package
install, jobs, force_cmake, quiet, last_env, cmake_args, make_args
File "./src/catkin/bin/../python/catkin/builder.py", line 278, in
build_catkin_package
os.remove(makefile)
OSError: [Errno 2] No such file or directory:
'/home/pi/build_isolated/orocos_kdl/Makefile'
<== Failed to process package 'orocos_kdl':
[Errno 2] No such file or directory: '/home/pi/build_isolated/orocos_kdl/Makefile'
Command failed, exiting.
Again, really sorry if this is something silly or small I've gotten wrong. Thank you in advance for any help you can give!