Como instalar Ultrastar (clon de SingStar) en la raspberry pi

Sección Unicamente para Tutoriales y Guías
Gambo13
Pi Omega
Pi Omega
Mensajes: 74
Registrado: 28 Sep 2016, 12:43
Agradecido: 0
Agradecimiento recibido: 0

Elegi el 1.2.12, las dependencias las he instalado todas una por una, siguiendo el tuto que me hiciste en el mensaje #68236 @Fire_Fox . No entiendo porque mi raspberry no me quiere, ahora voy a empezar otra vez de 0, no se cuantas veces van ya, y antes de crear y abrir el script, en cuanto instale las dependencias, voy ha hacer una copia de la SD, para no perder tanto tiempo.
Avatar de Usuario
Fire_Fox
Pi Omega
Pi Omega
Mensajes: 50
Registrado: 26 Ago 2016, 11:41
Agradecido: 0
Agradecimiento recibido: 0

Eso hice yo hasta que lo conseguí xD

Si sigues el tuto viejo no debería de darte ningún problema, yo conseguí instalar y que funcionara perfecto la versión antiguo, pero aun sigo pegándome con la ultima versión y los script para que se encienda y apague auto.
Poco a poco.
Gambo13
Pi Omega
Pi Omega
Mensajes: 74
Registrado: 28 Sep 2016, 12:43
Agradecido: 0
Agradecimiento recibido: 0

Fire_Fox escribió:Eso hice yo hasta que lo conseguí xD

Si sigues el tuto viejo no debería de darte ningún problema, yo conseguí instalar y que funcionara perfecto la versión antiguo, pero aun sigo pegándome con la ultima versión y los script para que se encienda y apague auto.
Poco a poco.
Alguien a conseguido instalar la ultima version?
Avatar de Usuario
Fire_Fox
Pi Omega
Pi Omega
Mensajes: 50
Registrado: 26 Ago 2016, 11:41
Agradecido: 0
Agradecimiento recibido: 0

Si, yo la instale y funciona perfectamente.
Gambo13
Pi Omega
Pi Omega
Mensajes: 74
Registrado: 28 Sep 2016, 12:43
Agradecido: 0
Agradecimiento recibido: 0

La instalaste con el script o metiste todo a mano?
Avatar de Usuario
Fire_Fox
Pi Omega
Pi Omega
Mensajes: 50
Registrado: 26 Ago 2016, 11:41
Agradecido: 0
Agradecimiento recibido: 0

Gambo13 escribió:La instalaste con el script o metiste todo a mano?
Instale las depes a mano, instala las FPC las ultimas, luego en el script comenta todas las dependencias, para que no las instale.

Instala FM 3.3 el FPC ya estara instaldo, simplemente dale n intro, y la ultima versión de USDX Agosto 2017

Acabo de hacer una instalación limpia ahora mismo y va de lujo, el driver grafico elige el del medio, no el full.
Gambo13
Pi Omega
Pi Omega
Mensajes: 74
Registrado: 28 Sep 2016, 12:43
Agradecido: 0
Agradecimiento recibido: 0

Fire_Fox escribió:
Gambo13 escribió:La instalaste con el script o metiste todo a mano?
Instale las depes a mano, instala las FPC las ultimas, luego en el script comenta todas las dependencias, para que no las instale.

Instala FM 3.3 el FPC ya estara instaldo, simplemente dale n intro, y la ultima versión de USDX Agosto 2017

Acabo de hacer una instalación limpia ahora mismo y va de lujo, el driver grafico elige el del medio, no el full.
Me puedes pasar una imagen de tu SD? No consigo instalar ninguna version, debo ser mas torpe de lo que pensaba.
Avatar de Usuario
Fire_Fox
Pi Omega
Pi Omega
Mensajes: 50
Registrado: 26 Ago 2016, 11:41
Agradecido: 0
Agradecimiento recibido: 0

Gambo13 escribió:
Fire_Fox escribió:
Gambo13 escribió:La instalaste con el script o metiste todo a mano?
Instale las depes a mano, instala las FPC las ultimas, luego en el script comenta todas las dependencias, para que no las instale.

Instala FM 3.3 el FPC ya estara instaldo, simplemente dale n intro, y la ultima versión de USDX Agosto 2017

Acabo de hacer una instalación limpia ahora mismo y va de lujo, el driver grafico elige el del medio, no el full.
Me puedes pasar una imagen de tu SD? No consigo instalar ninguna version, debo ser mas torpe de lo que pensaba.
Aun no la tengo acabada, en cuanto la acabe al 100% te la paso sin problema, he hecho otro "tuto" que ayer hice varias veces y sin problema, te lo pego y síguelo al pie e la letra.
Utiliza esta versión de Raspbian, no uses la de NOOBS

Código: Seleccionar todo

## Comandos para preparar tarjeta Karaoke con UltraStar Deluxe y Raspbian Jessi Desktop ##

1 . ## Actualizar firmware y kernel de Raspberry. ##

sudo rpi-update

2. ## Actualizamos paquetes. ##

sudo apt-get update
sudo apt-get upgrade

3. ##Instalar Raspi-Config si no estuviera instalado. ##

sudo apt-get install rc-gui

4. ## Configuramos SSH, cambiamos idioma y todo los parametros de localizacion, etc... ##

sudo raspi-config

5. ## Ejecutar estos comandos para desintalar lo que no empleemos, libreoffice y demás. ##

sudo apt-get remove minecraft-pi wolfram-engine scratch sonic-pi nodered bluej greenfoot libreoffice-writer libreoffice-calc libreoffice-base libreoffice-impress libreoffice-draw libreoffice-math libreoffice 
sudo apt-get autoremove
sudo apt-get autoclean

6. OPCIONAL ## Aplicaciones para terminal de recomendada instalación, SAMBA, montaje para guardar canciones en USB##

sudo apt-get install usbmount
sudo apt-get install autofs 
sudo apt-get install samba
sudo apt-get install samba-common-bin

## Con esto ya tenemos nuestra Raspberry lista para empezar a compilar la instalacion de USDX ##

7. IMPORTANTE ## Para empezar necesitamos instalar todas estas dependencias antes de lanzar la isntalación POR ESTE ORDEN ##

sudo apt-get install automake
sudo apt-get install libpng12-0
sudo apt-get install libpng12-dev
sudo apt-get install libsdl2-dev
sudo apt-get install libsdl2-2.0-0
sudo apt-get install libsdl2-gfx-1.0-0
sudo apt-get install libsdl2-gfx-dev
sudo apt-get install libsdl2-image-2.0-0
sudo apt-get install libsdl2-image-dev
sudo apt-get install libsdl2-mixer-2.0-0
sudo apt-get install libsdl2-mixer-dev
sudo apt-get install libsdl2-net-2.0-0
sudo apt-get install libsdl2-net-dev
sudo apt-get install libsdl2-ttf-2.0-0
sudo apt-get install libsdl2-ttf-dev
sudo apt-get install portaudio19-dev
sudo apt-get install liblua5.1-0
sudo apt-get install liblua5.1-0-dev
sudo apt-get install libsqlite3-0
sudo apt-get install libsqlite3-dev
sudo apt-get install git
sudo apt-get install fpc
sudo apt-get install fpc-source

8. ## Ahora crearemos un script con la instalación ##

sudo nano compilar_ultrastar.sh

9. ## y pegamos todo este contenido dentro del script !! Gracias al compi CapNida de fororaspberry.es !! ##


