catkin_make fedora hang and does not produce executable
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 !
Are you sure it isn't placing your test executable somewhere in the build or devel directories?
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.
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.
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.