Closed greg-is-kub closed 2 years ago
Ok problem solved quite simply
rock-create-lib /relative/path/to/lib/outside/rock/lib_name
then adding to <autoproj/manifest> following this syntax :
layout :
- relative/path/to/lib/outside/rock :
- lib_name
then in the shell :
cd /relative/path/to/lib/outside/rock/lib_name
autoproj test enable .
amake
generated the build/test file and allowed to test the lib
Hi @greg-is-kub ...
I have to admit the fact it worked at all is ... unexpected. You really should not be relying on that behavior. It may break in the future.
However, you can use the same functionality to split the two sets of packages, by putting e.g. rock.core into a separate folder:
layout:
rock:
rock.core
myproject:
mylib
Hi everybody,
first of all : rock beginner here, feel free to tell me if there is any info missing in my post i'll edit it with the missing data. thanks in advance for your help !
Config
I’m currently working on rock from a docker:
ubuntu 20.04, docker config below:
Problem
I would like to be able to work from an other folder than the rock_root directory from where rock has been installed (specifically a workspace directory mounted from my computer where my work will be easily saved).
The problem is that after having (very) closely followed this tutorial I found that the last part (testing) could only be achieved if the rock-create-lib ${lib_name} was called from the rock_install_directory. Otherwise, the build/test file is not generated so no binaries and no the tests can be executed.
following commands are extracted from (the end of) the tutorial :
I know that this was specified at the beginning of the directory. However, the open wikistart from the DFKI tells that it doesn’t matter in which folder the library is created.
SO MY QUESTION IS : WHY IS IT NOT WORKING ? why can’t I generate a build/test folder from outside the rock_install_directory ? Is there any way I could do that ? thanks in advance for your time ! :wink: