Ask Your Question
0

Build errors installing knowrob

asked 2015-06-02 09:28:06 -0600

rohan gravatar image

updated 2015-06-02 13:16:24 -0600

Hi,

So I follow instructions reported here to install knowrob http://cram-project.org/installation

After I run catkin_make I get the following error

Gradling tasks for json_prolog Gradling tasks for knowrob_srdl

FAILURE: Build failed with an exception.

  • Where: Build file '/home/rohan/Peretec_work/workspace/ros_kb/src/stacks/knowrob/json_prolog/build.gradle' line: 41
  • What went wrong: A problem occurred evaluating root project 'json_prolog'.

I have installed rosjava and I am using ros-indigo on ubuntu 14.04.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-06-02 09:55:11 -0600

gaya gravatar image

Yeah, Gradle is very fragile and constantly complains about weird stuff. Usually it complains after rosjava updates, so if you recently updated your Indigo packages that might have been the cause. I usually remove the ~/.gradle directory (the one in your home) and sometimes also the build and devel in my workspace and recompile everything and that helps. Otherwise, from the information you provided it's hard to say anything else, you'd need to tell us how exactly you're installing KnowRob, your workspace setup etc... Maybe @moritz has a better idea.

edit flag offensive delete link more
0

answered 2015-06-02 13:16:32 -0600

rohan gravatar image

updated 2015-06-02 13:39:02 -0600

Hi, Thanks for the reply. I follow the instructions give here http://cram-project.org/installation under section Ubuntu 14.04. My workspace are setup as directed in those instructions. The knowrob is also installed according to the instructions given above.

I followed your advice and removed the .gradle ,build and devel folder but still get that error. So the error message that I see is

Scanning dependencies of target gradle-json_prolog Scanning dependencies of target gradle-knowrob_srdl [ 85%] [ 85%] Gradling tasks for knowrob_srdl Gradling tasks for json_prolog

FAILURE: Build failed with an exception.

  • Where: Build file '/home/rohan/Peretec_work/workspace/ros_kb/src/stacks/knowrob/json_prolog/build.gradle' line: 41

  • What went wrong: A problem occurred evaluating root project 'json_prolog'.

    Could not list contents of '/home/rohan/Peretec_work/workspace/src/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple/test/scenarios/hello_world/catkin_simple'.

Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. make[2]: * [stacks/knowrob/json_prolog/CMakeFiles/gradle-json_prolog] Error 1 make[1]: [stacks/knowrob/json_prolog/CMakeFiles/gradle-json_prolog.dir/all] Error 2 make[1]: ** Waiting for unfinished jobs...

Is this related to catkin_simple?

Please let me know what more information you need?

edit flag offensive delete link more

Comments

Yep, it looks like it's the catkin_simple who's causing the problem. You could put a CATKIN_IGNORE into that dir (or what's better, move it out of the workspace) and try to recompile again (removing ~/.gradle again). Don't ask me what catkin_simple has to do with building knowrob :) gradle's weird

gaya gravatar imagegaya ( 2015-06-02 13:45:04 -0600 )edit

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-06-02 09:28:06 -0600

Seen: 300 times

Last updated: Jun 02 '15