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

Sección Unicamente para Tutoriales y Guías
juanhex
Pi Newbie
Pi Newbie
Mensajes: 7
Registrado: 22 Sep 2017, 22:36
Agradecido: 0
Agradecimiento recibido: 0

alguien lo ha probado en una raspberry pi 2 ?
saludos
chuloplaya
Pi Alpha
Pi Alpha
Mensajes: 24
Registrado: 10 Ene 2017, 20:00
Agradecido: 0
Agradecimiento recibido: 0

Mirad lo que he encontrado
OK I tried to find out why the sound wasn't working with ffmpeg 3.2. The new commits (0aaba49) fixed the problem. I thought the problem is my linux sound configuration. Finally I can play 720p videos smoothly. My ffmpeg 3.2 configuration:--arch=arm --enable-pthreads --enable-runtime-cpudetect --prefix=/usr --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-shared --disable-static --enable-pic --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-vdpau --enable-vaapi --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4

Thanks for your help!

3

aqui: https://github.com/UltraStar-Deluxe/USDX/issues/229

Tiene pinta que con esa configuracion ya se podria ejecutar videos en 720p fluidos :D (y cambiando las configuraciones de los encoders a --enable-enconders para poder ejecutar el script)


que os parece?


mañana si tengo tiempo lo pruebo, aunque igualmente dad vuestra opinion a ver si lo petamos ^^ :P
Avatar de Usuario
CapNida
Pi Omega
Pi Omega
Mensajes: 96
Registrado: 01 Dic 2016, 09:43
Agradecido: 1 vez
Agradecimiento recibido: 1 vez

Muchas Gracias @chuloplaya . A ver si lo puedo probar yo también y modifico el script incluyendo esa compilación.
Si esa configuración funciona, no sería necesario ejecutar el script para modificar los vídeos, ya que los movería sin problemas a buena calidad.
chuloplaya
Pi Alpha
Pi Alpha
Mensajes: 24
Registrado: 10 Ene 2017, 20:00
Agradecido: 0
Agradecimiento recibido: 0

Bueno, depende, ya que si los videos estan a 1080P entonces no...
Avatar de Usuario
CapNida
Pi Omega
Pi Omega
Mensajes: 96
Registrado: 01 Dic 2016, 09:43
Agradecido: 1 vez
Agradecimiento recibido: 1 vez

