Commit 51dd353b6d32f37a7bbfb8f6237e5b6932735b56

Authored by Wesnydy Ribeiro
1 parent 86eba8e5
Exists in master and in 1 other branch devel

Atualização do script de instalação

Showing 1 changed file with 21 additions and 12 deletions   Show diff stats
core_install.sh
1 #!/bin/bash 1 #!/bin/bash
2 2
3 -echo -e "\n## Iniciando a instalação do vlibras-core ##\n" 3 +echo -e "\n\e[1;32m## Iniciando a instalação do vlibras-core ##\e[0m\n"
4 4
5 DIR=$HOME/vlibras-libs 5 DIR=$HOME/vlibras-libs
6 6
@@ -11,11 +11,11 @@ fi @@ -11,11 +11,11 @@ fi
11 #garanto que não tem nenhuma versão prévia instalada 11 #garanto que não tem nenhuma versão prévia instalada
12 sudo apt-get remove -y ffmpeg x264 libx264-dev yasm 12 sudo apt-get remove -y ffmpeg x264 libx264-dev yasm
13 13
14 -echo -e "\n## Fazendo download das dependências...\n" 14 +echo -e "\n\e[1;32m## Fazendo download das dependências...\e[0m\n"
15 15
16 sudo apt-get update 16 sudo apt-get update
17 sudo apt-get install -y aptitude 17 sudo apt-get install -y aptitude
18 -sudo aptitude install -y build-essential libvpx-dev sox libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev automake autoconf libmad0-dev libgpm-dev libavcodec-dev libavformat-dev libdirectfb-extra libtool libavcodec-extra-52 libavformat-extra-52 libdirectfb-bin libdirectfb-dev libgtk+2.0-directfb0 libgtk+2.0-directfb-dev 18 +sudo aptitude install -y build-essential cmake libvpx-dev sox libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev automake autoconf libmad0-dev libgpm-dev libavcodec-dev libavformat-dev libdirectfb-extra libtool libavcodec-extra-52 libavformat-extra-52 libdirectfb-bin libdirectfb-dev libgtk+2.0-directfb0 libgtk+2.0-directfb-dev
19 19
20 cd ~/vlibras-libs 20 cd ~/vlibras-libs
21 21
@@ -25,7 +25,7 @@ wget http://150.165.204.30:8080/core/linux/julius-4.3.1.tar.gz @@ -25,7 +25,7 @@ wget http://150.165.204.30:8080/core/linux/julius-4.3.1.tar.gz
25 wget http://150.165.204.30:8080/core/linux/lavid-lib.tar.gz 25 wget http://150.165.204.30:8080/core/linux/lavid-lib.tar.gz
26 wget http://150.165.204.30:8080/core/linux/ffmpeg-vlibras.tar.gz 26 wget http://150.165.204.30:8080/core/linux/ffmpeg-vlibras.tar.gz
27 27
28 -echo -e "\n## Extraindo...\n" 28 +echo -e "\n\e[1;32m## Extraindo...\e[0m\n"
29 29
30 tar -xf ffmpeg-vlibras.tar.gz 30 tar -xf ffmpeg-vlibras.tar.gz
31 tar -xf yasm-1.2.0.tar.gz 31 tar -xf yasm-1.2.0.tar.gz
@@ -33,16 +33,16 @@ tar -xf jlibcpp-1.5.0.tar.gz @@ -33,16 +33,16 @@ tar -xf jlibcpp-1.5.0.tar.gz
33 tar -xf julius-4.3.1.tar.gz 33 tar -xf julius-4.3.1.tar.gz
34 tar -xf lavid-lib.tar.gz 34 tar -xf lavid-lib.tar.gz
35 35
36 -echo -e "\n## Instalando dependências...\n" 36 +echo -e "\n\e[1;32m## Instalando dependências...\e[0m\n"
37 37
38 -echo -e "\n## Instalando Yasm...\n" 38 +echo -e "\n\e[1;32m## Instalando Yasm...\e[0m\n"
39 cd yasm-1.2.0 39 cd yasm-1.2.0
40 chmod +x configure 40 chmod +x configure
41 ./configure 41 ./configure
42 make 42 make
43 sudo make install 43 sudo make install
44 44
45 -echo -e "\n## Instalando x264...\n" 45 +echo -e "\n\e[1;32m## Instalando x264...\e[0m\n"
46 cd .. 46 cd ..
47 git clone --depth 1 git://git.videolan.org/x264 47 git clone --depth 1 git://git.videolan.org/x264
48 cd x264 48 cd x264
@@ -52,7 +52,7 @@ make @@ -52,7 +52,7 @@ make
52 sudo make install 52 sudo make install
53 sudo ldconfig 53 sudo ldconfig
54 54
55 -echo -e "\n## Instalando FFmpeg...\n" 55 +echo -e "\n\e[1;32m## Instalando FFmpeg...\e[0m\n"
56 cd .. 56 cd ..
57 cd ffmpeg 57 cd ffmpeg
58 chmod +x configure 58 chmod +x configure
@@ -61,21 +61,30 @@ make @@ -61,21 +61,30 @@ make
61 sudo make install 61 sudo make install
62 hash x264 ffmpeg ffprobe 62 hash x264 ffmpeg ffprobe
63 63
64 -echo -e "\n## Instalando jlibcpp...\n" 64 +echo -e "\n\e[1;32m## Instalando jlibcpp...\e[0m\n"
65 cd .. 65 cd ..
66 cd jlibcpp 66 cd jlibcpp
67 make ENABLE_DIRECTFB=no 67 make ENABLE_DIRECTFB=no
68 sudo make install 68 sudo make install
69 sudo ldconfig 69 sudo ldconfig
70 70
71 -echo -e "\n## Instalando Julius...\n" 71 +echo -e "\n\e[1;32m## Instalando JsonCpp...\e[0m\n"
  72 +cd ..
  73 +git clone https://github.com/open-source-parsers/jsoncpp.git
  74 +cd jsoncpp
  75 +python amalgamate.py
  76 +./travis.sh
  77 +make
  78 +sudo make install
  79 +
  80 +echo -e "\n\e[1;32m## Instalando Julius...\e[0m\n"
72 cd .. 81 cd ..
73 cd julius-4.3.1 82 cd julius-4.3.1
74 ./configure 83 ./configure
75 make 84 make
76 sudo make install 85 sudo make install
77 86
78 -echo -e "\n## Instalando Lavidlib...\n" 87 +echo -e "\n\e[1;32m## Instalando Lavidlib...\e[0m\n"
79 cd .. 88 cd ..
80 cd lavid-lib 89 cd lavid-lib
81 make 90 make
@@ -83,4 +92,4 @@ sudo make install @@ -83,4 +92,4 @@ sudo make install
83 92
84 cd .. 93 cd ..
85 rm ffmpeg-vlibras.tar.gz yasm-1.2.0.tar.gz jlibcpp-1.5.0.tar.gz julius-4.3.1.tar.gz lavid-lib.tar.gz 94 rm ffmpeg-vlibras.tar.gz yasm-1.2.0.tar.gz jlibcpp-1.5.0.tar.gz julius-4.3.1.tar.gz lavid-lib.tar.gz
86 -echo -e "\n## Instalação finalizada! ##\n"  
87 \ No newline at end of file 95 \ No newline at end of file
  96 +echo -e "\n\e[1;32m## Instalação finalizada! ##\e[0m\n"
88 \ No newline at end of file 97 \ No newline at end of file