File tree Expand file tree Collapse file tree 3 files changed +47
-5
lines changed
Expand file tree Collapse file tree 3 files changed +47
-5
lines changed Original file line number Diff line number Diff line change @@ -5,21 +5,20 @@ The folowing packages are required to install SPBench dependencies:
55
66- build-essential
77- cmake
8- - yasm
98- python (tested on python3 and python2.7)
109
1110You can run the command bellow to install theses dependencies or ask a system admin.
1211
1312``
14- sudo apt-get install -y build-essential cmake yasm python3
13+ sudo apt-get install -y build-essential cmake python3
1514``
1615
1716## Installation
18- For Lane Detection you first must install ffmpeg and then OpenCV.
17+ For Lane Detection you first must install yasm -> ffmpeg -> OpenCV -> UPL .
1918
20- For Bzip2 you only need to install the bzlib library .
19+ For Bzip2 you need to install the bzlib -> UPL .
2120
22- For Ferret, you must install GSL and JPEG
21+ For Ferret, you must install GSL -> JPEG -> UPL
2322
2423## ffmpeg
2524
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ THIS_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd) "
4+ cd $THIS_DIR
5+
6+ FILE=" yasm-1.3.0.tar.gz"
7+
8+ if [ ! -f " $FILE " ]; then
9+ echo " Downloading $FILE ..."
10+ wget -c --read-timeout=5 --tries=10 https://gmap.pucrs.br/public_data/spbench/libs/yasm/$FILE
11+ fi
12+
13+ LIB_DIR=" yasm-1.3.0"
14+
15+ if [ -d " $LIB_DIR " ]; then
16+ echo " Previous installation found."
17+ echo " Do you want to delete and reinstall it? [yes/no]"
18+ read ANSWER
19+ re2=' [Yy]es|YES|[Yy]'
20+ if ! [[ $ANSWER =~ $re2 ]] ; then
21+ echo " Installation cancelled!"
22+ exit 1
23+ fi
24+ rm -rf $LIB_DIR
25+ fi
26+
27+ tar -xf $FILE
28+
29+ cd $LIB_DIR
30+ mkdir build
31+ PREFIX=" $PWD /build"
32+ PATH=" $PREFIX /bin:$PATH "
33+ ./configure --prefix=$PREFIX
34+ make -j$( nproc)
35+ make install
36+ cd ..
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ LIB_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd) "
4+
5+ YASM_HOME=$LIB_DIR /yasm-1.3.0/build
6+ export PATH=${YASM_HOME} /bin:$PATH
7+ export LD_LIBRARY_PATH=${YASM_HOME} /lib:${YASM_HOME} /include:$LD_LIBRARY_PATH
You can’t perform that action at this time.
0 commit comments