ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

catkin_make fedora hang and does not produce executable

asked 2014-04-22 08:54:17 -0600

Maya gravatar image

Hellow,

I'm using the rosrpm for fedora version of ROS and I have two problem.

First : each time I'm trying to compile a package using pcl, catkin_make hang at some point and just never stop and I have to close everything. I don't know why it does that and it's very annoying as I want to use a Xtion. Thus I don't know what information to give but if someone is willing to help me with that, I will be happy to give any kind of information.

Second : I'm trying to compile a very small project named randomly bouboum the thing is when I catkin_make bouboum, the only executable I'm asking is not made. Here are the CMakeList, and the program :

CMakeListe :

cmake_minimum_required(VERSION 2.8.3)
project(bouboum)

## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
  pcl_conversions
  roscpp
)
find_package(PCL REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})

link_directories(${PCL_LIBRARY_DIRS})
catkin_package(
  INCLUDE_DIRS include
  LIBRARIES bouboum
  CATKIN_DEPENDS pcl_conversions roscpp
  DEPENDS system_lib
)
# include_directories(include)
include_directories(
  ${catkin_INCLUDE_DIRS}
)

## Declare a cpp executable
add_executable(test src/test.cpp)
target_link_libraries(test ${catkin_LIBRARIES} ${PCL_LIBRARIES})

And my program :

#include "ros/ros.h"
#include <pcl/point_types.h>

int main(int argc, char **argv){
    ros::init(argc, argv, "Stalker");
    ros::NodeHandle my_node;
    pcl::PointCloud<pcl::PointXYZRGBA>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZRGBA>);

}

Nothing very complicated it was just to test the hanging problem named above.

The thing is it find the good test.cpp file since if I change the name in the add_executable command, catkin_make complain about it. I just have nothing happening and I can't understand why. I created my package using catkin_make_pkg bouboum pcl_conversions roscpp

Any help on the matter will be more than appreciated !!

Thanks a lot !

edit retag flag offensive close merge delete

Comments

Are you sure it isn't placing your test executable somewhere in the build or devel directories?

ahendrix gravatar image ahendrix  ( 2014-04-22 09:03:33 -0600 )edit

I looked in /devel/lib because it's usually paced there and I didn't even found a bouboum folder. I'll check better tonight.

Maya gravatar image Maya  ( 2014-04-22 17:22:56 -0600 )edit

The catkin_make output should have a line for each cpp file and binary that it compiles; you should make sure that you test executable is included there. You may have to touch your test.cpp file to trigger a rebuild.

ahendrix gravatar image ahendrix  ( 2014-04-23 07:05:21 -0600 )edit

There is no line printed by catkin_make for any executable even if I change test.cpp. I guess I did something wrong in the makefile or during the package creation. All the other ones works now so must be my fault there.

Maya gravatar image Maya  ( 2014-04-23 07:14:25 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-04-22 09:07:04 -0600

ahendrix gravatar image

While catkin_make is stuck, try looking for processes that are running and look stuck. I would try running a graphical process monitor or top, and also running something like ps auxwwwf to display the process tree, and look for leaves in the process tree which might be blocking the parent process.

edit flag offensive delete link more

Comments

Such a good advice. I used top nd it said that a process kswapd0 was using all the CPU... So if ever someone got the same kind of problem it is because you didn't mount the swap. Thus my system had no swap and I had to manually change fstab... I know, I'm an idiot =P.

Maya gravatar image Maya  ( 2014-04-22 17:23:51 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-04-22 08:54:17 -0600

Seen: 819 times

Last updated: Apr 22 '14