Skip to content

Commit

Permalink
set ROOT environment variable (#6668)
Browse files Browse the repository at this point in the history
#changelog #linux
  • Loading branch information
themancalledjakob authored Jan 26, 2021
1 parent 2013d17 commit b4ea0d9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion scripts/linux/archlinux/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ if [ $EUID != 0 ]; then
exit 1
fi

ROOT=$(cd $(dirname $0); pwd -P)

pacman -Sy --needed make pkgconf gcc openal glew freeglut freeimage gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-libav opencv libxcursor assimp boost glfw-x11 uriparser curl pugixml rtaudio poco

exit_code=$?
Expand All @@ -29,4 +31,4 @@ else
echo "Updating ofxOpenCV to use openCV4"
sed -i -E 's/ADDON_PKG_CONFIG_LIBRARIES =(.*)opencv\s/ADDON_PKG_CONFIG_LIBRARIES =\1opencv4 /g' "$addons_dir/ofxOpenCv/addon_config.mk"
sed -i -E 's/ADDON_PKG_CONFIG_LIBRARIES =(.*)opencv$/ADDON_PKG_CONFIG_LIBRARIES =\1opencv4/g' "$addons_dir/ofxOpenCv/addon_config.mk"
fi
fi
4 changes: 3 additions & 1 deletion scripts/linux/archlinux_armv7/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ if [ $EUID != 0 ]; then
exit 1
fi

ROOT=$(cd $(dirname $0); pwd -P)

pacman -Sy --needed make pkg-config gcc openal glew freeglut freeimage freetype2 cairo poco gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-libav raspberrypi-firmware gst-omx-rpi assimp boost libxcursor opencv assimp glfw-x11 uriparser curl pugixml

wget http://ci.openframeworks.cc/rtaudio-armv7hf.tar.bz2
Expand All @@ -32,4 +34,4 @@ else
echo "Updating ofxOpenCV to use openCV4"
sed -i -E 's/ADDON_PKG_CONFIG_LIBRARIES =(.*)opencv\s/ADDON_PKG_CONFIG_LIBRARIES =\1opencv4 /g' "$addons_dir/ofxOpenCv/addon_config.mk"
sed -i -E 's/ADDON_PKG_CONFIG_LIBRARIES =(.*)opencv$/ADDON_PKG_CONFIG_LIBRARIES =\1opencv4/g' "$addons_dir/ofxOpenCv/addon_config.mk"
fi
fi
4 changes: 3 additions & 1 deletion scripts/linux/chip/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ if [ $EUID != 0 ]; then
exit 1
fi

ROOT=$(cd $(dirname $0); pwd -P)

apt-get update

GSTREAMER_VERSION=0.10
Expand Down Expand Up @@ -101,4 +103,4 @@ else
echo "Updating ofxOpenCV to use openCV4"
sed -i -E 's/ADDON_PKG_CONFIG_LIBRARIES =(.*)opencv\s/ADDON_PKG_CONFIG_LIBRARIES =\1opencv4 /g' "$addons_dir/ofxOpenCv/addon_config.mk"
sed -i -E 's/ADDON_PKG_CONFIG_LIBRARIES =(.*)opencv$/ADDON_PKG_CONFIG_LIBRARIES =\1opencv4/g' "$addons_dir/ofxOpenCv/addon_config.mk"
fi
fi
4 changes: 3 additions & 1 deletion scripts/linux/el6/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ if [ $EUID != 0 ]; then
exit 1
fi

ROOT=$(cd $(dirname $0); pwd -P)

yum install -y freeglut-devel alsa-lib-devel libXmu-devel libXxf86vm-devel gcc-c++ libraw1394-devel gstreamer1-devel gstreamer1-plugins-base-devel libudev-devel libtheora-devel libvorbis-devel openal-soft-devel libsndfile-devel python-lxml glew-devel flac-devel freeimage-devel cairo-devel pulseaudio-libs-devel openssl-devel libusbx-devel gtk2-devel libXrandr-devel libXi-devel opencv-devel libX11-devel assimp-devel rtaudio-devel boost-devel gtk3-devel glfw-devel uriparser-devel curl-devel pugixml-devel

exit_code=$?
Expand Down Expand Up @@ -50,4 +52,4 @@ else
echo "Updating ofxOpenCV to use openCV4"
sed -i -E 's/ADDON_PKG_CONFIG_LIBRARIES =(.*)opencv\s/ADDON_PKG_CONFIG_LIBRARIES =\1opencv4 /g' "$addons_dir/ofxOpenCv/addon_config.mk"
sed -i -E 's/ADDON_PKG_CONFIG_LIBRARIES =(.*)opencv$/ADDON_PKG_CONFIG_LIBRARIES =\1opencv4/g' "$addons_dir/ofxOpenCv/addon_config.mk"
fi
fi

0 comments on commit b4ea0d9

Please sign in to comment.