Ask Your Question
0

Compile is successful, but no executable generated?

asked 2013-03-21 19:09:13 -0500

updated 2014-01-28 17:15:50 -0500

ngrennan gravatar image

Hi guys,

I have created my own package in which I do some image processing with openCV and PCL. After compiling, I get no errors and the build is successful, However, no executable is generated in the /bin folder. Note: this is not my first package, I have created other nodes with no problem.

In the Cmakelist.txt, I have added the following lines

rosbuild_add_executable(myNode src/myNode.cpp)
rosbuild_add_library(myNode src/myNode.cpp)

Here is the output of the compilation:

[ rosmake ] Results:                                                            
[ rosmake ] Built 31 packages with 0 failures.                                  
[ rosmake ] Summary output to directory                                         
[ rosmake ] /home/samme/.ros/rosmake/rosmake_output-20130322-160141

When I run the command $rosun firefly_mv myNode I get:[rosrun] Couldn't find executable named myNode below /home/samme/fuerte_workspace/firefly_mv.

I am not sure why the executable is not being generated here, I have created many other nodes and never got this problem. Any help would be greatly appreciated.

Thanks and regards, Khalid

edit retag flag offensive close merge delete

Comments

Strange. Can you post the result of going into your "build" directory and there running "cmake ..;VERBOSE=1 make" - should show what it's doing while compiling. Peace.

DamienJadeDuff gravatar image DamienJadeDuff  ( 2013-03-22 03:34:53 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
4

answered 2013-03-22 05:58:27 -0500

Claudio gravatar image

You are declaring a library with the same name as the executable AFTER the executable. My guess is that only the last one is generated.

You should not build the library, try commenting that out.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-03-21 19:09:13 -0500

Seen: 3,345 times

Last updated: Mar 22 '13