Skip to content
This repository has been archived by the owner on Jan 14, 2023. It is now read-only.

install tags are wrong #74

Open
fmessmer opened this issue Sep 25, 2018 · 2 comments
Open

install tags are wrong #74

fmessmer opened this issue Sep 25, 2018 · 2 comments

Comments

@fmessmer
Copy link

fmessmer commented Sep 25, 2018

I get the following error from our TravisCI job.
It's compiling (rosjava) workspaces via catkin build with "install" option activated (i.e. catkin config --install)

Errors     << rosjava_bootstrap:install /root/catkin_ws/logs/rosjava_bootstrap/build.install.000.log
CMake Error at cmake_install.cmake:133 (file):
  file INSTALL cannot find
  "/root/catkin_ws/devel/.private/rosjava_bootstrap/share/maven/org/ros/rosjava_bootstrap".

the respective install tag is

install(DIRECTORY ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_MAVEN_DESTINATION}/org/ros/rosjava_bootstrap/ 
DESTINATION ${CATKIN_GLOBAL_MAVEN_DESTINATION}/org/ros/rosjava_bootstrap)

there seems to be a discrepancy for CATKIN_DEVEL_PREFIX between catkin_make and catkin-tools: https://answers.ros.org/question/248718/catkin_devel_prefix-in-catkin_make-vs-catkin-tools/

also, I can't seem to find the code where CATKIN_GLOBAL_MAVEN_DESTINATION is set.
it seems to be set to share/maven given the error notification above...

anyway:
what would be wrong about setting the install tag to

install(DIRECTORY ${ROS_MAVEN_DEPLOYMENT_REPOSITORY}/org/ros/rosjava_bootstrap/ 
DESTINATION ${CATKIN_GLOBAL_MAVEN_DESTINATION}/org/ros/rosjava_bootstrap)

or even drop the intall tag as "installing" should be done via the gradle wrappers install task, right?

this problem applies for several repos:

@fmessmer
Copy link
Author

fmessmer commented Oct 9, 2018

does it actually make sense to install the maven artifacts?
I guess they could also be removed as they will be found via the ROS_MAVEN_* environment variables

@jubeira
Copy link

jubeira commented Nov 1, 2018

Hi @fmessmer, sorry for the delay; I've been out for some weeks.

I'm not very into the details of these subtle differences between catkin_make and catkin tools.
Just to have a heads up before testing this, will this change affect users using catkin_make?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants