Update Building Custom Models authored by Ezekiel Dohmen's avatar Ezekiel Dohmen
...@@ -13,11 +13,11 @@ site=tst ...@@ -13,11 +13,11 @@ site=tst
IFO=X1 IFO=X1
ifo=x1 ifo=x1
RCG_SRC=/usr/share/advligorts/src RCG_SRC=/usr/share/advligorts/src
RTS_VERSION=5.0.0~devel RTS_VERSION=5.1.2
RCG_LIB_PATH=/home/controls/git/advligorts/test/:/usr/share/advligorts/src/src/epics/simLink/:/usr/share/advligorts/src/src/epics/simLink/lib RCG_LIB_PATH=usr/share/advligorts/src/src/epics/simLink/:/usr/share/advligorts/src/src/epics/simLink/lib
... ...
RCG_BUILD_ROOT=/var/cache/advligorts RCG_BUILD_ROOT=/var/cache/advligorts
RCG_BUILDD=/var/cache/advligorts/rcg-5.0.0~devel RCG_BUILDD=/var/cache/advligorts/rcg-5.1.2
RCG_TARGET=/opt/rtcds/tst/x1 RCG_TARGET=/opt/rtcds/tst/x1
CDS_SRC=/home/controls/git/advligorts/test/ CDS_SRC=/home/controls/git/advligorts/test/
CDS_IFO_SRC=/home/controls/git/advligorts/test/ CDS_IFO_SRC=/home/controls/git/advligorts/test/
...@@ -45,16 +45,6 @@ RCG_TARGET=/opt/rtcds/lho/h1 ...@@ -45,16 +45,6 @@ RCG_TARGET=/opt/rtcds/lho/h1
Note that the `RCG_LIB_PATH` is very long, pulling in all `h1` specific models. Note that the `RCG_LIB_PATH` is very long, pulling in all `h1` specific models.
</details> </details>
### Setting the Build Environment
These paths assume you cloned advligorts into your home directory, you will need to adjust to the paths for the directory you chose.
```shell
export RTS_VERSION=cymac-build
export RCG_SRC=/home/$USER/advligorts/
export CDS_SRC=/home/$USER/advligorts/src/include/
```
### Allowing `rtcds` to Find your Custom Model ### Allowing `rtcds` to Find your Custom Model
In order for `rtcds` to find your model (the <model_name>.mdl file) the `RCG_LIB_PATH` env variable needs to have a path to the directory containing it. The best way to do that, is adding the directory path to the `RCG_LIB_PATH` line in the `/etc/advligorts/env` file. In order for `rtcds` to find your model (the <model_name>.mdl file) the `RCG_LIB_PATH` env variable needs to have a path to the directory containing it. The best way to do that, is adding the directory path to the `RCG_LIB_PATH` line in the `/etc/advligorts/env` file.
...@@ -65,7 +55,7 @@ After adding the line, your `/etc/advligorts/env` file might look like: ...@@ -65,7 +55,7 @@ After adding the line, your `/etc/advligorts/env` file might look like:
```shell ```shell
SITE=TST SITE=TST
IFO=X1 IFO=X1
RCG_LIB_PATH=/home/controls/git/advligorts/test/:/home/controls/models/ RCG_LIB_PATH=/home/controls/models/
``` ```
Note the `RTS_ENV` environmental variable will override where `rtcds` looks for the env file, so if you want the default functionality make sure it is unset. Note the `RTS_ENV` environmental variable will override where `rtcds` looks for the env file, so if you want the default functionality make sure it is unset.
...@@ -75,12 +65,12 @@ You can list your `rtcds` environment again with the `rtcds env` command and you ...@@ -75,12 +65,12 @@ You can list your `rtcds` environment again with the `rtcds env` command and you
controls@x1cymac:~$ rtcds env controls@x1cymac:~$ rtcds env
... ...
... ...
RCG_SRC=/home/controls/advligorts/ RCG_SRC=/usr/share/advligorts/src
RTS_VERSION=cymac-build RTS_VERSION=5.1.2
RCG_LIB_PATH=/home/controls/git/advligorts/test/:/home/controls/models/:/home/controls/advligorts//src/epics/simLink/:/home/controls/advligorts//src/epics/simLink/lib RCG_LIB_PATH=/home/controls/models/:/home/controls/advligorts//src/epics/simLink/:/home/controls/advligorts//src/epics/simLink/lib
... ...
RCG_BUILD_ROOT=/var/cache/advligorts RCG_BUILD_ROOT=/var/cache/advligorts
RCG_BUILDD=/var/cache/advligorts/rcg-cymac-build RCG_BUILDD=/var/cache/advligorts/rcg-5.1.2
RCG_TARGET=/opt/rtcds/tst/x1 RCG_TARGET=/opt/rtcds/tst/x1
CDS_SRC=/home/controls/advligorts/src/include/ CDS_SRC=/home/controls/advligorts/src/include/
CDS_IFO_SRC=/home/controls/advligorts/src/include/ CDS_IFO_SRC=/home/controls/advligorts/src/include/
... ...
......