Este script tiene la configuracion para recompilar el ffmpeg para mover los videos en 720p.
He probado algunos videos sin recomprimir y parece que funcionan bien.
Es necesario ejecutar primero la instalcion de dependencias porque hay algunos paquetes extras necesarios.

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
MENU=100
################################################################
rm -Rf /tmp/*
while [ $MENU != 0 ]
do
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}5) Crear acceso directo en el escritorio${NEGRO}"
echo -e "${AZUL}0) 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 -y update

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

               sudo apt-get -y install automake
               sudo apt-get -y install libpng12-0
               sudo apt-get -y install libpng12-dev
               sudo apt-get -y install libsdl2-dev
               sudo apt-get -y install libsdl2-2.0-0
               sudo apt-get -y install libsdl2-gfx-1.0-0
               sudo apt-get -y install libsdl2-gfx-dev
               sudo apt-get -y install libsdl2-image-2.0-0
               sudo apt-get -y install libsdl2-image-dev
               sudo apt-get -y install libsdl2-mixer-2.0-0
               sudo apt-get -y install libsdl2-mixer-dev
               sudo apt-get -y install libsdl2-net-2.0-0
               sudo apt-get -y install libsdl2-net-dev
               sudo apt-get -y install libsdl2-ttf-2.0-0
               sudo apt-get -y install libsdl2-ttf-dev
               sudo apt-get -y install portaudio19-dev
               sudo apt-get -y install liblua5.1-0
               sudo apt-get -y install liblua5.1-0-dev
               sudo apt-get -y install libsqlite3-0
               sudo apt-get -y install libsqlite3-dev
               sudo apt-get -y install git
               sudo apt-get -y install fpc
               sudo apt-get -y install fpc-source
               sudo apt-get -y install fpc-2.6.4
               sudo apt-get -y install fpc-source-2.6.4
sudo apt-get -y install libass-dev 
sudo apt-get -y install libmp3lame-dev 
sudo apt-get -y install libopus-dev
sudo apt-get -y install libtheora-dev
sudo apt-get -y install libx264-dev
sudo apt-get -y install libbz2-dev

               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
            #./configure --enable-shared --enable-pic --enable-encoders --disable-static --prefix=/usr
            #./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-vdpau --enable-vaapi --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4
	   ./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4

            make -j4

            sudo make install

            which ffmpeg
         case $? in
         0)
                         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 "${ROJO}Error en la instalacion de ffmpeg. Revisa el log de la compilacion${NEGRO}"
         ;;
         esac
         ;;
         *)
            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
             cd /tmp/
             tar -zxvf 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

         which fpc
         case $? in
         0)
                         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 "${ROJO}Error en la instalacion de FreePascal. Revisa el log de la compilacion${NEGRO}"
         ;;
         esac
         ;;
         *)
            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

   ;;
   5)
        wget -P /tmp/ http://i.imgur.com/JtmXso1.png
        sudo mv /tmp/JtmXso1.png /usr/share/icons/ultra.png
        cd /home/pi/Desktop
        touch ultrastar.desktop
        echo "[Desktop Entry]" >> /home/pi/Desktop/ultrastar.desktop
        echo "Version=1.0" >> /home/pi/Desktop/ultrastar.desktop
        echo "Type=Application" >> /home/pi/Desktop/ultrastar.desktop
        echo "Terminal=false"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Name=ultrastar"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Categories=Games;"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Exec=/usr/bin/ultrastardx"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Comment=Ultrastar"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Icon=/usr/share/icons/ultra.png"  >> /home/pi/Desktop/ultrastar.desktop
        chmod 755 /home/pi/Desktop/ultrastar.desktop
   ;;
   0)
      echo -e "${ROJO}Saliendo${NEGRO}"
      exit 1
   ;;
esac
done
Última edición por CapNida el 28 Dic 2017, 09:10, editado 1 vez en total.
mansig
Pi Alpha
Pi Alpha
Mensajes: 14
Registrado: 23 Dic 2017, 23:20
Agradecido: 0
Agradecimiento recibido: 0

hola a todos,
he intentado instalar ultrastar con los script....con el de menu, he hecho los 5 pasos...ha estado muuuucho tiempo haciendo cosas, pero al acabar, cuando ejecuto el icono de escritorio aparece el error que adjunto en la foto, a parte de esto...no encuentro ninguna carpeta ultrastar :'(
no se que es lo que estoy haciendo mal....alguna ayuda por favoorr???
muchas gracias!!
Adjuntos
IMG_20171223_232645.jpg
IMG_20171223_232731.jpg
chuloplaya
Pi Alpha
Pi Alpha
Mensajes: 24
Registrado: 10 Ene 2017, 20:00
Agradecido: 0
Agradecimiento recibido: 0

Has intentado entrar desde terminal?
juanhex
Pi Newbie
Pi Newbie
Mensajes: 7
Registrado: 22 Sep 2017, 22:36
Agradecido: 0
Agradecimiento recibido: 0

mansig escribió:hola a todos,
he intentado instalar ultrastar con los script....con el de menu, he hecho los 5 pasos...ha estado muuuucho tiempo haciendo cosas, pero al acabar, cuando ejecuto el icono de escritorio aparece el error que adjunto en la foto, a parte de esto...no encuentro ninguna carpeta ultrastar :'(
no se que es lo que estoy haciendo mal....alguna ayuda por favoorr???
muchas gracias!!
me pasa lo mismo que al amigo masing.
el mismo error.
hago tos los pasos OK
pero al iniciar me da error
"achivo de entrada de escritorio no valido"

y por terminal me da e que "no existe fichero o directorio"

instale raspbian desde NOOBS ...un menú donde venían 2 sistemas y al conectar a internet me daba mas opciones.
lo estoy haciendo desde un RASPBERRY PI2 B

Saludos y feliz navidad a todos.
Gambo13
Pi Omega
Pi Omega
Mensajes: 74
Registrado: 28 Sep 2016, 12:43
Agradecido: 0
Agradecimiento recibido: 0

mansig
Pi Alpha
Pi Alpha
Mensajes: 14
Registrado: 23 Dic 2017, 23:20
Agradecido: 0
Agradecimiento recibido: 0

chuloplaya escribió:Has intentado entrar desde terminal?
hola, he vuelto a instalar Raspbian de 0,yo uso BerryBoot, he hecho los pasos del #68236 de Fire_Fox pero usando el ultimo script de CapNida, y nada igual, mismo resultado.... he instalado todas las opciones del Menu, y aparentemente bien, pero no crea nada.... :(
he instalado el ffmpeg 3.3.3 y freepascal 3.0.0..........
intento seguir el script paso a paso de instalación de USDX, y da estos fallos:

pi@raspberrypi:/tmp/USDX $ ./configure --prefix=/usr
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... fpc
checking for fpcmake... fpcmake
checking version of fpc... [Error: ppcarm can't be executed, error message: Failed to execute "ppcarm", error code: 127]
./configure: line 2979: test: too many arguments
checking whether the Free Pascal Compiler works... no
configure: error: installation or configuration problem: Cannot create executables.

pi@raspberrypi:/tmp/USDX $ cd src
pi@raspberrypi:/tmp/USDX/src $ sed 's/PFLAGS_RELEASE_DEFAULT := -Xs- -O2/PFLAGS_RELEASE_DEFAULT := -Xs- -O1/g' Makefile > Makefile.mod
pi@raspberrypi:/tmp/USDX/src $ sed 's/LIBS ?=/LIBS ?= -lm -lgcc_s -llua5.1/g' Makefile.mod > Makefile.mod2
pi@raspberrypi:/tmp/USDX/src $ mv Makefile Makefile.orig
pi@raspberrypi:/tmp/USDX/src $ mv Makefile.mod2 Makefile
pi@raspberrypi:/tmp/USDX/src $ sudo unlink /lib/arm-linux-gnueabihf/libgcc_s.so
pi@raspberrypi:/tmp/USDX/src $ sudo ln -s /lib/arm-linux-gnueabihf/libgcc_s.so.1 /lib/arm-linux-gnueabihf/libgcc_s.so
pi@raspberrypi:/tmp/USDX/src $ make -j4
make: *** No hay objetivos. Alto.
pi@raspberrypi:/tmp/USDX/src $ cd /tmp/USDX
pi@raspberrypi:/tmp/USDX $ sudo make install
make: *** No hay ninguna regla para construir el objetivo 'install'. Alto.
pi@raspberrypi:/tmp/USDX $


alguna idea?? :'(
Adjuntos
IMG_20171224_114122.jpg
mansig
Pi Alpha
Pi Alpha
Mensajes: 14
Registrado: 23 Dic 2017, 23:20
Agradecido: 0
Agradecimiento recibido: 0

he vuelto a instalar todo de 0 en una SD a parte con "2017-11-29-raspbian-stretch" y lo mismo... tan torpe soy?? solo es un script :'(
que puede estar pasando?
kuschel
Pi Newbie
Pi Newbie
Mensajes: 6
Registrado: 20 Dic 2016, 09:51
Agradecido: 0
Agradecimiento recibido: 0

luigui escribió:Buenas a todos!

Gracias a vuestra ayuda ya he conseguido compilar el USDX y que funcione... bueno a medias, ¡le falta el audio! No se escucha nada, ¿se os ocurre qué puede ser? Fuera del juego el audio funciona sin problemas en la raspberry, pero dentro nada, ni los sonidos, canciones, música de fondo, nada, todo en silencio :(

Saludos!
Luigui, a mi me pasaba lo mismo y se me arregló pasando el GL driver de full a fake KMS. Pruébalo a ver si te funciona.
chuloplaya
Pi Alpha
Pi Alpha
Mensajes: 24
Registrado: 10 Ene 2017, 20:00
Agradecido: 0
Agradecimiento recibido: 0

mansig escribió:he vuelto a instalar todo de 0 en una SD a parte con "2017-11-29-raspbian-stretch" y lo mismo... tan torpe soy?? solo es un script :'(
que puede estar pasando?
Que script estas usando, el de la portada o el último que postearon que arreglaba lo de los videos a 720?

A mi con el original me iba, ayer con el modificado de los videos nada más me daba problemas y no tuve cojones. De hecho me daba varios problemas (uno de ellos parecidos al tuyo...


Por otro lado :
CapNida escribió:Este script tiene la configuracion para recompilar el ffmpeg para mover los videos en 720p.
He probado algunos videos sin recomprimir y parece que funcionan bien.
Es necesario ejecutar primero la instalcion de dependencias porque hay algunos paquetes extras necesarios.

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
MENU=100
################################################################
rm -Rf /tmp/*
while [ $MENU != 0 ]
do
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}5) Crear acceso directo en el escritorio${NEGRO}"
echo -e "${AZUL}0) 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 -y update

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

               sudo apt-get -y install automake
               sudo apt-get -y install libpng12-0
               sudo apt-get -y install libpng12-dev
               sudo apt-get -y install libsdl2-dev
               sudo apt-get -y install libsdl2-2.0-0
               sudo apt-get -y install libsdl2-gfx-1.0-0
               sudo apt-get -y install libsdl2-gfx-dev
               sudo apt-get -y install libsdl2-image-2.0-0
               sudo apt-get -y install libsdl2-image-dev
               sudo apt-get -y install libsdl2-mixer-2.0-0
               sudo apt-get -y install libsdl2-mixer-dev
               sudo apt-get -y install libsdl2-net-2.0-0
               sudo apt-get -y install libsdl2-net-dev
               sudo apt-get -y install libsdl2-ttf-2.0-0
               sudo apt-get -y install libsdl2-ttf-dev
               sudo apt-get -y install portaudio19-dev
               sudo apt-get -y install liblua5.1-0
               sudo apt-get -y install liblua5.1-0-dev
               sudo apt-get -y install libsqlite3-0
               sudo apt-get -y install libsqlite3-dev
               sudo apt-get -y install git
               sudo apt-get -y install fpc
               sudo apt-get -y install fpc-source
               sudo apt-get -y install fpc-2.6.4
               sudo apt-get -y install fpc-source-2.6.4
sudo apt-get -y install libass-dev 
sudo apt-get -y install libmp3lame-dev 
sudo apt-get -y install libopus-dev
sudo apt-get -y install libtheora-dev
sudo apt-get -y install libx64-dev
sudo apt-get -y install libbz2-dev

               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
            #./configure --enable-shared --enable-pic --enable-encoders --disable-static --prefix=/usr
            #./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-vdpau --enable-vaapi --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4
	   ./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4

            make -j4

            sudo make install

            which ffmpeg
         case $? in
         0)
                         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 "${ROJO}Error en la instalacion de ffmpeg. Revisa el log de la compilacion${NEGRO}"
         ;;
         esac
         ;;
         *)
            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
             cd /tmp/
             tar -zxvf 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

         which fpc
         case $? in
         0)
                         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 "${ROJO}Error en la instalacion de FreePascal. Revisa el log de la compilacion${NEGRO}"
         ;;
         esac
         ;;
         *)
            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

   ;;
   5)
        wget -P /tmp/ http://i.imgur.com/JtmXso1.png
        sudo mv /tmp/JtmXso1.png /usr/share/icons/ultra.png
        cd /home/pi/Desktop
        touch ultrastar.desktop
        echo "[Desktop Entry]" >> /home/pi/Desktop/ultrastar.desktop
        echo "Version=1.0" >> /home/pi/Desktop/ultrastar.desktop
        echo "Type=Application" >> /home/pi/Desktop/ultrastar.desktop
        echo "Terminal=false"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Name=ultrastar"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Categories=Games;"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Exec=/usr/bin/ultrastardx"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Comment=Ultrastar"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Icon=/usr/share/icons/ultra.png"  >> /home/pi/Desktop/ultrastar.desktop
        chmod 755 /home/pi/Desktop/ultrastar.desktop
   ;;
   0)
      echo -e "${ROJO}Saliendo${NEGRO}"
      exit 1
   ;;
esac
done
@CapNida Que has modificado en este script que no termina de irme con el y voy a mirar si lo puedo revisar teniendo en cuenta los cambios realizados para depurar lo más fácilmente :)

Gracias. Saludos
mansig
Pi Alpha
Pi Alpha
Mensajes: 14
Registrado: 23 Dic 2017, 23:20
Agradecido: 0
Agradecimiento recibido: 0

he probado con los 2, primero probe con el del post 1 y luego lo puse todo desde 0 y probe con el del ultimo post...con ninguno.... :(
Avatar de Usuario
CapNida
Pi Omega
Pi Omega
Mensajes: 96
Registrado: 01 Dic 2016, 09:43
Agradecido: 1 vez
Agradecimiento recibido: 1 vez

chuloplaya escribió:
mansig escribió:he vuelto a instalar todo de 0 en una SD a parte con "2017-11-29-raspbian-stretch" y lo mismo... tan torpe soy?? solo es un script :'(
que puede estar pasando?
Que script estas usando, el de la portada o el último que postearon que arreglaba lo de los videos a 720?

A mi con el original me iba, ayer con el modificado de los videos nada más me daba problemas y no tuve cojones. De hecho me daba varios problemas (uno de ellos parecidos al tuyo...


Por otro lado :
CapNida escribió:Este script tiene la configuracion para recompilar el ffmpeg para mover los videos en 720p.
He probado algunos videos sin recomprimir y parece que funcionan bien.
Es necesario ejecutar primero la instalcion de dependencias porque hay algunos paquetes extras necesarios.

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
MENU=100
################################################################
rm -Rf /tmp/*
while [ $MENU != 0 ]
do
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}5) Crear acceso directo en el escritorio${NEGRO}"
echo -e "${AZUL}0) 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 -y update

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

               sudo apt-get -y install automake
               sudo apt-get -y install libpng12-0
               sudo apt-get -y install libpng12-dev
               sudo apt-get -y install libsdl2-dev
               sudo apt-get -y install libsdl2-2.0-0
               sudo apt-get -y install libsdl2-gfx-1.0-0
               sudo apt-get -y install libsdl2-gfx-dev
               sudo apt-get -y install libsdl2-image-2.0-0
               sudo apt-get -y install libsdl2-image-dev
               sudo apt-get -y install libsdl2-mixer-2.0-0
               sudo apt-get -y install libsdl2-mixer-dev
               sudo apt-get -y install libsdl2-net-2.0-0
               sudo apt-get -y install libsdl2-net-dev
               sudo apt-get -y install libsdl2-ttf-2.0-0
               sudo apt-get -y install libsdl2-ttf-dev
               sudo apt-get -y install portaudio19-dev
               sudo apt-get -y install liblua5.1-0
               sudo apt-get -y install liblua5.1-0-dev
               sudo apt-get -y install libsqlite3-0
               sudo apt-get -y install libsqlite3-dev
               sudo apt-get -y install git
               sudo apt-get -y install fpc
               sudo apt-get -y install fpc-source
               sudo apt-get -y install fpc-2.6.4
               sudo apt-get -y install fpc-source-2.6.4
sudo apt-get -y install libass-dev 
sudo apt-get -y install libmp3lame-dev 
sudo apt-get -y install libopus-dev
sudo apt-get -y install libtheora-dev
sudo apt-get -y install libx64-dev
sudo apt-get -y install libbz2-dev

               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
            #./configure --enable-shared --enable-pic --enable-encoders --disable-static --prefix=/usr
            #./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-vdpau --enable-vaapi --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4
	   ./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4

            make -j4

            sudo make install

            which ffmpeg
         case $? in
         0)
                         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 "${ROJO}Error en la instalacion de ffmpeg. Revisa el log de la compilacion${NEGRO}"
         ;;
         esac
         ;;
         *)
            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
             cd /tmp/
             tar -zxvf 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

         which fpc
         case $? in
         0)
                         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 "${ROJO}Error en la instalacion de FreePascal. Revisa el log de la compilacion${NEGRO}"
         ;;
         esac
         ;;
         *)
            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

   ;;
   5)
        wget -P /tmp/ http://i.imgur.com/JtmXso1.png
        sudo mv /tmp/JtmXso1.png /usr/share/icons/ultra.png
        cd /home/pi/Desktop
        touch ultrastar.desktop
        echo "[Desktop Entry]" >> /home/pi/Desktop/ultrastar.desktop
        echo "Version=1.0" >> /home/pi/Desktop/ultrastar.desktop
        echo "Type=Application" >> /home/pi/Desktop/ultrastar.desktop
        echo "Terminal=false"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Name=ultrastar"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Categories=Games;"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Exec=/usr/bin/ultrastardx"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Comment=Ultrastar"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Icon=/usr/share/icons/ultra.png"  >> /home/pi/Desktop/ultrastar.desktop
        chmod 755 /home/pi/Desktop/ultrastar.desktop
   ;;
   0)
      echo -e "${ROJO}Saliendo${NEGRO}"
      exit 1
   ;;
esac
done
@CapNida Que has modificado en este script que no termina de irme con el y voy a mirar si lo puedo revisar teniendo en cuenta los cambios realizados para depurar lo más fácilmente :)

Gracias. Saludos
@chuloplaya las modificaciones del script son las siguientes:

En las dependencias se ha añadido las siguiente:

Código: Seleccionar todo

sudo apt-get -y install libass-dev 
sudo apt-get -y install libmp3lame-dev 
sudo apt-get -y install libopus-dev
sudo apt-get -y install libtheora-dev
sudo apt-get -y install libx64-dev
sudo apt-get -y install libbz2-dev
En la compilación del ffmpeg se ha modificado la orden por la siguiente:

Código: Seleccionar todo

./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4
Frankiii
Pi Alpha
Pi Alpha
Mensajes: 29
Registrado: 20 Ago 2017, 09:28
Agradecido: 0
Agradecimiento recibido: 0

Se podría instalar también sobre osmc? Al fin y al cabo es un raspbian ... Luego lo pruebo y doy tb mis impresiones.

Gran tutorial

Enviado desde mi SM-G950F mediante Tapatalk
juanmanuelrguez
Pi Alpha
Pi Alpha
Mensajes: 15
Registrado: 25 Dic 2017, 09:53
Agradecido: 0
Agradecimiento recibido: 0

Buenas tardes. ¿Alguna imagen para una SD de 16 GB? Me encantaría ponerme a trastear y compilar (recuerdo mis años mozos de creación de distros de linux), pero es para fin de año y no me daría tiempo a hacerlo todo de cero.
chuloplaya
Pi Alpha
Pi Alpha
Mensajes: 24
Registrado: 10 Ene 2017, 20:00
Agradecido: 0
Agradecimiento recibido: 0

si consigo echarlo a andar te la paso por torrent.

Saludos
juanmanuelrguez
Pi Alpha
Pi Alpha
Mensajes: 15
Registrado: 25 Dic 2017, 09:53
Agradecido: 0
Agradecimiento recibido: 0

chuloplaya escribió:si consigo echarlo a andar te la paso por torrent.

Saludos
Muchas gracias amigo!
chuloplaya
Pi Alpha
Pi Alpha
Mensajes: 24
Registrado: 10 Ene 2017, 20:00
Agradecido: 0
Agradecimiento recibido: 0

CapNida escribió:
chuloplaya escribió:
mansig escribió:he vuelto a instalar todo de 0 en una SD a parte con "2017-11-29-raspbian-stretch" y lo mismo... tan torpe soy?? solo es un script :'(
que puede estar pasando?
Que script estas usando, el de la portada o el último que postearon que arreglaba lo de los videos a 720?

A mi con el original me iba, ayer con el modificado de los videos nada más me daba problemas y no tuve cojones. De hecho me daba varios problemas (uno de ellos parecidos al tuyo...


Por otro lado :
CapNida escribió:Este script tiene la configuracion para recompilar el ffmpeg para mover los videos en 720p.
He probado algunos videos sin recomprimir y parece que funcionan bien.
Es necesario ejecutar primero la instalcion de dependencias porque hay algunos paquetes extras necesarios.

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
MENU=100
################################################################
rm -Rf /tmp/*
while [ $MENU != 0 ]
do
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}5) Crear acceso directo en el escritorio${NEGRO}"
echo -e "${AZUL}0) 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 -y update

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

               sudo apt-get -y install automake
               sudo apt-get -y install libpng12-0
               sudo apt-get -y install libpng12-dev
               sudo apt-get -y install libsdl2-dev
               sudo apt-get -y install libsdl2-2.0-0
               sudo apt-get -y install libsdl2-gfx-1.0-0
               sudo apt-get -y install libsdl2-gfx-dev
               sudo apt-get -y install libsdl2-image-2.0-0
               sudo apt-get -y install libsdl2-image-dev
               sudo apt-get -y install libsdl2-mixer-2.0-0
               sudo apt-get -y install libsdl2-mixer-dev
               sudo apt-get -y install libsdl2-net-2.0-0
               sudo apt-get -y install libsdl2-net-dev
               sudo apt-get -y install libsdl2-ttf-2.0-0
               sudo apt-get -y install libsdl2-ttf-dev
               sudo apt-get -y install portaudio19-dev
               sudo apt-get -y install liblua5.1-0
               sudo apt-get -y install liblua5.1-0-dev
               sudo apt-get -y install libsqlite3-0
               sudo apt-get -y install libsqlite3-dev
               sudo apt-get -y install git
               sudo apt-get -y install fpc
               sudo apt-get -y install fpc-source
               sudo apt-get -y install fpc-2.6.4
               sudo apt-get -y install fpc-source-2.6.4
sudo apt-get -y install libass-dev 
sudo apt-get -y install libmp3lame-dev 
sudo apt-get -y install libopus-dev
sudo apt-get -y install libtheora-dev
sudo apt-get -y install libx64-dev
sudo apt-get -y install libbz2-dev

               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
            #./configure --enable-shared --enable-pic --enable-encoders --disable-static --prefix=/usr
            #./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-vdpau --enable-vaapi --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4
	   ./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4

            make -j4

            sudo make install

            which ffmpeg
         case $? in
         0)
                         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 "${ROJO}Error en la instalacion de ffmpeg. Revisa el log de la compilacion${NEGRO}"
         ;;
         esac
         ;;
         *)
            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
             cd /tmp/
             tar -zxvf 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

         which fpc
         case $? in
         0)
                         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 "${ROJO}Error en la instalacion de FreePascal. Revisa el log de la compilacion${NEGRO}"
         ;;
         esac
         ;;
         *)
            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

   ;;
   5)
        wget -P /tmp/ http://i.imgur.com/JtmXso1.png
        sudo mv /tmp/JtmXso1.png /usr/share/icons/ultra.png
        cd /home/pi/Desktop
        touch ultrastar.desktop
        echo "[Desktop Entry]" >> /home/pi/Desktop/ultrastar.desktop
        echo "Version=1.0" >> /home/pi/Desktop/ultrastar.desktop
        echo "Type=Application" >> /home/pi/Desktop/ultrastar.desktop
        echo "Terminal=false"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Name=ultrastar"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Categories=Games;"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Exec=/usr/bin/ultrastardx"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Comment=Ultrastar"  >> /home/pi/Desktop/ultrastar.desktop
        echo "Icon=/usr/share/icons/ultra.png"  >> /home/pi/Desktop/ultrastar.desktop
        chmod 755 /home/pi/Desktop/ultrastar.desktop
   ;;
   0)
      echo -e "${ROJO}Saliendo${NEGRO}"
      exit 1
   ;;
esac
done
@CapNida Que has modificado en este script que no termina de irme con el y voy a mirar si lo puedo revisar teniendo en cuenta los cambios realizados para depurar lo más fácilmente :)

Gracias. Saludos
@chuloplaya las modificaciones del script son las siguientes:

En las dependencias se ha añadido las siguiente:

Código: Seleccionar todo

sudo apt-get -y install libass-dev 
sudo apt-get -y install libmp3lame-dev 
sudo apt-get -y install libopus-dev
sudo apt-get -y install libtheora-dev
sudo apt-get -y install libx64-dev
sudo apt-get -y install libbz2-dev
En la compilación del ffmpeg se ha modificado la orden por la siguiente:

Código: Seleccionar todo

./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4
@CapNida que version de Raspbian usas como base?
Responder