gok03 / rosjava

Automatically exported from code.google.com/p/rosjava
0 stars 0 forks source link

android_core/android_tutorial_pubsub can't find ros.rosjava_core:rosjava:0.0.0-SNAPSHOP #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. roscd android_core
2. rosrun rosjava_bootstrap install_generated_modules.py android_tutorial_pubsub
3. ./gradlew android_tutorial_pubsub:debug

(from http://docs.rosjava.googlecode.com/hg/android_core/html/building.html )

What is the expected output? What do you see instead?
FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration 
':android_gingerbread:compile'.
> Could not find group:ros.rosjava_core, module:apache_xmlrpc_client, 
version:0.0.0-SNAPSHOT.
  Required by:
      ros.android_core:android_gingerbread:0.0.0-SNAPSHOT > ros.rosjava_core:rosjava:0.0.0-SNAPSHOT
> Could not find group:ros.rosjava_core, module:apache_xmlrpc_server, 
version:0.0.0-SNAPSHOT.
  Required by:
      ros.android_core:android_gingerbread:0.0.0-SNAPSHOT > ros.rosjava_core:rosjava:0.0.0-SNAPSHOT
> Could not find group:ros.rosjava_core, module:apache_xmlrpc_common, 
version:0.0.0-SNAPSHOT.
  Required by:
      ros.android_core:android_gingerbread:0.0.0-SNAPSHOT > ros.rosjava_core:rosjava:0.0.0-SNAPSHOT

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug 
option to get more log output.

BUILD FAILED

What version of the product are you using? On what operating system?
rosjava_core:
parent: 954:ff50a6891058 tip
 merge
branch: default
commit: (clean)
update: (current)

android_core:
parent: 152:b144c7149c66 tip
 Initial import of android_core documentation.
branch: default
commit: (clean)
update: (current)

Ubuntu 10.04 32bit
ROS Electric

Please provide any additional information below.

Original issue reported on code.google.com by jonathan...@gmail.com on 28 Mar 2012 at 7:03

GoogleCodeExporter commented 9 years ago
How are these external dependencies supposed to get resolved?

Original comment by jonathan...@gmail.com on 28 Mar 2012 at 7:12

GoogleCodeExporter commented 9 years ago
Looks like "MavenLocal()" in the android_core build.gradle file isn't finding 
all of the stuff I have in ~/.m2/repository

This path isn't references in any environment variables, should it be?

Original comment by jonathan...@gmail.com on 28 Mar 2012 at 7:27

GoogleCodeExporter commented 9 years ago
It looks like you need to install rosjava first.

roscd rosjava
../gradlew install

External dependencies are currently resolved to either a remove Maven repo or 
your local .m2 cache. The install task will build and install the jar to your 
.m2 cache and make it available to your android project.

Original comment by damonkoh...@google.com on 28 Mar 2012 at 7:29

GoogleCodeExporter commented 9 years ago
So it is definitely installed, listing ~/.m2/repository/ros gives:

/home/jbohren/.m2/repository/ros
|-- message.geometry_msgs
|   |-- 0.0.0-SNAPSHOT
|   `-- maven-metadata-local.xml
|-- message.roscpp
|   |-- 0.0.0-SNAPSHOT
|   `-- maven-metadata-local.xml
|-- message.rosgraph_msgs
|   |-- 0.0.0-SNAPSHOT
|   `-- maven-metadata-local.xml
|-- message.sensor_msgs
|   |-- 0.0.0-SNAPSHOT
|   `-- maven-metadata-local.xml
|-- message.std_msgs
|   |-- 0.0.0-SNAPSHOT
|   `-- maven-metadata-local.xml
|-- message.test_ros
|   |-- 0.0.0-SNAPSHOT
|   `-- maven-metadata-local.xml
|-- message.trajectory_msgs
|   |-- 0.0.0-SNAPSHOT
|   `-- maven-metadata-local.xml
|-- rosjava_core
|   |-- rosjava
|   `-- rosjava_bootstrap
|-- service.roscpp
|   |-- 0.0.0-SNAPSHOT
|   `-- maven-metadata-local.xml
|-- service.sensor_msgs
|   |-- 0.0.0-SNAPSHOT
|   `-- maven-metadata-local.xml
|-- service.test_ros
|   |-- 0.0.0-SNAPSHOT
|   `-- maven-metadata-local.xml
`-- service.topic_tools
    |-- 0.0.0-SNAPSHOT
    `-- maven-metadata-local.xml

Original comment by jonathan...@gmail.com on 28 Mar 2012 at 8:14

GoogleCodeExporter commented 9 years ago
I needed to separately run from rosjava_core:

./gradlew apache_xmlrpc_common:install
./gradlew apache_xmlrpc_server:install
./gradlew apache_xmlrpc_client:install

Original comment by jonathan...@gmail.com on 28 Mar 2012 at 8:20

GoogleCodeExporter commented 9 years ago
Full solution here: 
http://answers.ros.org/question/30706/building-rosjavaandroid-stuff?answer=30713
#post-id-30713

Original comment by jonathan...@gmail.com on 28 Mar 2012 at 8:44

GoogleCodeExporter commented 9 years ago
This should no longer be a problem as message generation does not require a 
separate step. Running ./gradlew in rosjava_core should be sufficient.

Original comment by damonkoh...@google.com on 4 Apr 2012 at 7:42