Generate deb from dependent ros package locally
This is related to the question #280235 where there's a dependency problem using bloom to generate a .deb file locally. I've added the key to rosdep in order to solve that problem but now I've other problem.
After using bloom generate to create the debian files, I try to run fakeroot to create the binary .deb file and it fails as you can see in the bash file: fakeroot bash
$ fakeroot debian/rules binary
...
Project 'qt_ros_interface' tried to find library 'robis_math_utilities'.
The library is neither a target nor built/installed properly. Did you
compile project 'robis_math_utilities'? Did you find_package() it before
the subdirectory containing its code is included?
...
This library is one of the dependencies of my package that I've previously installed in opt/ros/kinetic
(also available in catkin)
EDIT 1
Using dpkg-buildpackage
as suggested by @nuclearsandwich gave me a similar problem:
$ dpkg-buildpackage -b -uc
dpkg-buildpackage: source package ros-kinetic-qt-ros-interface
dpkg-buildpackage: source version 0.0.0-0xenial
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by user <user@user.com>
dpkg-buildpackage: host architecture amd64
dpkg-source --before-build qt_ros_interface
dpkg-source: info: using options from qt_ros_interface/debian/source/options: --auto-commit
dpkg-source: warning: can't parse dependency ros-kinetic-robis_math_utilities
dpkg-source: error: error occurred while parsing Build-Depends
dpkg-buildpackage: error: dpkg-source --before-build qt_ros_interface gave error exit status 255
This package also depends on another package that was installed in using the same method, but only this library is giving me troubles..
EDIT 2
The issue with dpkg-buildpackage is solved, my rosdep file had ros-kinetic-robis_math_utilities
instead of ros-kinetic-robis-math-utilities
but the original issue is not solved yet..
The linked fakeroot bash file appears to be a mix of commands run and their output. If that's a separate bash script that you're using in your release process can you provide a link that is just the bash source?
Maybe I gave it the wrong name, that is just what appears in the terminal when I run the
fakeroot
I see, thanks for clarifying. I'd suggest trying to build the package using the command in my answer below. I think it's the most expedient way to do so.
dpkg-source: warning: can't parse dependency ros-kinetic-robis_math_utilities
Debian package names do not contain underscores. I expect your rosdep.yaml file might have some mistakes, can you post it please?
You're right, it was an error on rosdep that I corrected. But now I've the exact same error I had when I used fakeroot,, heres the log file
Have you created the package for robis_math_utilities and installed it on your system? Since bloom sources only your /opt/ros/kinetic installation packages in the local workspace are not used.
Yes I've done that. I wrote it on the question
Sorry I missed it! Are you able to build qt_ros_interface in a workspace by itself with only /opt/ros/kinetic/setup.bash sourced?