Error trying to install Comskip

I was able to successfully install Comskip and finish the tutorial [HowTo] Autoedit – Fully automated DVR with commercial detection on a Raspberry Pi 3 using OSMC August 2017 update.

Here are the changes I needed to make:

At the very beginning, install x265

   # Edit apt sources list and install libx265
   sudo vi /etc/apt/sources.list
   Add “deb http://ftp.us.debian.org/debian jessie-backports main”

   sudo apt-get update
   sudo apt-get install libx265-dev

   remove extra line from sources list

Right after the line cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source in step #3

Edit the ../sources/ffmpeg/x265/source/CmakeLists.txt file and replace the following
-mcpu=native  to  -mcpu=arm1176jzf-s
-march=native to -march=armv7-a

I did this using Wordpad on Windows since I could connect to the network share.

When installing Comskip I added some export commands. Here is the complete step

# 7) Install dependencies:
cd $HOME/sources
sudo apt-get install libargtable2-dev
git clone git://github.com/IfThenERROR/Comskip
cd Comskip
./autogen.sh
export CPPFLAGS='-I/opt/vc/include -I/home/osmc/ffmpeg_build/include'
export LDFLAGS="-L/opt/vc/lib -L/opt/vc/lib/pkgconfig -L/opt/vc/lib/plugins"
export CPPFLAGS='-I/opt/vc/include'

./configure CFLAGS='-L/opt/vc/lib'
sudo make -j4
sudo make install
cd $HOME
rm -R --interactive=never ~/sources/Comskip

Everything else was installed as described in the tutorial. I have a Word document listing all the steps I took if anyone wants it.