[ros-users] compile error using rosmake

Morgan Quigley morganquigley at gmail.com
Tue May 4 19:21:57 UTC 2010


Can you post your CMakeLists.txt file? It's possible that your
invocation of the rosbuild_add_executable macro doesn't include your
CeilingNode.cpp file, since the error you're getting is a link error.


On Tue, May 4, 2010 at 11:57 AM, Todd Anderson <tdansel88 at gmail.com> wrote:
> Ok. Here is the terminal output and attached are the files.
> todd at todd-ubuntu:~/553/ceilingmosaics$ rosmake -s
> [ rosmake ] No package specified.  Building ['ceilingmosaics']
> [ rosmake ] Packages requested are: ['ceilingmosaics']
> [ rosmake ] Logging to directory
> [ rosmake ] /home/todd/.ros/rosmake/rosmake_output-20100504-135534
> [ rosmake ] Expanded args ['ceilingmosaics'] to:
> ['ceilingmosaics']
> [ rosmake ] Checking rosdeps compliance for packages ceilingmosaics.  This
> may take a few seconds.
> [ rosmake ] rosdep check passed all system dependencies in packages
> [ rosmake ] specified-only option was used, only building packages
> ['ceilingmosaics']
> [ rosmake ] Prebuilding rospack
> [ rosmake ] Prebuilding gtest
> [ rosmake ] Prebuilding genmsg_cpp
> [ rosmake ] [ 0 of 1  Completed ]
> [rosmake-0] >>> ceilingmosaics >>> [ make ]
> [ rosmake ] Last 40 lines
> {-------------------------------------------------------------------------------
>   [ 84%] make[3]: Leaving directory `/home/todd/553/ceilingmosaics/build'
>   Built target ROSBUILD_gensrv_java
>   [ 92%] make[3]: Entering directory `/home/todd/553/ceilingmosaics/build'
>   Built target ROSBUILD_gensrv_lisp
>   make[3]: Leaving directory `/home/todd/553/ceilingmosaics/build'
>   make[3]: Entering directory `/home/todd/553/ceilingmosaics/build'
>   [ 92%] Built target rospack_genmsg
>   make[3]: Entering directory `/home/todd/553/ceilingmosaics/build'
>   make[3]: Leaving directory `/home/todd/553/ceilingmosaics/build'
>   make[3]: Leaving directory `/home/todd/553/ceilingmosaics/build'
>   [ 92%] Built target rospack_genmsg_all
>   [ 92%] Built target rospack_gensrv
>   make[3]: Entering directory `/home/todd/553/ceilingmosaics/build'
>   make[3]: Entering directory `/home/todd/553/ceilingmosaics/build'
>   make[3]: Leaving directory `/home/todd/553/ceilingmosaics/build'
>   make[3]: Leaving directory `/home/todd/553/ceilingmosaics/build'
>   [ 92%] Built target rosbuild_precompile
>   [ 92%] make[3]: Entering directory `/home/todd/553/ceilingmosaics/build'
>   Built target rospack_gensrv_all
>   Scanning dependencies of target homography_generator
>   make[3]: Leaving directory `/home/todd/553/ceilingmosaics/build'
>   make[3]: Entering directory `/home/todd/553/ceilingmosaics/build'
>   [100%] Building CXX object
> CMakeFiles/homography_generator.dir/src/homography_generator.o
>   /home/todd/553/ceilingmosaics/src/homography_generator.cpp: In function
> ‘void imageCallback(const sensor_msgs::ImageConstPtr&)’:
>   /home/todd/553/ceilingmosaics/src/homography_generator.cpp:271: warning:
> unused variable ‘i’
>   Linking CXX executable ../bin/homography_generator
>   CMakeFiles/homography_generator.dir/src/homography_generator.o: In
> function `main':
>   /home/todd/553/ceilingmosaics/src/homography_generator.cpp:317: undefined
> reference to `CeilingNode::CeilingNode()'
>   CMakeFiles/homography_generator.dir/src/homography_generator.o: In
> function `__gnu_cxx::new_allocator<CeilingNode>::construct(CeilingNode*,
> CeilingNode const&)':
>   /usr/include/c++/4.4/ext/new_allocator.h:105: undefined reference to
> `CeilingNode::CeilingNode(CeilingNode const&)'
>   CMakeFiles/homography_generator.dir/src/homography_generator.o: In
> function `__gnu_cxx::new_allocator<CeilingNode>::destroy(CeilingNode*)':
>   /usr/include/c++/4.4/ext/new_allocator.h:115: undefined reference to
> `CeilingNode::~CeilingNode()'
>   collect2: ld returned 1 exit status
>   make[3]: *** [../bin/homography_generator] Error 1
>   make[3]: Leaving directory `/home/todd/553/ceilingmosaics/build'
>   make[2]: *** [CMakeFiles/homography_generator.dir/all] Error 2
>   make[2]: Leaving directory `/home/todd/553/ceilingmosaics/build'
>   make[1]: *** [all] Error 2
>   make[1]: Leaving directory `/home/todd/553/ceilingmosaics/build'
> -------------------------------------------------------------------------------}
> [ rosmake ] Output from build of package ceilingmosaics written to:
> [ rosmake ]
>  /home/todd/.ros/rosmake/rosmake_output-20100504-135534/ceilingmosaics/build_output.log
> [rosmake-0] <<< ceilingmosaics <<< [FAIL] [ 5.52 seconds ]
> [ rosmake ] Halting due to failure in package ceilingmosaics.
> [ rosmake ] Waiting for other threads to complete.
> [ rosmake ] Summary output to directory
> [ rosmake ] /home/todd/.ros/rosmake/rosmake_output-20100504-135534
> todd at todd-ubuntu:~/553/ceilingmosaics$
>
> --
> Todd Anderson
> (919) 710-0546
> Washington University in St. Louis Class of 2011
> School of Engineering and Applied Sciences
>
> _______________________________________________
> 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