Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update install_dependencies #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions install_dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repo_dir=`pwd`
is_installed_django=False
is_installed_python_smbus=False
is_installed_python_opencv=False
is_installed_libjpeg8_dev=False
is_installed_libjpeg62-turbo-dev=False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the point or benefit to use libjpeg62-turbo-dev
Thank you 1

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change the headline of this pull request to see immediate the topic


if [ "$(whoami)" != "root" ] ; then
echo -e "You must run this script as root."
Expand Down Expand Up @@ -64,8 +64,8 @@ function print_result(){
else
echo -e "Failed"
fi
echo -e "libjpeg8-dev \c"
if $is_installed_libjpeg8_dev; then
echo -e "libjpeg62-turbo-dev \c"
if $is_installed_libjpeg62-turbo-dev; then
echo -e "Success"
else
echo -e "Failed"
Expand Down Expand Up @@ -120,16 +120,16 @@ else
fi
fi

echo -e "\nInstalling libjpeg8-dev \n"
if sudo apt-get install libjpeg8-dev -y; then
echo -e " Successfully installed libjpeg8-dev \n"
is_installed_libjpeg8_dev=true
echo -e "\nInstalling libjpeg62-turbo-dev \n"
if sudo apt-get install libjpeg62-turbo-dev -y; then
echo -e " Successfully installed libjpeg62-turbo-dev \n"
is_installed_libjpeg62-turbo-dev=true
else
echo -e " Failed to installed libjpeg8-dev \n"
echo -e " Failed to installed libjpeg62-turbo-dev \n"
echo -e " Do you want to skip this? \c"
if_continue
if [ $? = 1 ] ; then
echo -e " Skipped libjpeg8-dev installation."
echo -e " Skipped libjpeg62-turbo-dev installation."
else
end
fi
Expand Down