Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only part of the code that uses colcon is when compiling dependencies from source, see line 93 above. And that's sourcing the workspace. I'm not sure what this line is supposed to be doing.
The PR you mentioned, gazebosim/gz-sensors#38, isn't installing any dependencies from source, so that build shouldn't need colcon at all.
Maybe what you need is a
make install
onafter_make.sh
like this?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 93 only source the dependencies if you include some dependencies from source.
This file is only going to load the
package.sh
of the dependencies included in theCMakeLists.txt
. An example:This other approach may require:
-DCMAKE_INSTALL_PREFIX
to the cmake callmake install
or
make install
LD_LIBRARY_PATH
because make install will install this new library in/usr/local
not in/usr/
. See here