From 3a9e59a13b2c07e2d9e1e171f8720d6f34623c18 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Fri, 25 Mar 2022 18:31:14 -0700 Subject: [PATCH] Set LD_LIBRARY_PATH so Connext can find OpenSSL I'm not really sure what's supposed to be responsible for allowing Connext to find its custom OpenSSL libraries, but this seems to do the trick. Note that `sudo` didn't seem to pass LD_LIBRARY_PATH through with -E, so I set it explicitly. Signed-off-by: Scott K Logan --- linux_docker_resources/entry_point.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux_docker_resources/entry_point.sh b/linux_docker_resources/entry_point.sh index 1eb654724..12dd5c894 100755 --- a/linux_docker_resources/entry_point.sh +++ b/linux_docker_resources/entry_point.sh @@ -64,6 +64,7 @@ if [ "${ARCH}" != "aarch64" ]; then exit 1 fi export CONNEXTDDS_DIR=/home/rosbuild/rti_connext_dds-6.0.1 + export LD_LIBRARY_PATH=$CONNEXTDDS_DIR/resource/app/lib/x64Linux2.6gcc4.4.5 else echo "No connext installation files found found." >&2 exit 1 @@ -85,4 +86,4 @@ sed -i -e "s/rosbuild:x:$ORIG_GID:/rosbuild:x:$GID:/" /etc/group chown -R ${UID}:${GID} "${ORIG_HOME}" echo "done." -exec sudo -H -u rosbuild -E -- xvfb-run -s "-ac -screen 0 1280x1024x24" /bin/sh -c "$*" +exec sudo -H -u rosbuild -E -- xvfb-run -s "-ac -screen 0 1280x1024x24" /bin/env LD_LIBRARY_PATH="$LD_LIBRARY_PATH" /bin/sh -c "$*"