#!/bin/bash
########################VARIABLES###############################
export ROJO="\033[1;31m"
export AZUL="\033[1;36m"
export VERDE="\033[1;32m"
export NEGRO="\033[0m"
INSTALAR_FFMPEG=s
INSTALAR_FREEPASCAL=s
################################################################
rm -Rf /tmp/*
ffmpeg -version
FFMPEG_INSTALADO=$?
fpc -iV
FREEPASCAL_INSTALADO=$?

cd /tmp/
echo -e "${AZUL}--------------------${NEGRO}"
echo -e "${AZUL}Descargando software${NEGRO}"
echo -e "${AZUL}--------------------${NEGRO}"
if [ $FFMPEG_INSTALADO -eq 0 ]
then
   echo -e "${ROJO}Esta instalada la version `ffmpeg -version | grep version | awk '{print $3}'` de ffmpeg${NEGRO}"
   echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}"
   read INSTALAR_FFMPEG
   case $INSTALAR_FFMPEG in
   s)
      wget http://ffmpeg.org/releases/
      mv index.html /tmp/ffmpeg_versions
      cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}'
      echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}"
      read FFMPEG_VERSION
      wget http://ffmpeg.org/releases/${FFMPEG_VERSION}
   ;;
   *)
      echo -e "${VERDE}No se descargara otra version de ffmpeg${NEGRO}"
   ;;
   esac
else
        wget http://ffmpeg.org/releases/
        mv index.html /tmp/ffmpeg_versions
        cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}'
        echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}"
        read FFMPEG_VERSION
        wget http://ffmpeg.org/releases/${FFMPEG_VERSION}
fi
if [ $FREEPASCAL_INSTALADO -eq 0 ]
then
        echo -e "${ROJO}Esta instalada la version `fpc -iV` de freepascal"
        echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}"
        read INSTALAR_FREEPASCAL
        case $INSTALAR_FREEPASCAL in
        s)
        wget https://sourceforge.net/projects/freepascal/files/Source/
        mv index.html /tmp/freepascal_versions
        cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort

        echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}"
        read FREEPASCAL_VERSION
        wget https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz
   ;;
        *)
                echo -e "${VERDE}No se descargara otra version de freepascal${NEGRO}"
        ;;
        esac

else
   wget https://sourceforge.net/projects/freepascal/files/Source/
   mv index.html /tmp/freepascal_versions
   cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort

   echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}"
   read FREEPASCAL_VERSION
   wget https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz
fi
echo -e "${AZUL}------------------------------------------${NEGRO}"
echo -e "${AZUL}Descargando ULTRASTAR${NEGRO}"
echo -e "${AZUL}------------------------------------------${NEGRO}"

which ultrastardx
ULTRASTAR_INSTALADO=$?

case $ULTRASTAR_INSTALADO in
0)
        echo -e "${ROJO}Ya hay una version de ultrastar instalada"
        echo -e "${AZUL}Quieres recompilar ULTRASTAR? s/n${NEGRO}"
        read INSTALA_ULTRASTAR
;;
*)
   INSTALA_ULTRASTAR=s
;;
esac

#if [ $INSTALA_ULTRASTAR == s ]
#then
   echo -e "${AZUL}1) Version estable (Agosto 2017)"
   echo -e "2) Ultima version (no estable)"
   echo -e "3) Version diciembre 2016 (no estable)"
   echo -e "Que version de Ultrastar quieres descargar?${NEGRO}"
   read VERSION
   case $VERSION in
   2)
        echo -e "${VERDE}Descargando la última version (no estable)${NEGRO}"
        cd /tmp
        git clone https://github.com/UltraStar-Deluxe/USDX.git
   ;;
   3)
        echo -e "${VERDE}Descargando la versión de Diciembre de 2016 (no estable)${NEGRO}"
        cd /tmp
        git clone https://github.com/UltraStar-Deluxe/USDX.git
        cd /tmp/USDX
        git checkout `git rev-list -n 1 --before="2016-12-04 23:59" master`
   ;;
   *)
        echo -e "${VERDE}Descargando la version de Agosto de 2017 (estable)${NEGRO}"
        cd /tmp
        wget https://github.com/UltraStar-Deluxe/USDX/archive/v2017.8.0.tar.gz
        tar -zxvf v2017.8.0.tar.gz
        mv USDX-2017.8.0 USDX
   ;;
   esac

#   cd /tmp
#   git clone https://github.com/UltraStar-Deluxe/USDX.git
#
#   echo -e "${AZUL}1) Continuar con la ultima version"
#   echo -e "2) Volver a version de 2016"
#   echo -e "Quieres continuar compilando la ultima version de ultrastar o volver a la version de diciembre de 2016?${NEGRO}"
#   read OPCION
#   case $OPCION in
#      1)
#         echo -e "${VERDE}Continuamos con ultima version${NEGRO}"
#      ;;
#      2)
#         echo -e "${AZUL}Realizamos un rollback de los cambios al 4 de diciembre de 2016${NEGRO}"
#         cd /tmp/USDX
#         git checkout `git rev-list -n 1 --before="2016-12-04 23:59" master`
#      ;;
#      *)
#                   echo -e "${VERDE}Continuamos con ultima version${NEGRO}"
#      ;;
#   esac

   echo -e "${AZUL}Ya tenemos todos los datos necesarios. Pulsa ${ROJO}intro ${AZUL}para comenzar la instalación.${NEGRO}"
   date
   read TECLA

   echo -e "${AZUL}--------------------${NEGRO}"
   echo -e "${AZUL}Actualizando sistema${NEGRO}"
   echo -e "${AZUL}--------------------${NEGRO}"

   sudo apt-get update

   echo -e "${AZUL}----------------------${NEGRO}"
   echo -e "${AZUL}Instalando dependencia${NEGRO}"
   echo -e "${AZUL}----------------------${NEGRO}"

#  sudo apt-get install libsdl2-dev libsdl2-2.0-0 libsdl2-gfx-1.0-0 libsdl2-gfx-dev libsdl2-image-2.0-0 libsdl2-image-dev libsdl2-mixer-2.0-0 libsdl2-mixer-dev libsdl2-net-2.0-0 libsdl2-net-dev libsdl2-ttf-2.0-0 libsdl2-ttf-dev automake fpc fpc-source portaudio19-dev liblua5.1-0 liblua5.1-0-dev libpng12-0 libpng12-dev libsqlite3-0 libsqlite3-dev git
#   sudo apt-get install libsdl2-dev
#   sudo apt-get install libsdl2-2.0-0
#   sudo apt-get install libsdl2-gfx-1.0-0   
#   sudo apt-get install libsdl2-gfx-dev
#   sudo apt-get install libsdl2-image-2.0-0
#   sudo apt-get install libsdl2-image-dev
#   sudo apt-get install libsdl2-mixer-2.0-0
#   sudo apt-get install libsdl2-mixer-dev
#   sudo apt-get install libsdl2-net-2.0-0
#   sudo apt-get install libsdl2-net-dev
#   sudo apt-get install libsdl2-ttf-2.0-0
#   sudo apt-get install libsdl2-ttf-dev
#   sudo apt-get install automake
#   sudo apt-get install fpc
#   sudo apt-get install fpc-source
#   sudo apt-get install portaudio19-dev
#   sudo apt-get install liblua5.1-0
#   sudo apt-get install liblua5.1-0-dev
#   sudo apt-get install libpng12-0
#   sudo apt-get install libpng12-dev
#   sudo apt-get install libsqlite3-0
#   sudo apt-get install libsqlite3-dev
#   sudo apt-get install git
    
   sudo aptitude install build-essential

   echo -e "${AZUL}------------------------------------${NEGRO}"
   echo -e "${AZUL}Descomprimiendo archivos descargados${NEGRO}"
   echo -e "${AZUL}------------------------------------${NEGRO}"

   case $INSTALAR_FFMPEG in
   s)
      cd /tmp
      tar -zxvf ${FFMPEG_VERSION}

      tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz

      echo -e "${AZUL}------------------------------${NEGRO}"
      echo -e "${AZUL}Compilando e instalando ffmpeg${NEGRO}"
      echo -e "${AZUL}------------------------------${NEGRO}"

      FFMPEG_DIR=`echo ${FFMPEG_VERSION}  | sed 's/.tar.gz//g'`
      cd /tmp/${FFMPEG_DIR}
      ./configure --enable-shared --enable-pic --disable-encoders --disable-static --prefix=/usr

      make -j4

      sudo make install

      VERSION_INSTALADA=`ffmpeg -version | grep version | awk '{print $3}'`
      VERSION_COMPILADA=`echo $FFMPEG_DIR | awk -F- '{print $NF}'`

      if [ $VERSION_INSTALADA != $VERSION_COMPILADA ]
      then
         echo -e "${ROJO}Error en la compilación de ffmpeg"
         echo -e "Version instalada ${VERSION_INSTALADA}"
         echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}"
         exit 1
      else
         echo -e "${VERDE}Compilacion e instalacion de ffmpeg correcta${NEGRO}"
      fi
   ;;
   *)
      echo -e "${VERDE}No se instalara el ffmpeg descargado${NEGRO}"
   ;;
   esac
   case $INSTALAR_FREEPASCAL in
   s)

              echo -e "${AZUL}----------------------------------${NEGRO}"
              echo -e "${AZUL}Compilando e instalando freepascal${NEGRO}"
              echo -e "${AZUL}----------------------------------${NEGRO}"

      cd /tmp/fpcbuild-${FREEPASCAL_VERSION}
      make NOGDB=1 OPT="-dFPC_ARMHF -CX -CfVFPV3_D16 -O- -XX -Xs" build

      sudo make NOGDB=1 install

      sudo unlink /usr/bin/ppcarm

      sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION} /usr/lib/fpc/${FREEPASCAL_VERSION}

      sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION}/ppcarm /usr/bin/ppcarm

      VERSION_INSTALADA=`fpc -iV`
      VERSION_COMPILADA=`echo ${FREEPASCAL_VERSION}`

      if [ $VERSION_INSTALADA != $VERSION_COMPILADA ]
      then
                 echo -e "${ROJO}Error en la compilación de freepascal"
              echo -e "Version instalada ${VERSION_INSTALADA}"
                 echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}"
              exit 1
      else
                 echo -e "${VERDE}Compilacion e instalacion de freepascal correcta${NEGRO}"
      fi
   ;;
   *)
      echo -e "${VERDE}No se instalara el freepascal descargado${NEGRO}"
   ;;
   esac

   echo -e "${AZUL}---------------------------------${NEGRO}"
   echo -e "${AZUL}Compilando e instalando ULTRASTAR${NEGRO}"
   echo -e "${AZUL}---------------------------------${NEGRO}"

        cd /tmp/USDX

        ./autogen.sh

          ./configure --prefix=/usr

        cd src

          sed 's/PFLAGS_RELEASE_DEFAULT := -Xs- -O2/PFLAGS_RELEASE_DEFAULT := -Xs- -O1/g' Makefile > Makefile.mod
        sed 's/LIBS       ?=/LIBS       ?= -lm -lgcc_s -llua5.1/g' Makefile.mod > Makefile.mod2

          mv Makefile Makefile.orig
        mv Makefile.mod2 Makefile

          sudo unlink /lib/arm-linux-gnueabihf/libgcc_s.so

        sudo ln -s /lib/arm-linux-gnueabihf/libgcc_s.so.1 /lib/arm-linux-gnueabihf/libgcc_s.so

          make -j4

        cd /tmp/USDX

          sudo make install
#else
#   echo -e "${VERDE}No se instalara ULTRASTAR${NEGRO}"
#fi



10. ## Ahora le damos permisos de ejecucion de esta manera ##

sudo chmod 775 compilar_ultrastar.sh

11. ## Y ejecutamos el script ##

./compilar_ultrastar.sh

11.1 ## Ahora si, comenzara la instalación/compilación) de todo el groso ##

11.2 ## Cuando nos pregunte que version de ffmpeg instalar, elegimos la 3.3 y de FPC elegimos la 3.0.0, cuando nos pregunte que version de USDX instalar decirle que la ultima con el numero 1, si nos dijera que ya tenemos instalada la 3.3 y la 3.0.0 y quisieramos instalar otra, le decimos que NO e intro ##

12. ## Una vez instalado debemos cambiar el driver grafico desde sudo raspi-config y elegir el del medio NO EL FULL, tras esto podremos lanzar UltraStar Deluxe ##

 /usr/bin/ultrastardx
 
13. OPCIONAL ## Ahora rizamos mas el rizo, vamos a crear una carpeta con SAMBA, para poder meter canciones sin complicaicones ##

sudo apt-get install samba samba-common-bin ## Instalamos samba si no lo habiamos hecho antes ##
sudo cp /etc/samba/smb.conf smb.old ## Hacemos una copia de seguridad del archivo de configuracion de SAMBA, por si las moscas ##
sudo nano -w /etc/samba/smb.conf ## Abrimos el archivo de configuracion y nos vamos hasta el final con flecha abajo y pegamos el sguiente contenido ##

[RMS_Pi Karaoke]
comment = Canciones karaoke
path = /home/pi/.ultrastardx/songs
writable = Yes
create mask = 0777
directory mask = 0777
browseable = Yes
guest ok = yes

## Para que aparezca esta carpeta, debemos de lanzar USDX una vez antes para configurar idioma y demas, si no no existira la carpeta ##

13.1 ## CONTROL+O para guardar CONTROL+X para cerrar, con esto hemos hecho que la carpeta songs de USDX sea visible en la red, si tenemos las canciones en otro directorio en patch = ponemos el directorio correspondiente ##

sudo /etc/init.d/samba restart ## Reiniciamos el servidor SAMBA ##

## Y ya podremos acceder desde un explorador de windows por ejemplo metiendo la direccion IP tal que asi sin comillas "\\192.168.1.212", en esta carpeta, meteremos nuestras canciones. ##

13.2 ## Para saber la IP de nuestra raspberry, accedemos por SSH con Putty y tecleamos ##

ip address
Avatar de Usuario
Fire_Fox
Pi Omega
Pi Omega
Mensajes: 50
Registrado: 26 Ago 2016, 11:41
Agradecido: 0
Agradecimiento recibido: 0

Por cierto @CapNida sigo volviéndome loco con lo de apagar y arrancar usdx auto :-(
Gambo13
Pi Omega
Pi Omega
Mensajes: 74
Registrado: 28 Sep 2016, 12:43
Agradecido: 0
Agradecimiento recibido: 0

Ahora otro error nuevo:

Código: Seleccionar todo

INSTALL libavfilter/buffersink.h
INSTALL libavfilter/buffersrc.h
INSTALL libavfilter/version.h
INSTALL libavfilter/libavfilter.pc
INSTALL libavformat/avformat.h
INSTALL libavformat/avio.h
INSTALL libavformat/version.h
INSTALL libavformat/libavformat.pc
INSTALL libavcodec/avcodec.h
INSTALL libavcodec/avdct.h
INSTALL libavcodec/avfft.h
INSTALL libavcodec/d3d11va.h
INSTALL libavcodec/dirac.h
INSTALL libavcodec/dv_profile.h
INSTALL libavcodec/dxva2.h
INSTALL libavcodec/jni.h
INSTALL libavcodec/mediacodec.h
INSTALL libavcodec/qsv.h
INSTALL libavcodec/vaapi.h
INSTALL libavcodec/vda.h
INSTALL libavcodec/vdpau.h
INSTALL libavcodec/version.h
INSTALL libavcodec/videotoolbox.h
INSTALL libavcodec/vorbis_parser.h
INSTALL libavcodec/xvmc.h
INSTALL libavcodec/libavcodec.pc
INSTALL libswresample/swresample.h
INSTALL libswresample/version.h
INSTALL libswresample/libswresample.pc
INSTALL libswscale/swscale.h
INSTALL libswscale/version.h
INSTALL libswscale/libswscale.pc
INSTALL libavutil/adler32.h
INSTALL libavutil/aes.h
INSTALL libavutil/aes_ctr.h
INSTALL libavutil/attributes.h
INSTALL libavutil/audio_fifo.h
INSTALL libavutil/avassert.h
INSTALL libavutil/avstring.h
INSTALL libavutil/avutil.h
INSTALL libavutil/base64.h
INSTALL libavutil/blowfish.h
INSTALL libavutil/bprint.h
INSTALL libavutil/bswap.h
INSTALL libavutil/buffer.h
INSTALL libavutil/cast5.h
INSTALL libavutil/camellia.h
INSTALL libavutil/channel_layout.h
INSTALL libavutil/common.h
INSTALL libavutil/cpu.h
INSTALL libavutil/crc.h
INSTALL libavutil/des.h
INSTALL libavutil/dict.h
INSTALL libavutil/display.h
INSTALL libavutil/downmix_info.h
INSTALL libavutil/error.h
INSTALL libavutil/eval.h
INSTALL libavutil/fifo.h
INSTALL libavutil/file.h
INSTALL libavutil/frame.h
INSTALL libavutil/hash.h
INSTALL libavutil/hmac.h
INSTALL libavutil/hwcontext.h
INSTALL libavutil/hwcontext_cuda.h
INSTALL libavutil/hwcontext_dxva2.h
INSTALL libavutil/hwcontext_qsv.h
INSTALL libavutil/hwcontext_vaapi.h
INSTALL libavutil/hwcontext_vdpau.h
INSTALL libavutil/imgutils.h
INSTALL libavutil/intfloat.h
INSTALL libavutil/intreadwrite.h
INSTALL libavutil/lfg.h
INSTALL libavutil/log.h
INSTALL libavutil/macros.h
INSTALL libavutil/mathematics.h
INSTALL libavutil/mastering_display_metadata.h
INSTALL libavutil/md5.h
INSTALL libavutil/mem.h
INSTALL libavutil/motion_vector.h
INSTALL libavutil/murmur3.h
INSTALL libavutil/opt.h
INSTALL libavutil/parseutils.h
INSTALL libavutil/pixdesc.h
INSTALL libavutil/pixelutils.h
INSTALL libavutil/pixfmt.h
INSTALL libavutil/random_seed.h
INSTALL libavutil/rc4.h
INSTALL libavutil/rational.h
INSTALL libavutil/replaygain.h
INSTALL libavutil/ripemd.h
INSTALL libavutil/samplefmt.h
INSTALL libavutil/sha.h
INSTALL libavutil/sha512.h
INSTALL libavutil/spherical.h
INSTALL libavutil/stereo3d.h
INSTALL libavutil/threadmessage.h
INSTALL libavutil/time.h
INSTALL libavutil/timecode.h
INSTALL libavutil/timestamp.h
INSTALL libavutil/tree.h
INSTALL libavutil/twofish.h
INSTALL libavutil/version.h
INSTALL libavutil/xtea.h
INSTALL libavutil/tea.h
INSTALL libavutil/lzo.h
INSTALL libavutil/avconfig.h
INSTALL libavutil/ffversion.h
INSTALL libavutil/libavutil.pc
Compilacion e instalacion de ffmpeg correcta
./compilar_ultrastar.sh: line 291: syntax error: unexpected end of file
pi@raspberrypi:~ $
Lo he echo con alguna modificacion en el script:

Código: Seleccionar todo

#!/bin/bash
########################VARIABLES###############################
export ROJO="\033[1;31m"
export AZUL="\033[1;36m"
export VERDE="\033[1;32m"
export NEGRO="\033[0m"
INSTALAR_FFMPEG=s
INSTALAR_FREEPASCAL=s
################################################################
rm -Rf /tmp/*
ffmpeg -version
FFMPEG_INSTALADO=$?
fpc -iV
FREEPASCAL_INSTALADO=$?

cd /tmp/
echo -e "${AZUL}--------------------${NEGRO}"
echo -e "${AZUL}Descargando software${NEGRO}"
echo -e "${AZUL}--------------------${NEGRO}"
if [ $FFMPEG_INSTALADO -eq 0 ]
then
   echo -e "${ROJO}Esta instalada la version `ffmpeg -version | grep version | awk '{print $3}'` de ffmpeg${NEGRO}"
   echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}"
   read INSTALAR_FFMPEG
   case $INSTALAR_FFMPEG in
   s)
      wget http://ffmpeg.org/releases/
      mv index.html /tmp/ffmpeg_versions
      cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}'
      echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}"
      read FFMPEG_VERSION
      wget http://ffmpeg.org/releases/${FFMPEG_VERSION}
   ;;
   *)
      echo -e "${VERDE}No se descargara otra version de ffmpeg${NEGRO}"
   ;;
   esac
else
        wget http://ffmpeg.org/releases/
        mv index.html /tmp/ffmpeg_versions
        cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}'
        echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}"
        read FFMPEG_VERSION
        wget http://ffmpeg.org/releases/${FFMPEG_VERSION}
fi
if [ $FREEPASCAL_INSTALADO -eq 0 ]
then
        echo -e "${ROJO}Esta instalada la version `fpc -iV` de freepascal"
        echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}"
        read INSTALAR_FREEPASCAL
        case $INSTALAR_FREEPASCAL in
        s)
        wget https://sourceforge.net/projects/freepascal/files/Source/
        mv index.html /tmp/freepascal_versions
        cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort

        echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}"
        read FREEPASCAL_VERSION
        wget https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz
   ;;
        *)
                echo -e "${VERDE}No se descargara otra version de freepascal${NEGRO}"
        ;;
        esac

else
   wget https://sourceforge.net/projects/freepascal/files/Source/
   mv index.html /tmp/freepascal_versions
   cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort

   echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}"
   read FREEPASCAL_VERSION
   wget https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz
fi
echo -e "${AZUL}------------------------------------------${NEGRO}"
echo -e "${AZUL}Descargando ULTRASTAR${NEGRO}"
echo -e "${AZUL}------------------------------------------${NEGRO}"

which ultrastardx
ULTRASTAR_INSTALADO=$?

case $ULTRASTAR_INSTALADO in
0)
        echo -e "${ROJO}Ya hay una version de ultrastar instalada"
        echo -e "${AZUL}Quieres recompilar ULTRASTAR? s/n${NEGRO}"
        read INSTALA_ULTRASTAR
;;
*)
   INSTALA_ULTRASTAR=s
;;
esac

#if [ $INSTALA_ULTRASTAR == s ]
#then
   echo -e "${AZUL}1) Version estable (Agosto 2017)"
   echo -e "2) Ultima version (no estable)"
   echo -e "3) Version diciembre 2016 (no estable)"
   echo -e "Que version de Ultrastar quieres descargar?${NEGRO}"
   read VERSION
   case $VERSION in
   2)
        echo -e "${VERDE}Descargando la última version (no estable)${NEGRO}"
        cd /tmp
        git clone https://github.com/UltraStar-Deluxe/USDX.git
   ;;
   3)
        echo -e "${VERDE}Descargando la versión de Diciembre de 2016 (no estable)${NEGRO}"
        cd /tmp
        git clone https://github.com/UltraStar-Deluxe/USDX.git
        cd /tmp/USDX
        git checkout `git rev-list -n 1 --before="2016-12-04 23:59" master`
   ;;
   *)
        echo -e "${VERDE}Descargando la version de Agosto de 2017 (estable)${NEGRO}"
        cd /tmp
        wget https://github.com/UltraStar-Deluxe/USDX/archive/v2017.8.0.tar.gz
        tar -zxvf v2017.8.0.tar.gz
        mv USDX-2017.8.0 USDX
   ;;
   esac

#   cd /tmp
#   git clone https://github.com/UltraStar-Deluxe/USDX.git
#
#   echo -e "${AZUL}1) Continuar con la ultima version"
#   echo -e "2) Volver a version de 2016"
#   echo -e "Quieres continuar compilando la ultima version de ultrastar o volver a la version de diciembre de 2016?${NEGRO}"
#   read OPCION
#   case $OPCION in
#      1)
#         echo -e "${VERDE}Continuamos con ultima version${NEGRO}"
#      ;;
#      2)
#         echo -e "${AZUL}Realizamos un rollback de los cambios al 4 de diciembre de 2016${NEGRO}"
#         cd /tmp/USDX
#         git checkout `git rev-list -n 1 --before="2016-12-04 23:59" master`
#      ;;
#      *)
#                   echo -e "${VERDE}Continuamos con ultima version${NEGRO}"
#      ;;
#   esac

   echo -e "${AZUL}Ya tenemos todos los datos necesarios. Pulsa ${ROJO}intro ${AZUL}para comenzar la instalación.${NEGRO}"
   date
   read TECLA

   echo -e "${AZUL}--------------------${NEGRO}"
   echo -e "${AZUL}Actualizando sistema${NEGRO}"
   echo -e "${AZUL}--------------------${NEGRO}"

#   sudo apt-get update

   echo -e "${AZUL}----------------------${NEGRO}"
   echo -e "${AZUL}Instalando dependencia${NEGRO}"
   echo -e "${AZUL}----------------------${NEGRO}"

#   sudo apt-get install libsdl2-dev libsdl2-2.0-0 libsdl2-gfx-1.0-0 libsdl2-gfx-dev libsdl2-image-2.0-0 libsdl2-image-dev libsdl2-mixer-2.0-0 libsdl2-mixer-dev libsdl2-net-2.0-0 libsdl2-net-dev libsdl2-ttf-2.0-0 libsdl2-ttf-dev automake fpc fpc-source portaudio19-dev liblua5.1-0 liblua5.1-0-dev libpng12-0 libpng12-dev libsqlite3-0 libsqlite3-dev git
#   sudo apt-get install libsdl2-dev
#   sudo apt-get install libsdl2-2.0-0
#   sudo apt-get install libsdl2-gfx-1.0-0
#   sudo apt-get install libsdl2-gfx-dev
#   sudo apt-get install libsdl2-image-2.0-0
#   sudo apt-get install libsdl2-image-dev
#   sudo apt-get install libsdl2-mixer-2.0-0
#   sudo apt-get install libsdl2-mixer-dev
#   sudo apt-get install libsdl2-net-2.0-0
#   sudo apt-get install libsdl2-net-dev
#   sudo apt-get install libsdl2-ttf-2.0-0
#   sudo apt-get install libsdl2-ttf-dev
#   sudo apt-get install automake
#   sudo apt-get install fpc
#   sudo apt-get install fpc-source
#   sudo apt-get install portaudio19-dev
#   sudo apt-get install liblua5.1-0
#   sudo apt-get install liblua5.1-0-dev
#   sudo apt-get install libpng12-0
#   sudo apt-get install libpng12-dev
#   sudo apt-get install libsqlite3-0
#   sudo apt-get install libsqlite3-dev
#   sudo apt-get install git

#   sudo aptitude install build-essential

   echo -e "${AZUL}------------------------------------${NEGRO}"
   echo -e "${AZUL}Descomprimiendo archivos descargados${NEGRO}"
   echo -e "${AZUL}------------------------------------${NEGRO}"

   case $INSTALAR_FFMPEG in
   s)
      cd /tmp
      tar -zxvf ${FFMPEG_VERSION}

      tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz

      echo -e "${AZUL}------------------------------${NEGRO}"
      echo -e "${AZUL}Compilando e instalando ffmpeg${NEGRO}"
      echo -e "${AZUL}------------------------------${NEGRO}"

      FFMPEG_DIR=`echo ${FFMPEG_VERSION}  | sed 's/.tar.gz//g'`
      cd /tmp/${FFMPEG_DIR}
      ./configure --enable-shared --enable-pic --disable-encoders --disable-static --prefix=/usr

      make -j4

      sudo make install

      VERSION_INSTALADA=`ffmpeg -version | grep version | awk '{print $3}'`
      VERSION_COMPILADA=`echo $FFMPEG_DIR | awk -F- '{print $NF}'`

      if [ $VERSION_INSTALADA != $VERSION_COMPILADA ]
      then
         echo -e "${ROJO}Error en la compilación de ffmpeg"
         echo -e "Version instalada ${VERSION_INSTALADA}"
         echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}"
         exit 1
      else
         echo -e "${VERDE}Compilacion e instalacion de ffmpeg correcta${NEGRO}"
      fi
   ;;
   *)
      echo -e "${VERDE}No se instalara el ffmpeg descargado${NEGRO}"
   ;;
   esac
   case $INSTALAR_FREEPASCAL in
   s)

              echo -e "${AZUL}----------------------------------${NEGRO}"
              echo -e "${AZUL}Compilando e instalando freepascal${NEGRO}"
              echo -e "${AZUL}----------------------------------${NEGRO}"

#      cd /tmp/fpcbuild-${FREEPASCAL_VERSION}
#      make NOGDB=1 OPT="-dFPC_ARMHF -CX -CfVFPV3_D16 -O- -XX -Xs" build

#      sudo make NOGDB=1 install

#      sudo unlink /usr/bin/ppcarm

#      sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION} /usr/lib/fpc/${FREEPASCAL_VERSION}

#      sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION}/ppcarm /usr/bin/ppcarm

#      VERSION_INSTALADA=`fpc -iV`
#      VERSION_COMPILADA=`echo ${FREEPASCAL_VERSION}`

#      if [ $VERSION_INSTALADA != $VERSION_COMPILADA ]
#      then
#                 echo -e "${ROJO}Error en la compilación de freepascal"
#              echo -e "Version instalada ${VERSION_INSTALADA}"
#                 echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}"
#              exit 1
#      else
#                 echo -e "${VERDE}Compilacion e instalacion de freepascal correcta${NEGRO}"
#      fi
#   ;;
#   *)
#      echo -e "${VERDE}No se instalara el freepascal descargado${NEGRO}"
#   ;;
#   esac

   echo -e "${AZUL}---------------------------------${NEGRO}"
   echo -e "${AZUL}Compilando e instalando ULTRASTAR${NEGRO}"
   echo -e "${AZUL}---------------------------------${NEGRO}"

        cd /tmp/USDX

        ./autogen.sh

          ./configure --prefix=/usr

        cd src

          sed 's/PFLAGS_RELEASE_DEFAULT := -Xs- -O2/PFLAGS_RELEASE_DEFAULT := -Xs- -O1/g' Makefile > Makefile.mod
        sed 's/LIBS       ?=/LIBS       ?= -lm -lgcc_s -llua5.1/g' Makefile.mod > Makefile.mod2

          mv Makefile Makefile.orig
        mv Makefile.mod2 Makefile

          sudo unlink /lib/arm-linux-gnueabihf/libgcc_s.so

        sudo ln -s /lib/arm-linux-gnueabihf/libgcc_s.so.1 /lib/arm-linux-gnueabihf/libgcc_s.so

          make -j4

        cd /tmp/USDX

          sudo make install
#else
#   echo -e "${VERDE}No se instalara ULTRASTAR${NEGRO}"
#fi
Avatar de Usuario
Fire_Fox
Pi Omega
Pi Omega
Mensajes: 50
Registrado: 26 Ago 2016, 11:41
Agradecido: 0
Agradecimiento recibido: 0

No entiendo, lo conseguiste tras el error? o te sigue dando error?
Gambo13
Pi Omega
Pi Omega
Mensajes: 74
Registrado: 28 Sep 2016, 12:43
Agradecido: 0
Agradecimiento recibido: 0

Fire_Fox escribió:No entiendo, lo conseguiste tras el error? o te sigue dando error?
Me he esplicado como un libro cerrado, jejejeje.
Modifique el script como te he compartido en mi mensaje anterior y instalo mas cosas que antes, incluso el ffmpeg que antes nunca lo instalaba, pero el ultrastar no lo ha instalado.
Ahora pruebo con tu tutorial.
Lo que no se cambiar es la configuracion local, es importante?
Avatar de Usuario
Fire_Fox
Pi Omega
Pi Omega
Mensajes: 50
Registrado: 26 Ago 2016, 11:41
Agradecido: 0
Agradecimiento recibido: 0

No eso es lo de menos, simplemente es la configuración de teclado y el idioma, si haces el que te mande ultimo debería de funcionar, ayer por la tarde hice una instalación limpia, siguiendo ese al pie de la letra.
Gambo13
Pi Omega
Pi Omega
Mensajes: 74
Registrado: 28 Sep 2016, 12:43
Agradecido: 0
Agradecimiento recibido: 0

Intento seguir tu tutorial @Fire_Fox y siempre se me queda aqui:

Código: Seleccionar todo

login as: pi
pi@192.168.1.108's password:
Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Nov 28 18:16:15 2017

SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.

pi@raspberrypi:~ $ sudo rpi-update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13403  100 13403    0     0  98325      0 --:--:-- --:--:-- --:--:-- 99281
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** We're running for the first time
 *** Backing up files (this will take a few minutes)
 *** Backing up firmware
 *** Backing up modules 4.9.41-v7+
#############################################################
This update bumps to rpi-4.9.y linux tree
Be aware there could be compatibility issues with some drivers
Discussion here:
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=167934
##############################################################
 *** Downloading specific firmware revision (this will take a few minutes)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   168    0   168    0     0    287      0 --:--:-- --:--:-- --:--:--   287
100 54.1M  100 54.1M    0     0   916k      0  0:01:00  0:01:00 --:--:--  574k
 *** Updating firmware
 *** Updating kernel modules
 *** depmod 4.9.65-v7+
 *** depmod 4.9.65+
 *** Updating VideoCore libraries
 *** Using HardFP libraries
 *** Updating SDK
 *** Running ldconfig
 *** Storing current firmware revision
 *** Deleting downloaded files
 *** Syncing changes to disk
 *** If no errors appeared, your firmware was successfully updated to e4b56bb7efe47319e9478cfc577647e51c48e909
 *** A reboot is needed to activate the new firmware
pi@raspberrypi:~ $ sudo apt-get update
Get:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease [15.0 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian stretch/main armhf Packages [11.7 MB]
Get:3 http://mirrordirector.raspbian.org/raspbian stretch/non-free armhf Packages [95.2 kB]
0% [Connecting to archive.raspberrypi.org (2a00:1098:0:82:1000:13:0:6)]
Avatar de Usuario
Fire_Fox
Pi Omega
Pi Omega
Mensajes: 50
Registrado: 26 Ago 2016, 11:41
Agradecido: 0
Agradecimiento recibido: 0

Gambo13 escribió:Intento seguir tu tutorial @Fire_Fox y siempre se me queda aqui:

Código: Seleccionar todo

login as: pi
pi@192.168.1.108's password:
Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Nov 28 18:16:15 2017

SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.

pi@raspberrypi:~ $ sudo rpi-update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13403  100 13403    0     0  98325      0 --:--:-- --:--:-- --:--:-- 99281
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** We're running for the first time
 *** Backing up files (this will take a few minutes)
 *** Backing up firmware
 *** Backing up modules 4.9.41-v7+
#############################################################
This update bumps to rpi-4.9.y linux tree
Be aware there could be compatibility issues with some drivers
Discussion here:
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=167934
##############################################################
 *** Downloading specific firmware revision (this will take a few minutes)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   168    0   168    0     0    287      0 --:--:-- --:--:-- --:--:--   287
100 54.1M  100 54.1M    0     0   916k      0  0:01:00  0:01:00 --:--:--  574k
 *** Updating firmware
 *** Updating kernel modules
 *** depmod 4.9.65-v7+
 *** depmod 4.9.65+
 *** Updating VideoCore libraries
 *** Using HardFP libraries
 *** Updating SDK
 *** Running ldconfig
 *** Storing current firmware revision
 *** Deleting downloaded files
 *** Syncing changes to disk
 *** If no errors appeared, your firmware was successfully updated to e4b56bb7efe47319e9478cfc577647e51c48e909
 *** A reboot is needed to activate the new firmware
pi@raspberrypi:~ $ sudo apt-get update
Get:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease [15.0 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian stretch/main armhf Packages [11.7 MB]
Get:3 http://mirrordirector.raspbian.org/raspbian stretch/non-free armhf Packages [95.2 kB]
0% [Connecting to archive.raspberrypi.org (2a00:1098:0:82:1000:13:0:6)]
Despues de actualizar el firmware debes reiniciar te lo indica en el log, si se te queda parado ahi, comprueba la conexion o intentalo mas tarde, por que ahi es cuando descarga los paquetes
Avatar de Usuario
CapNida
Pi Omega
Pi Omega
Mensajes: 96
Registrado: 01 Dic 2016, 09:43
Agradecido: 1 vez
Agradecimiento recibido: 1 vez

@Gambo13 Aqui va una nueva versión del script que te permite instalar por separado cada uno de los elementos. (Dependencias, ffmpeg, freepascal y ultrastar)
Prueba a ver si con este script puedes instalar el freepascal.

Código: Seleccionar todo

########################VARIABLES###############################
export ROJO="\033[1;31m"
export AZUL="\033[1;36m"
export VERDE="\033[1;32m"
export NEGRO="\033[0m"
INSTALAR_FFMPEG=s
INSTALAR_FREEPASCAL=s
################################################################
rm -Rf /tmp/*
clear
echo -e "${ROJO}------------------------${NEGRO}"
echo -e "${ROJO}   MENU INSTALACION     ${NEGRO}"
echo -e "${ROJO}------------------------${NEGRO}"
echo -e "${AZUL}1) Instalar dependencias${NEGRO}"
echo -e "${AZUL}2) Instalar ffmpeg${NEGRO}"
echo -e "${AZUL}3) Instalar freepascal${NEGRO}"
echo -e "${AZUL}4) Instalar ultrastar${NEGRO}"
echo -e "${AZUL}*) Salir${NEGRO}"
echo -e "${ROJO}Escoge una opcion:${NEGRO}"
read OPCION
case $OPCION in
	1)
		echo -e "${AZUL}--------------------${NEGRO}"
		echo -e "${AZUL}Actualizando sistema${NEGRO}"
		echo -e "${AZUL}--------------------${NEGRO}"

		sudo apt-get update

		echo -e "${AZUL}----------------------${NEGRO}"
		echo -e "${AZUL}Instalando dependencia${NEGRO}"
		echo -e "${AZUL}----------------------${NEGRO}"

		sudo apt-get install libsdl2-dev
		sudo apt-get install libsdl2-2.0-0
		sudo apt-get install libsdl2-gfx-1.0-0
		sudo apt-get install libsdl2-gfx-dev
		sudo apt-get install libsdl2-image-2.0-0
		sudo apt-get install libsdl2-image-dev
		sudo apt-get install libsdl2-mixer-2.0-0
		sudo apt-get install libsdl2-mixer-dev
		sudo apt-get install libsdl2-net-2.0-0
		sudo apt-get install libsdl2-net-dev
		sudo apt-get install libsdl2-ttf-2.0-0
		sudo apt-get install libsdl2-ttf-dev
		sudo apt-get install automake
		sudo apt-get install fpc
		sudo apt-get install fpc-source
		sudo apt-get install portaudio19-dev
		sudo apt-get install liblua5.1-0
		sudo apt-get install liblua5.1-0-dev
		sudo apt-get install libpng12-0
		sudo apt-get install libpng12-dev
		sudo apt-get install libsqlite3-0
		sudo apt-get install libsqlite3-dev
		sudo apt-get install git

		sudo aptitude install build-essential
	;;
	2)
		ffmpeg -version
		FFMPEG_INSTALADO=$?
		if [ $FFMPEG_INSTALADO -eq 0 ]
		then
		   echo -e "${ROJO}Esta instalada la version `ffmpeg -version | grep version | awk '{print $3}'` de ffmpeg${NEGRO}"
		   echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}"
		   read INSTALAR_FFMPEG
		   case $INSTALAR_FFMPEG in
		   s)
		      wget -P /tmp/ http://ffmpeg.org/releases/
		      mv /tmp/index.html /tmp/ffmpeg_versions
		      cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}'
		      echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}"
		      read FFMPEG_VERSION
		      cd /tmp/
		      wget -P /tmp/ http://ffmpeg.org/releases/${FFMPEG_VERSION}
		   ;;
		   *)
		      echo -e "${VERDE}No se descargara otra version de ffmpeg${NEGRO}"
		   ;;
		   esac
		else
		        wget -P /tmp/ http://ffmpeg.org/releases/
		        mv /tmp/index.html /tmp/ffmpeg_versions
		        cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}'
		        echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}"
		        read FFMPEG_VERSION
		        wget -P /tmp/ http://ffmpeg.org/releases/${FFMPEG_VERSION}
		fi
		   case $INSTALAR_FFMPEG in
		   s)
		      cd /tmp
		      tar -zxvf ${FFMPEG_VERSION}
	
		      #tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz
	
		      echo -e "${AZUL}------------------------------${NEGRO}"
		      echo -e "${AZUL}Compilando e instalando ffmpeg${NEGRO}"
		      echo -e "${AZUL}------------------------------${NEGRO}"
                      echo "Pulsa INTRO para continuar"
		      read TECLA

		      FFMPEG_DIR=`echo ${FFMPEG_VERSION}  | sed 's/.tar.gz//g'`
		      cd /tmp/${FFMPEG_DIR}
		      ./configure --enable-shared --enable-pic --disable-encoders --disable-static --prefix=/usr

		      make -j4

		      sudo make install

		      VERSION_INSTALADA=`ffmpeg -version | grep version | awk '{print $3}'`
		      VERSION_COMPILADA=`echo $FFMPEG_DIR | awk -F- '{print $NF}'`

		      if [ $VERSION_INSTALADA != $VERSION_COMPILADA ]
		      then
		         echo -e "${ROJO}Error en la compilación de ffmpeg"
		         echo -e "Version instalada ${VERSION_INSTALADA}"
		         echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}"
		         exit 1
		      else
		         echo -e "${VERDE}Compilacion e instalacion de ffmpeg correcta${NEGRO}"
		      fi
		   ;;
		   *)
		      echo -e "${VERDE}No se instalara el ffmpeg descargado${NEGRO}"
		   ;;
		   esac
	;;
	3)
		fpc -iV
		FREEPASCAL_INSTALADO=$?
		if [ $FREEPASCAL_INSTALADO -eq 0 ]
		then
		        echo -e "${ROJO}Esta instalada la version `fpc -iV` de freepascal"
		        echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}"
		        read INSTALAR_FREEPASCAL
		        case $INSTALAR_FREEPASCAL in
		        s)
		        wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/
		        mv /tmp/index.html /tmp/freepascal_versions
		        cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort

		        echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}"
		        read FREEPASCAL_VERSION
		        wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz
		   ;;
		        *)
		                echo -e "${VERDE}No se descargara otra version de freepascal${NEGRO}"
		        ;;
		        esac

		else
		   wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/
		   mv /tmp/index.html /tmp/freepascal_versions
		   cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort

		   echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}"
		   read FREEPASCAL_VERSION
		   wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz
		   cd /tmp/
                   tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz

		fi
		   case $INSTALAR_FREEPASCAL in
		   s)

		              echo -e "${AZUL}----------------------------------${NEGRO}"
		              echo -e "${AZUL}Compilando e instalando freepascal${NEGRO}"
		              echo -e "${AZUL}----------------------------------${NEGRO}"
                        echo "Pulsa INTRO para continuar"
			read tecla

		      cd /tmp/fpcbuild-${FREEPASCAL_VERSION}
		      make NOGDB=1 OPT="-dFPC_ARMHF -CX -CfVFPV3_D16 -O- -XX -Xs" build

		      sudo make NOGDB=1 install

		      sudo unlink /usr/bin/ppcarm

		      sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION} /usr/lib/fpc/${FREEPASCAL_VERSION}

		      sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION}/ppcarm /usr/bin/ppcarm

		      VERSION_INSTALADA=`fpc -iV`
		      VERSION_COMPILADA=`echo ${FREEPASCAL_VERSION}`

		      if [ $VERSION_INSTALADA != $VERSION_COMPILADA ]
		      then
		                 echo -e "${ROJO}Error en la compilación de freepascal"
		              echo -e "Version instalada ${VERSION_INSTALADA}"
		                 echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}"
		              exit 1
		      else
		                 echo -e "${VERDE}Compilacion e instalacion de freepascal correcta${NEGRO}"
		      fi
		   ;;
		   *)
		      echo -e "${VERDE}No se instalara el freepascal descargado${NEGRO}"
		   ;;
		   esac
	;;
	4)
		which ultrastardx
		ULTRASTAR_INSTALADO=$?

		case $ULTRASTAR_INSTALADO in
		0)
		        echo -e "${ROJO}Ya hay una version de ultrastar instalada"
		        echo -e "${AZUL}Quieres recompilar ULTRASTAR? s/n${NEGRO}"
		        read INSTALA_ULTRASTAR
		;;
		*)
		   INSTALA_ULTRASTAR=s
		;;
		esac
		#if [ $INSTALA_ULTRASTAR == s ]
		#then
		   echo -e "${AZUL}1) Version estable (Agosto 2017)"
		   echo -e "2) Ultima version (no estable)"
		   echo -e "3) Version diciembre 2016 (no estable)"
		   echo -e "Que version de Ultrastar quieres descargar?"
		   read VERSION
		   case $VERSION in
		   2)
		        echo -e "${VERDE}Descargando la última version (no estable)${NEGRO}"
		        cd /tmp
		        git clone https://github.com/UltraStar-Deluxe/USDX.git
		   ;;
		   3)
		        echo -e "${VERDE}Descargando la versión de Diciembre de 2016 (no estable)${NEGRO}"
		        cd /tmp
		        git clone https://github.com/UltraStar-Deluxe/USDX.git
		        cd /tmp/USDX
		        git checkout `git rev-list -n 1 --before="2016-12-04 23:59" master`
		   ;;
		   *)
		        echo -e "${VERDE}Descargando la version de Agosto de 2017 (estable)${NEGRO}"
		        cd /tmp
		        wget -P /tmp/ https://github.com/UltraStar-Deluxe/USDX/archive/v2017.8.0.tar.gz
		        tar -zxvf v2017.8.0.tar.gz
		        mv USDX-2017.8.0 USDX
		   ;;
		   esac
		   echo -e "${AZUL}---------------------------------${NEGRO}"
		   echo -e "${AZUL}Compilando e instalando ULTRASTAR${NEGRO}"
		   echo -e "${AZUL}---------------------------------${NEGRO}"
		   echo -e "Pulsa INTRO para continuar"
			read TECCLA
		
		        cd /tmp/USDX

		        ./autogen.sh

		          ./configure --prefix=/usr

		        cd src

		          sed 's/PFLAGS_RELEASE_DEFAULT := -Xs- -O2/PFLAGS_RELEASE_DEFAULT := -Xs- -O1/g' Makefile > Makefile.mod
		        sed 's/LIBS       ?=/LIBS       ?= -lm -lgcc_s -llua5.1/g' Makefile.mod > Makefile.mod2

		          mv Makefile Makefile.orig
		        mv Makefile.mod2 Makefile

		          sudo unlink /lib/arm-linux-gnueabihf/libgcc_s.so

		        sudo ln -s /lib/arm-linux-gnueabihf/libgcc_s.so.1 /lib/arm-linux-gnueabihf/libgcc_s.so

		          make -j4

		        cd /tmp/USDX

		          sudo make install
		#else
		#   echo -e "${VERDE}No se instalara ULTRASTAR${NEGRO}"
		#fi

	;;
	*)
		echo -e "${ROJO}Saliendo${NEGRO}"
		exit 1
	;;
esac
Última edición por CapNida el 29 Nov 2017, 14:09, editado 1 vez en total.
Gambo13
Pi Omega
Pi Omega
Mensajes: 74
Registrado: 28 Sep 2016, 12:43
Agradecido: 0
Agradecimiento recibido: 0

CapNida escribió:@Gambo13 Aqui va una nueva versión del script que te permite instalar por separado cada uno de los elementos. (Dependencias, ffmpeg, freepascal y ultrastar)
Prueba a ver si con este script puedes instalar el freepascal.

Código: Seleccionar todo

########################VARIABLES###############################
export ROJO="\033[1;31m"
export AZUL="\033[1;36m"
export VERDE="\033[1;32m"
export NEGRO="\033[0m"
INSTALAR_FFMPEG=s
INSTALAR_FREEPASCAL=s
################################################################
rm -Rf /tmp/*
clear
echo -e "${ROJO}------------------------${NEGRO}"
echo -e "${ROJO}   MENU INSTALACION     ${NEGRO}"
echo -e "${ROJO}------------------------${NEGRO}"
echo -e "${AZUL}1) Instalar dependencias${NEGRO}"
echo -e "${AZUL}2) Instalar ffmpeg${NEGRO}"
echo -e "${AZUL}3) Instalar freepasacal${NEGRO}"
echo -e "${AZUL}4) Instalar ultrastar${NEGRO}"
echo -e "${AZUL}*) Salir${NEGRO}"
echo -e "${ROJO}Escoge una opcion:${NEGRO}"
read OPCION
case $OPCION in
	1)
		echo -e "${AZUL}--------------------${NEGRO}"
		echo -e "${AZUL}Actualizando sistema${NEGRO}"
		echo -e "${AZUL}--------------------${NEGRO}"

		sudo apt-get update

		echo -e "${AZUL}----------------------${NEGRO}"
		echo -e "${AZUL}Instalando dependencia${NEGRO}"
		echo -e "${AZUL}----------------------${NEGRO}"

		sudo apt-get install libsdl2-dev
		sudo apt-get install libsdl2-2.0-0
		sudo apt-get install libsdl2-gfx-1.0-0
		sudo apt-get install libsdl2-gfx-dev
		sudo apt-get install libsdl2-image-2.0-0
		sudo apt-get install libsdl2-image-dev
		sudo apt-get install libsdl2-mixer-2.0-0
		sudo apt-get install libsdl2-mixer-dev
		sudo apt-get install libsdl2-net-2.0-0
		sudo apt-get install libsdl2-net-dev
		sudo apt-get install libsdl2-ttf-2.0-0
		sudo apt-get install libsdl2-ttf-dev
		sudo apt-get install automake
		sudo apt-get install fpc
		sudo apt-get install fpc-source
		sudo apt-get install portaudio19-dev
		sudo apt-get install liblua5.1-0
		sudo apt-get install liblua5.1-0-dev
		sudo apt-get install libpng12-0
		sudo apt-get install libpng12-dev
		sudo apt-get install libsqlite3-0
		sudo apt-get install libsqlite3-dev
		sudo apt-get install git

		sudo aptitude install build-essential
	;;
	2)
		ffmpeg -version
		FFMPEG_INSTALADO=$?
		if [ $FFMPEG_INSTALADO -eq 0 ]
		then
		   echo -e "${ROJO}Esta instalada la version `ffmpeg -version | grep version | awk '{print $3}'` de ffmpeg${NEGRO}"
		   echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}"
		   read INSTALAR_FFMPEG
		   case $INSTALAR_FFMPEG in
		   s)
		      wget -P /tmp/ http://ffmpeg.org/releases/
		      mv /tmp/index.html /tmp/ffmpeg_versions
		      cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}'
		      echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}"
		      read FFMPEG_VERSION
		      cd /tmp/
		      wget -P /tmp/ http://ffmpeg.org/releases/${FFMPEG_VERSION}
		   ;;
		   *)
		      echo -e "${VERDE}No se descargara otra version de ffmpeg${NEGRO}"
		   ;;
		   esac
		else
		        wget -P /tmp/ http://ffmpeg.org/releases/
		        mv /tmp/index.html /tmp/ffmpeg_versions
		        cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}'
		        echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}"
		        read FFMPEG_VERSION
		        wget -P /tmp/ http://ffmpeg.org/releases/${FFMPEG_VERSION}
		fi
		   case $INSTALAR_FFMPEG in
		   s)
		      cd /tmp
		      tar -zxvf ${FFMPEG_VERSION}
	
		      #tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz
	
		      echo -e "${AZUL}------------------------------${NEGRO}"
		      echo -e "${AZUL}Compilando e instalando ffmpeg${NEGRO}"
		      echo -e "${AZUL}------------------------------${NEGRO}"
                      echo "Pulsa INTRO para continuar"
		      read TECLA

		      FFMPEG_DIR=`echo ${FFMPEG_VERSION}  | sed 's/.tar.gz//g'`
		      cd /tmp/${FFMPEG_DIR}
		      ./configure --enable-shared --enable-pic --disable-encoders --disable-static --prefix=/usr

		      make -j4

		      sudo make install

		      VERSION_INSTALADA=`ffmpeg -version | grep version | awk '{print $3}'`
		      VERSION_COMPILADA=`echo $FFMPEG_DIR | awk -F- '{print $NF}'`

		      if [ $VERSION_INSTALADA != $VERSION_COMPILADA ]
		      then
		         echo -e "${ROJO}Error en la compilación de ffmpeg"
		         echo -e "Version instalada ${VERSION_INSTALADA}"
		         echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}"
		         exit 1
		      else
		         echo -e "${VERDE}Compilacion e instalacion de ffmpeg correcta${NEGRO}"
		      fi
		   ;;
		   *)
		      echo -e "${VERDE}No se instalara el ffmpeg descargado${NEGRO}"
		   ;;
		   esac
	;;
	3)
		fpc -iV
		FREEPASCAL_INSTALADO=$?
		if [ $FREEPASCAL_INSTALADO -eq 0 ]
		then
		        echo -e "${ROJO}Esta instalada la version `fpc -iV` de freepascal"
		        echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}"
		        read INSTALAR_FREEPASCAL
		        case $INSTALAR_FREEPASCAL in
		        s)
		        wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/
		        mv /tmp/index.html /tmp/freepascal_versions
		        cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort

		        echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}"
		        read FREEPASCAL_VERSION
		        wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz
		   ;;
		        *)
		                echo -e "${VERDE}No se descargara otra version de freepascal${NEGRO}"
		        ;;
		        esac

		else
		   wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/
		   mv /tmp/index.html /tmp/freepascal_versions
		   cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort

		   echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}"
		   read FREEPASCAL_VERSION
		   wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz
		   cd /tmp/
                   tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz

		fi
		   case $INSTALAR_FREEPASCAL in
		   s)

		              echo -e "${AZUL}----------------------------------${NEGRO}"
		              echo -e "${AZUL}Compilando e instalando freepascal${NEGRO}"
		              echo -e "${AZUL}----------------------------------${NEGRO}"
                        echo "Pulsa INTRO para continuar"
			read tecla

		      cd /tmp/fpcbuild-${FREEPASCAL_VERSION}
		      make NOGDB=1 OPT="-dFPC_ARMHF -CX -CfVFPV3_D16 -O- -XX -Xs" build

		      sudo make NOGDB=1 install

		      sudo unlink /usr/bin/ppcarm

		      sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION} /usr/lib/fpc/${FREEPASCAL_VERSION}

		      sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION}/ppcarm /usr/bin/ppcarm

		      VERSION_INSTALADA=`fpc -iV`
		      VERSION_COMPILADA=`echo ${FREEPASCAL_VERSION}`

		      if [ $VERSION_INSTALADA != $VERSION_COMPILADA ]
		      then
		                 echo -e "${ROJO}Error en la compilación de freepascal"
		              echo -e "Version instalada ${VERSION_INSTALADA}"
		                 echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}"
		              exit 1
		      else
		                 echo -e "${VERDE}Compilacion e instalacion de freepascal correcta${NEGRO}"
		      fi
		   ;;
		   *)
		      echo -e "${VERDE}No se instalara el freepascal descargado${NEGRO}"
		   ;;
		   esac
	;;
	4)
		which ultrastardx
		ULTRASTAR_INSTALADO=$?

		case $ULTRASTAR_INSTALADO in
		0)
		        echo -e "${ROJO}Ya hay una version de ultrastar instalada"
		        echo -e "${AZUL}Quieres recompilar ULTRASTAR? s/n${NEGRO}"
		        read INSTALA_ULTRASTAR
		;;
		*)
		   INSTALA_ULTRASTAR=s
		;;
		esac
		#if [ $INSTALA_ULTRASTAR == s ]
		#then
		   echo -e "${AZUL}1) Version estable (Agosto 2017)"
		   echo -e "2) Ultima version (no estable)"
		   echo -e "3) Version diciembre 2016 (no estable)"
		   echo -e "Que version de Ultrastar quieres descargar?"
		   read VERSION
		   case $VERSION in
		   2)
		        echo -e "${VERDE}Descargando la última version (no estable)${NEGRO}"
		        cd /tmp
		        git clone https://github.com/UltraStar-Deluxe/USDX.git
		   ;;
		   3)
		        echo -e "${VERDE}Descargando la versión de Diciembre de 2016 (no estable)${NEGRO}"
		        cd /tmp
		        git clone https://github.com/UltraStar-Deluxe/USDX.git
		        cd /tmp/USDX
		        git checkout `git rev-list -n 1 --before="2016-12-04 23:59" master`
		   ;;
		   *)
		        echo -e "${VERDE}Descargando la version de Agosto de 2017 (estable)${NEGRO}"
		        cd /tmp
		        wget -P /tmp/ https://github.com/UltraStar-Deluxe/USDX/archive/v2017.8.0.tar.gz
		        tar -zxvf v2017.8.0.tar.gz
		        mv USDX-2017.8.0 USDX
		   ;;
		   esac
		   echo -e "${AZUL}---------------------------------${NEGRO}"
		   echo -e "${AZUL}Compilando e instalando ULTRASTAR${NEGRO}"
		   echo -e "${AZUL}---------------------------------${NEGRO}"
		   echo -e "Pulsa INTRO para continuar"
			read TECCLA
		
		        cd /tmp/USDX

		        ./autogen.sh

		          ./configure --prefix=/usr

		        cd src

		          sed 's/PFLAGS_RELEASE_DEFAULT := -Xs- -O2/PFLAGS_RELEASE_DEFAULT := -Xs- -O1/g' Makefile > Makefile.mod
		        sed 's/LIBS       ?=/LIBS       ?= -lm -lgcc_s -llua5.1/g' Makefile.mod > Makefile.mod2

		          mv Makefile Makefile.orig
		        mv Makefile.mod2 Makefile

		          sudo unlink /lib/arm-linux-gnueabihf/libgcc_s.so

		        sudo ln -s /lib/arm-linux-gnueabihf/libgcc_s.so.1 /lib/arm-linux-gnueabihf/libgcc_s.so

		          make -j4

		        cd /tmp/USDX

		          sudo make install
		#else
		#   echo -e "${VERDE}No se instalara ULTRASTAR${NEGRO}"
		#fi

	;;
	*)
		echo -e "${ROJO}Saliendo${NEGRO}"
		exit 1
	;;
esac
Con este script, por lo que entiendo, solo instalo en la SD el raspbian, lo lanzo y ya instala todas las dependencias y todo?
Avatar de Usuario
CapNida
Pi Omega
Pi Omega
Mensajes: 96
Registrado: 01 Dic 2016, 09:43
Agradecido: 1 vez
Agradecimiento recibido: 1 vez

El script te muestra un menú donde te permite instalar por separado cada cada una de las dependencias.

Código: Seleccionar todo

------------------------
   MENU INSTALACION     
------------------------
1) Instalar dependencias
2) Instalar ffmpeg
3) Instalar freepascal
4) Instalar ultrastar
*) Salir
Escoge una opcion:
He visto en tus anteriores mensajes que no podías instalar el freepascal. Ejecuta esa parte las veces que haga falta y ve pegando los resultado. Así puedo ir depurando el scritp.
Gambo13
Pi Omega
Pi Omega
Mensajes: 74
Registrado: 28 Sep 2016, 12:43
Agradecido: 0
Agradecimiento recibido: 0

Lo he instalado todo, me ha dicho despues de cada instalacion que todo estaba ok, pero sigue dando error.

Código: Seleccionar todo

---------------------------------
Compilando e instalando ULTRASTAR
---------------------------------
Pulsa INTRO para continuar

Updating build configuration files for USDX, please wait...
checking whether make sets $(MAKE)... yes
checking whether ln -s works... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for a BSD-compatible install... /usr/bin/install -c
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking for fpc... no
checking for FPC... no
checking for ppc386... no
checking for ppc... no
checking for PPC386... no
checking for fpcmake... no
configure: error: no Free Pascal Compiler found in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
sed: can't read Makefile: No such file or directory
mv: cannot stat 'Makefile': No such file or directory
unlink: cannot unlink '/lib/arm-linux-gnueabihf/libgcc_s.so': No such file or directory
make: *** No targets.  Stop.
make: *** No rule to make target 'install'.  Stop.
pi@raspberrypi:~ $
Avatar de Usuario
CapNida
Pi Omega
Pi Omega
Mensajes: 96
Registrado: 01 Dic 2016, 09:43
Agradecido: 1 vez
Agradecimiento recibido: 1 vez

@Gambo13 Sigue sin estar instalado el freepascal

Código: Seleccionar todo

checking for fpc... no
checking for FPC... no
checking for ppc386... no
checking for ppc... no
checking for PPC386... no
checking for fpcmake... no
configure: error: no Free Pascal Compiler found in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
Pega la salida que obtienes cuando ejecutas la instalación de freepascal.
Responder