Ask Your Question
0

[Solved]failed catkin_make on rosjava

asked 2017-12-05 17:32:35 -0500

ramekabi gravatar image

updated 2017-12-06 07:30:04 -0500

http://wiki.ros.org/rosjava/Tutorials...
I tried [3.1 Core Sources].
Errors on catkin_make.

ubuntu@ubuntu:~/rosjava$ catkin_make
Base path: /home/ubuntu/rosjava
Source space: /home/ubuntu/rosjava/src
Build space: /home/ubuntu/rosjava/build
Devel space: /home/ubuntu/rosjava/devel
Install space: /home/ubuntu/rosjava/install
Creating symlink "/home/ubuntu/rosjava/src/CMakeLists.txt" pointing to "/opt/ros/kinetic/share/catkin/cmake/toplevel.cmake"
####
#### Running command: "cmake /home/ubuntu/rosjava/src -DCATKIN_DEVEL_PREFIX=/home/ubuntu/rosjava/devel -DCMAKE_INSTALL_PREFIX=/home/ubuntu/rosjava/install -G Unix Makefiles" in "/home/ubuntu/rosjava/build"
####
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/ubuntu/rosjava/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/kinetic
-- This workspace overlays: /opt/ros/kinetic
-- Found PythonInterp: /usr/bin/python (found version "2.7.12")
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/ubuntu/rosjava/build/test_results
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.8
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 9 packages in topological order:
-- ~~ - rosjava_build_tools
-- ~~ - rosjava_bootstrap
-- ~~ - genjava
-- ~~ - rosjava (metapackage)
-- ~~ - rosjava_test_msgs
-- ~~ - rosjava_messages
-- ~~ - rosjava_core
-- ~~ - rosjava_extras
-- ~~ - zeroconf_jmdns_suite
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'rosjava_build_tools'
-- ==> add_subdirectory(rosjava_build_tools)
-- +++ processing catkin package: 'rosjava_bootstrap'
-- ==> add_subdirectory(rosjava_bootstrap)
-- +++ processing catkin package: 'genjava'
-- ==> add_subdirectory(genjava)
-- Using these message generators: gencpp;geneus;genjava;genlisp;gennodejs;genpy
-- +++ processing catkin metapackage: 'rosjava'
-- ==> add_subdirectory(rosjava)
-- +++ processing catkin package: 'rosjava_test_msgs'
-- ==> add_subdirectory(rosjava_test_msgs)
-- Using these message generators: gencpp;geneus;genjava;genlisp;gennodejs;genpy
-- rosjava_test_msgs: 7 messages, 1 services
-- +++ processing catkin package: 'rosjava_messages'
-- ==> add_subdirectory(rosjava_messages)
-- Using these message generators: gencpp;geneus;genjava;genlisp;gennodejs;genpy
-- +++ processing catkin package: 'rosjava_core'
-- ==> add_subdirectory(rosjava_core)
-- Using these message generators: gencpp;geneus;genjava;genlisp;gennodejs;genpy
-- +++ processing catkin package: 'rosjava_extras'
-- ==> add_subdirectory(rosjava_extras)
-- +++ processing catkin package: 'zeroconf_jmdns_suite'
-- ==> add_subdirectory(zeroconf_jmdns_suite)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/rosjava/build
####
#### Running command: "make -j4 -l4" in "/home/ubuntu/rosjava/build"
####
Scanning dependencies of target _rosjava_test_msgs_generate_messages_check_deps_TestString
Scanning dependencies of target _rosjava_test_msgs_generate_messages_check_deps_CompositeB
Scanning dependencies of target gradle-rosjava_bootstrap
Scanning dependencies of target _rosjava_test_msgs_generate_messages_check_deps_TestPrimitives
[ 1%] Gradling tasks for rosjava_bootstrap
[ 1%] Built target _rosjava_test_msgs_generate_messages_check_deps_CompositeB
[ 1%] Built target _rosjava_test_msgs_generate_messages_check_deps_TestString
[ 1%] Built target _rosjava_test_msgs_generate_messages_check_deps_TestPrimitives
Scanning dependencies of target _rosjava_test_msgs_generate_messages_check_deps_CompositeA
Scanning dependencies of target _rosjava_test_msgs_generate_messages_check_deps_TestHeader
Scanning dependencies of target std_msgs_generate_messages_lisp
[ 1%] Built target std_msgs_generate_messages_lisp ...

(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-12-05 18:57:38 -0500

jubeira gravatar image

@ramekabi this is a known issue with JDK7; it fails downloading the Gradle distribution. You can take a look here: https://github.com/rosjava/rosjava_co... ; you should find some workarounds there.

The easiest one is using JDK 8 (from OpenJDK or from Oracle, it shouldn't make a difference). Don't forget to set JAVA_HOME environment variable properly. That should solve your problem.

edit flag offensive delete link more

Comments

Thank you.

ramekabi gravatar image ramekabi  ( 2017-12-06 05:50:35 -0500 )edit

Did that work for you? If so, please mark the answer as accepted so as others can use it.

jubeira gravatar image jubeira  ( 2017-12-06 06:34:24 -0500 )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

Stats

Asked: 2017-12-05 17:32:35 -0500

Seen: 421 times

Last updated: Dec 06 '17