From aa3d60eb8dc575a78eade351af874e269d337b64 Mon Sep 17 00:00:00 2001 From: Dmitry Romanov <romanovda@gmail.com> Date: Tue, 3 Aug 2021 16:22:52 -0400 Subject: [PATCH] Env --- README.md | 10 ++++++++++ env.sh | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 env.sh diff --git a/README.md b/README.md index 11445f0..0a0eba9 100644 --- a/README.md +++ b/README.md @@ -16,3 +16,13 @@ ln -s ../ip6/ip6 athena/ip6 [VSCode documentation on container development](https://code.visualstudio.com/docs/remote/create-dev-container) + +### Troubleshooting: + +1. If there is an error like: + + ``` + Compact ERROR ++ FAILED to convert subdetector: B0Tracker: dd4hep: Evaluator::Object : unknown variable : B0Tracker_ID : value=B0Tracker_ID [Evaluation error] + ``` + + The most probably you've forgotten `ln -s ../ip6/ip6 athena/ip6` \ No newline at end of file diff --git a/env.sh b/env.sh new file mode 100644 index 0000000..db3df60 --- /dev/null +++ b/env.sh @@ -0,0 +1,9 @@ +SCRIPT_DIR='' +pushd "$(dirname "$(readlink -f "$BASH_SOURCE")")" > /dev/null && { + SCRIPT_DIR="$PWD" + popd > /dev/null +} + + +DD4HEP_LIBRARY_PATH="$SCRIPT_DIR/lib${DD4HEP_LIBRARY_PATH:+:${DD4HEP_LIBRARY_PATH}}" +LD_LIBRARY_PATH="$SCRIPT_DIR/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" \ No newline at end of file -- GitLab