Página 7 de 22

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

Publicado: 23 Nov 2017, 09:10
por CapNida
@Gambo13 El script está operativo. Lo único que tienes que hacer es ejecutar los comandos de apt-get install del mensaje #68164 antes de ejecutar el script.

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

Publicado: 23 Nov 2017, 09:28
por CapNida
@Gambo13 @Fire_Fox
Según puedo ver el github del ultrastar (https://github.com/UltraStar-Deluxe/USDX/releases) hay una release estable de agosto de 2017. Esta release pone específicamente que puede ser corrida en una raspberry pi o similar.
(FFmpeg is now supported up to v3.3 and using current freepascal compiler, one can build and run this game on a current raspberry pi or similar system)
Voy a modificar el script para que ofrezca instalar la versión estable, la última versión o la versión de 2016.
En cuanto lo tenga os digo.

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

Publicado: 23 Nov 2017, 10:05
por Fire_Fox
Gambo13 escribió:Me he perdido un poco, empece con el proyecto pero me he roto el brazo y lo deje un poco de lado. Teneis por un casual la imagen o el scrip operativo? o debo seguir los pasos uno por uno?
Yo me he hecho un pequeño tutorial para mi mismo. te lo pongo aquí si quieres y síguelo al pie de la letra, gracias al compi @CapNida

Lo que no he conseguido hacer funcionar sin ralentizaciones es la ultima versión, pero con la de 2016 va de lujo.

Te dejo aquí los pasos, de todas maneras cuando la tenga full, subiré una imagen.
## Comandos para preparar tarjeta Karaoke con UltraStar Deluxe y Raspbian Jessi Desktop ##

## Actualizar firmware y kernel de Raspberry ##

Código: Seleccionar todo

sudo rpi-update
## Primero, actualizar sistema y paquetes ##

Código: Seleccionar todo

sudo apt-get update

sudo apt-get upgrade
##Segundo, instalar Raspi-Config si no estuviera instalado ##

Código: Seleccionar todo

sudo apt-get install rc-gui
## Configuramos con el comando "sudo raspi-config" ##

Código: Seleccionar todo

sudo raspi-config
## Activamos SSH, cambiamos idioma y todo los parametros de localizacion, etc... ##

## Instalamos un escritorio gráfico si no lo tenemos instalado, si tenemos escritorio podemos omitir este paso ##

Código: Seleccionar todo

sudo apt-get install raspberrypi-ui-mods
## Ejecutar estos comandos para desinstalar lo que no empleemos ##

Código: Seleccionar todo

sudo apt-get remove minecraft-pi wolfram-engine scratch sonic-pi nodered bluej greenfoot oracle-java8-jdk libreoffice-writer libreoffice-calc libreoffice-base libreoffice-impress libreoffice-draw libreoffice-math libreoffice 
sudo apt-get autoremove
sudo apt-get autoclean
## si habéis instalado la versión LITE de Raspbian omitir este paso. ##

## Aplicaciones para terminal de recomendada instalación ## ESTO NO ES NECESARIO LO PUSE PARA MI USO PERSONAL

Código: Seleccionar todo

sudo apt-get install screen
sudo apt-get install trash-cli
sudo apt-get install cpufrequtils
sudo apt-get install nano
sudo apt-get install htop
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 emepzar a compilar la instalacion de USDX ##

## Para empezar necesitamos instalar todas estas dependencias antes de lanzar la instalación ¡una a una! ##

Código: Seleccionar todo

sudo apt-get install 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
## Ahora crearemos un script ##

Código: Seleccionar todo

sudo nano compilar_ultrastar.sh
## y pegamos todo este contenido dentro del script !! Gracias al compi CapNida de fororaspberry.es !! ##

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 la ultima version de 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

   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 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

##

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

Código: Seleccionar todo

sudo chmod 775 compilar_ultrastar.sh
## Y ejecutamos el script ##

Código: Seleccionar todo

./compilar_ultrastar.sh
## Ahora si, comenzara la instalación de todo el groso ##

## Cuando nos pregunte que version de ffmpeg instalar, elegimos la 1.2.12 y de FPC elegimos la 3.0.0, cuando nos pregunte que version de USDX instalar decirle que la 2016 con el numero 2, si diera algún error durante la instalación repetir la instalación de la dependencia que de el error. ##

## Una vez instalado podremos lanzar UltraStar Deluxe ##

Código: Seleccionar todo

 /usr/bin/ultrastardx
Si lo sigues al pie de la letra te funcionara.

Saludos!

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

Publicado: 23 Nov 2017, 10:07
por CapNida
@Fire_Fox @Gambo13
A continuación pego el script que te permite elegir las 3 opciones de instalación.
Este script ya debería tener solventado el problema de la instalación de las dependencias, pero no lo puedo asegurar. @Gambo13 te agradecería que lo probaras y comentaras.

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

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

Publicado: 23 Nov 2017, 10:07
por Fire_Fox
CapNida escribió:@Gambo13 @Fire_Fox
Según puedo ver el github del ultrastar (https://github.com/UltraStar-Deluxe/USDX/releases) hay una release estable de agosto de 2017. Esta release pone específicamente que puede ser corrida en una raspberry pi o similar.
(FFmpeg is now supported up to v3.3 and using current freepascal compiler, one can build and run this game on a current raspberry pi or similar system)
Voy a modificar el script para que ofrezca instalar la versión estable, la última versión o la versión de 2016.
En cuanto lo tenga os digo.
Mil gracias!!

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

Publicado: 23 Nov 2017, 10:22
por Gambo13
Ahora pruebo ese ultimo script, con el comando "sudo apt-get install libsdl2-dev" he estado probando y siempre se queda en el 85%

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

Publicado: 23 Nov 2017, 10:36
por Gambo13
Con el ultimo scipt se queda en "Actualizando sistema" 0% connecting to archive.raspberrypi.org
Ahora me tengo que ir a rehabilitacion, luego sigo probando y os comento.
Quizas si actualizo el SO como dice @Fire_Fox antes de ejecutar el script sea como me funcione.

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

Publicado: 23 Nov 2017, 10:57
por Fire_Fox
Gambo13 escribió:Con el ultimo scipt se queda en "Actualizando sistema" 0% connecting to archive.raspberrypi.org
Ahora me tengo que ir a rehabilitacion, luego sigo probando y os comento.
Quizas si actualizo el SO como dice @Fire_Fox antes de ejecutar el script sea como me funcione.
Si no tienes muchas cosas instaladas y solo lo quieres para karaoke, te recomiendo hacer la instalación de cero.

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

Publicado: 23 Nov 2017, 11:00
por CapNida
Gambo13 escribió:Con el ultimo scipt se queda en "Actualizando sistema" 0% connecting to archive.raspberrypi.org
Ahora me tengo que ir a rehabilitacion, luego sigo probando y os comento.
Quizas si actualizo el SO como dice @Fire_Fox antes de ejecutar el script sea como me funcione.
El problema te lo está dando al ejecutar "sudo apt-get update" en el script. Si comentas esa linea poniendo # al principio se saltará el "Actualizando sistema"

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

Publicado: 23 Nov 2017, 11:29
por Fire_Fox
@CapNida
CapNida escribió:@Fire_Fox Voy a responderte a las preguntas del mensaje privado:
  • Arrancar Ultrastar al inicio
  1. 1) Creamos link simbolico en el path /etc/init.d/

Código: Seleccionar todo

sudo ln -s /usr/bin/ultrastardx /etc/init.d/ultrastardx
Con este comando creamos un "acceso directo" a ultrastardx en los ficheros de arranque del sistema
  • 2) Creamos link simbolico en el nivel de ejecución adecuado

Código: Seleccionar todo

sudo ln -s /etc/init.d/ultrastardx /etc/rc2.d/S88ultrastardx
Con este comando creamos un acceso directo que le dice al sistema que ejecute el ultrastardx en el puesto 88 en el arranque. ¿Porque el puesto 88? pues porque es un número alto para que terminen de arrancar todos los sistemas anteriores. Puedes poner cualquier número.
  • Apagar raspberry al cerrar ultrastar:
  1. 1) Creamos el siguiente script (monitor_ultrastar.sh) en /etc/init.d/

Código: Seleccionar todo

#!/bin/bash
ps -fea | grep -i ultrastar | grep -v grep > /dev/null 2>&1
ULTRA_ARRANCADO=$?
if [ $ULTRA_ARRANCADO -neq 0 ]
shutdown -h now
fi
Este script monitoriza que ultrastar esté arrancado. Si no fuera así, lanzaría el comando "shutdown -h now" que apaga el sistema
  • 2) Damos permisos de ejecución al script que acabamos de crear y le cambiamos de propietario a root

Código: Seleccionar todo

sudo chmod 755  /etc/init.d/monitor_ultrastar.sh 
sudo chown root:root /etc/init.d/monitor_ultrastar.sh
  • 3) Programamos el script para que se ejecute cada minuto

Para programar el script tendremos que editar el fichero /etc/crontab e introducir la siguiente linea al final

Código: Seleccionar todo

* * * * *   root   /etc/init.d/monitor_ultrastar.sh 
De esta forma, una vez cerrado el ultrastar, tras 1 minuto como mucho, se apagará la raspberry pi.

Estos comando y scripts los he escrito de memoria sin poder testearlos en mi raspberry porque no tengo acceso ahora mismo.
Si algo falla, hazmelo saber para corregirlo.
Hola compi, he seguido todos los pasos al pie de la letra y se queda en el escritorio como colgado, no se que puede pasar. No me deja mas que acceder por SSH el sistema parece como colgado.

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

Publicado: 23 Nov 2017, 12:08
por CapNida
Vamos por partes a ver que es lo que falla.
Primero quita la programación del script de monitor_ultrastar.sh en el crontab comentando la linea con #

Código: Seleccionar todo

# * * * * *   root   /etc/init.d/monitor_ultrastar.sh 
Borra el link simbolico del arranque:

Código: Seleccionar todo

sudo rm /etc/rc2.d/S88ultrastardx 
Reinicia la raspberry y comprueba que accedes al escritorio. Si es así, prueba que el link simbolico de /etc/init.d/ultrastardx funciona correctamente ejecutando ultrastardx desde cualquier parte del sistema.

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

Publicado: 23 Nov 2017, 14:12
por Gambo13
me estoy perdiendo mucho, jejejeje

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

Publicado: 23 Nov 2017, 14:14
por Gambo13
CapNida escribió:
Gambo13 escribió:Con el ultimo scipt se queda en "Actualizando sistema" 0% connecting to archive.raspberrypi.org
Ahora me tengo que ir a rehabilitacion, luego sigo probando y os comento.
Quizas si actualizo el SO como dice @Fire_Fox antes de ejecutar el script sea como me funcione.
El problema te lo está dando al ejecutar "sudo apt-get update" en el script. Si comentas esa linea poniendo # al principio se saltará el "Actualizando sistema"
Pero si me salto esa linea, la instalacion estara incompleta, no?

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

Publicado: 23 Nov 2017, 14:19
por CapNida
El apt-get update es para leer los repositorios y actualizar los paquetes disponibles para la instalación. Es necesario hacerlo cada cierto tiempo o si añades un nuevo repositorio de paquetes.
No instala nada, así que la instalación si estará completa.

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

Publicado: 23 Nov 2017, 15:37
por chuloplaya
CapNida escribió:@Gambo13 @Fire_Fox
Según puedo ver el github del ultrastar (https://github.com/UltraStar-Deluxe/USDX/releases) hay una release estable de agosto de 2017. Esta release pone específicamente que puede ser corrida en una raspberry pi o similar.
(FFmpeg is now supported up to v3.3 and using current freepascal compiler, one can build and run this game on a current raspberry pi or similar system)
Voy a modificar el script para que ofrezca instalar la versión estable, la última versión o la versión de 2016.
En cuanto lo tenga os digo.

En cuanto lo tengas lo testeo y así si esta bien podemos actualizar el hilo y pedirle chinchetazo ;)

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

Publicado: 23 Nov 2017, 15:40
por Gambo13
No se si ya esta

Código: Seleccionar todo

-e Compilando e instalando ULTRASTAR
-e ---------------------------------
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:~ $

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

Publicado: 23 Nov 2017, 15:55
por Gambo13
Me auto respondo, sigue sin funcionar, mi raspberry no me quiere. No se si sera porque uso raspbian lite, dado que esa microsd solo la quiero para esto.

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

Publicado: 23 Nov 2017, 16:05
por CapNida
@Gambo13 ¿Has ejecutado los comandos de apt-get install del mensaje #68164 antes de ejecutar el script?
Si es así, ¿Puedes pegar la parte de la instalación de FreePascal?
El error está aqui:
checking for fpc... no

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

Publicado: 23 Nov 2017, 16:19
por Gambo13
Es lo que te indicaba antes, con el 1º de esos comandos se queda pillado.
No lo hice tampoco porque pense que estaba incluido en el ultimo script que subiste

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: Thu Nov 23 15:30:31 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 apt-get install libsdl2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  gir1.2-glib-2.0 gir1.2-ibus-1.0 libasound2-dev libasyncns0 libdbus-1-dev
  libdrm-amdgpu1 libdrm-dev libdrm-exynos1 libdrm-freedreno1 libdrm-nouveau2
  libdrm-omap1 libdrm-radeon1 libdrm-tegra0 libegl1-mesa libegl1-mesa-dev
  libflac8 libgbm1 libgirepository-1.0-1 libgl1-mesa-dev libgl1-mesa-dri
  libgl1-mesa-glx libglapi-mesa libgles2-mesa libgles2-mesa-dev libglib2.0-bin
  libglib2.0-dev libglu1-mesa libglu1-mesa-dev libibus-1.0-5 libibus-1.0-dev
  libice-dev libice6 libllvm3.9 libogg0 libpcre16-3 libpcre3-dev libpcre32-3
  libpcrecpp0v5 libpthread-stubs0-dev libpulse-dev libpulse-mainloop-glib0
  libpulse0 libsdl2-2.0-0 libsensors4 libsm-dev libsm6 libsndfile1
  libsndio-dev libsndio6.1 libtxc-dxtn-s2tc libudev-dev libvorbis0a
  libvorbisenc2 libwayland-bin libwayland-client0 libwayland-cursor0
  libwayland-dev libwayland-egl1-mesa libwayland-server0 libx11-dev libx11-doc
  libx11-xcb-dev libx11-xcb1 libxau-dev libxcb-dri2-0 libxcb-dri2-0-dev
  libxcb-dri3-0 libxcb-dri3-dev libxcb-glx0 libxcb-glx0-dev libxcb-present-dev
  libxcb-present0 libxcb-randr0 libxcb-randr0-dev libxcb-render0
  libxcb-render0-dev libxcb-shape0 libxcb-shape0-dev libxcb-sync-dev
  libxcb-sync1 libxcb-xfixes0 libxcb-xfixes0-dev libxcb1-dev libxcursor-dev
  libxcursor1 libxdamage-dev libxdamage1 libxdmcp-dev libxext-dev
  libxfixes-dev libxfixes3 libxi-dev libxi6 libxinerama-dev libxinerama1
  libxkbcommon-dev libxkbcommon0 libxrandr-dev libxrandr2 libxrender-dev
  libxrender1 libxshmfence-dev libxshmfence1 libxss-dev libxss1 libxt-dev
  libxt6 libxtst6 libxv-dev libxv1 libxxf86vm-dev libxxf86vm1 mesa-common-dev
  x11-common x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev
  x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev x11proto-kb-dev
  x11proto-randr-dev x11proto-render-dev x11proto-scrnsaver-dev
  x11proto-video-dev x11proto-xext-dev x11proto-xf86vidmode-dev
  x11proto-xinerama-dev xorg-sgml-doctools xtrans-dev
Suggested packages:
  libasound2-doc libglib2.0-doc libice-doc pulseaudio lm-sensors libsm-doc
  sndiod libxcb-doc libxext-doc libxt-doc
The following NEW packages will be installed:
  gir1.2-glib-2.0 gir1.2-ibus-1.0 libasound2-dev libasyncns0 libdbus-1-dev
  libdrm-amdgpu1 libdrm-dev libdrm-exynos1 libdrm-freedreno1 libdrm-nouveau2
  libdrm-omap1 libdrm-radeon1 libdrm-tegra0 libegl1-mesa libegl1-mesa-dev
  libflac8 libgbm1 libgirepository-1.0-1 libgl1-mesa-dev libgl1-mesa-dri
  libgl1-mesa-glx libglapi-mesa libgles2-mesa libgles2-mesa-dev libglib2.0-bin
  libglib2.0-dev libglu1-mesa libglu1-mesa-dev libibus-1.0-5 libibus-1.0-dev
  libice-dev libice6 libllvm3.9 libogg0 libpcre16-3 libpcre3-dev libpcre32-3
  libpcrecpp0v5 libpthread-stubs0-dev libpulse-dev libpulse-mainloop-glib0
  libpulse0 libsdl2-2.0-0 libsdl2-dev libsensors4 libsm-dev libsm6 libsndfile1
  libsndio-dev libsndio6.1 libtxc-dxtn-s2tc libudev-dev libvorbis0a
  libvorbisenc2 libwayland-bin libwayland-client0 libwayland-cursor0
  libwayland-dev libwayland-egl1-mesa libwayland-server0 libx11-dev libx11-doc
  libx11-xcb-dev libx11-xcb1 libxau-dev libxcb-dri2-0 libxcb-dri2-0-dev
  libxcb-dri3-0 libxcb-dri3-dev libxcb-glx0 libxcb-glx0-dev libxcb-present-dev
  libxcb-present0 libxcb-randr0 libxcb-randr0-dev libxcb-render0
  libxcb-render0-dev libxcb-shape0 libxcb-shape0-dev libxcb-sync-dev
  libxcb-sync1 libxcb-xfixes0 libxcb-xfixes0-dev libxcb1-dev libxcursor-dev
  libxcursor1 libxdamage-dev libxdamage1 libxdmcp-dev libxext-dev
  libxfixes-dev libxfixes3 libxi-dev libxi6 libxinerama-dev libxinerama1
  libxkbcommon-dev libxkbcommon0 libxrandr-dev libxrandr2 libxrender-dev
  libxrender1 libxshmfence-dev libxshmfence1 libxss-dev libxss1 libxt-dev
  libxt6 libxtst6 libxv-dev libxv1 libxxf86vm-dev libxxf86vm1 mesa-common-dev
  x11-common x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev
  x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev x11proto-kb-dev
  x11proto-randr-dev x11proto-render-dev x11proto-scrnsaver-dev
  x11proto-video-dev x11proto-xext-dev x11proto-xf86vidmode-dev
  x11proto-xinerama-dev xorg-sgml-doctools xtrans-dev
0 upgraded, 131 newly installed, 0 to remove and 0 not upgraded.
Need to get 34.2 MB of archives.
After this operation, 219 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.raspberrypi.org/debian stretch/main armhf libasound2-dev armhf 1.1.3-5+rpi3 [262 kB]
Get:2 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libogg0 armhf 1.3.2-1 [17.2 kB]
Get:3 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libpcrecpp0v5 armhf 2:8.39-3 [149 kB]
Get:4 http://archive.raspberrypi.org/debian stretch/main armhf libgbm1 armhf 13.0.6-1+rpi2 [56.2 kB]
Get:5 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libudev-dev armhf 232-25+deb9u1 [90.6 kB]
Get:7 http://archive.raspberrypi.org/debian stretch/main armhf libegl1-mesa armhf 13.0.6-1+rpi2 [98.9 kB]
Get:6 http://raspbian.42.fr/raspbian stretch/main armhf x11-common all 1:7.7+19 [251 kB]
Get:9 http://archive.raspberrypi.org/debian stretch/main armhf libwayland-egl1-mesa armhf 13.0.6-1+rpi2 [42.7 kB]
Get:10 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxxf86vm1 armhf 1:1.1.4-1 [20.2 kB]
Get:11 http://archive.raspberrypi.org/debian stretch/main armhf libegl1-mesa-dev armhf 13.0.6-1+rpi2 [55.3 kB]
Get:8 http://raspbian.42.fr/raspbian stretch/main armhf libxss1 armhf 1:1.2.2-1 [16.8 kB]
Get:12 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libgirepository-1.0-1 armhf 1.50.0-1 [76.4 kB]
Get:13 http://archive.raspberrypi.org/debian stretch/main armhf mesa-common-dev armhf 13.0.6-1+rpi2 [517 kB]
Get:14 http://raspbian.42.fr/raspbian stretch/main armhf gir1.2-glib-2.0 armhf 1.50.0-1 [139 kB]
Get:15 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libibus-1.0-5 armhf 1.5.14-3 [317 kB]
Get:16 http://raspbian.42.fr/raspbian stretch/main armhf gir1.2-ibus-1.0 armhf 1.5.14-3 [272 kB]
Err:18 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libdbus-1-dev armhf 1.10.18-1
  404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
Get:17 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libasyncns0 armhf 0.8-6 [11.8 kB]
Get:20 http://archive.raspberrypi.org/debian stretch/main armhf libglapi-mesa armhf 13.0.6-1+rpi2 [66.1 kB]
Get:19 http://ftp.crifo.org/raspbian/raspbian stretch/main armhf libdrm-amdgpu1 armhf 2.4.74-1 [25.0 kB]
Get:21 http://raspbian.42.fr/raspbian stretch/main armhf libdrm-radeon1 armhf 2.4.74-1 [27.7 kB]
Get:22 http://archive.raspberrypi.org/debian stretch/main armhf libgl1-mesa-glx armhf 13.0.6-1+rpi2 [154 kB]
Get:23 http://raspbian.42.fr/raspbian stretch/main armhf libdrm-nouveau2 armhf 2.4.74-1 [23.5 kB]
Get:25 http://archive.raspberrypi.org/debian stretch/main armhf libgl1-mesa-dev armhf 13.0.6-1+rpi2 [41.4 kB]
Get:24 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libdrm-omap1 armhf 2.4.74-1 [15.1 kB]
Get:26 http://raspbian.42.fr/raspbian stretch/main armhf libdrm-freedreno1 armhf 2.4.74-1 [23.8 kB]
Get:27 http://archive.raspberrypi.org/debian stretch/main armhf libgl1-mesa-dri armhf 13.0.6-1+rpi2 [3,900 kB]
Get:28 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libdrm-exynos1 armhf 2.4.74-1 [18.1 kB]
Get:29 http://raspbian.42.fr/raspbian stretch/main armhf libdrm-tegra0 armhf 2.4.74-1 [14.5 kB]
Get:30 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libdrm-dev armhf 2.4.74-1 [189 kB]
Get:31 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libwayland-client0 armhf 1.12.0-1 [20.2 kB]
Get:32 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libwayland-server0 armhf 1.12.0-1 [24.5 kB]
Get:33 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libx11-xcb1 armhf 2:1.6.4-3 [183 kB]
Get:35 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxcb-dri3-0 armhf 1.12-1 [95.5 kB]
Get:36 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxcb-present0 armhf 1.12-1 [95.9 kB]
Get:38 http://ftp.crifo.org/raspbian/raspbian stretch/main armhf libxcb-xfixes0 armhf 1.12-1 [99.5 kB]
Get:39 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxshmfence1 armhf 1.2-1 [7,642 B]
Get:34 http://raspbian.42.fr/raspbian stretch/main armhf libxcb-dri2-0 armhf 1.12-1 [97.1 kB]
Get:37 http://raspbian.42.fr/raspbian stretch/main armhf libxcb-sync1 armhf 1.12-1 [98.7 kB]
Get:40 http://raspbian.42.fr/raspbian stretch/main armhf x11proto-dri2-dev all 2.8-2 [18.2 kB]
Get:41 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf x11proto-gl-dev all 1.4.17-1 [28.0 kB]
Get:42 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf xorg-sgml-doctools all 1:1.11-1 [21.9 kB]
Get:43 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf x11proto-core-dev all 7.0.31-1 [728 kB]
Get:44 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxau-dev armhf 1:1.0.8-1 [23.0 kB]
Get:46 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf x11proto-input-dev all 2.3.2-1 [158 kB]
Get:45 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxdmcp-dev armhf 1:1.1.2-3 [40.9 kB]
Get:48 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf xtrans-dev all 1.3.5-1 [100 kB]
Get:49 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libpthread-stubs0-dev armhf 0.3-4 [4,042 B]
Get:50 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxcb1-dev armhf 1.12-1 [165 kB]
Get:51 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libx11-dev armhf 2:1.6.4-3 [753 kB]
Get:47 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf x11proto-kb-dev all 1.0.7-1 [233 kB]
Get:54 http://raspbian.42.fr/raspbian stretch/main armhf x11proto-xf86vidmode-dev all 2.3.1-2 [6,114 B]
Get:55 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxxf86vm-dev armhf 1:1.1.4-1 [24.8 kB]
Get:52 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf x11proto-xext-dev all 7.3.0-1 [212 kB]
Get:56 http://raspbian.42.fr/raspbian stretch/main armhf libxfixes3 armhf 1:5.0.3-1 [20.6 kB]
Get:53 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxext-dev armhf 2:1.3.3-1 [102 kB]
Get:57 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxdamage1 armhf 1:1.1.4-2+b1 [14.1 kB]
Get:58 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf x11proto-fixes-dev all 1:5.0-2 [19.2 kB]
Get:59 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxfixes-dev armhf 1:5.0.3-1 [22.7 kB]
Get:60 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf x11proto-damage-dev all 1:1.2.1-2 [11.8 kB]
Get:61 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxdamage-dev armhf 1:1.1.4-2+b1 [13.9 kB]
Get:62 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxcb-glx0 armhf 1.12-1 [111 kB]
Get:63 http://raspbian.42.fr/raspbian stretch/main armhf libxcb-glx0-dev armhf 1.12-1 [117 kB]
Get:64 http://archive.raspberrypi.org/debian stretch/main armhf libgles2-mesa armhf 13.0.6-1+rpi2 [52.9 kB]
Get:65 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxcb-dri2-0-dev armhf 1.12-1 [98.6 kB]
Get:66 http://archive.raspberrypi.org/debian stretch/main armhf libgles2-mesa-dev armhf 13.0.6-1+rpi2 [75.4 kB]
Get:67 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxcb-dri3-dev armhf 1.12-1 [96.1 kB]
Get:68 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxcb-randr0 armhf 1.12-1 [106 kB]
Get:69 http://raspbian.42.fr/raspbian stretch/main armhf libxcb-render0 armhf 1.12-1 [104 kB]
Get:70 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxcb-render0-dev armhf 1.12-1 [108 kB]
Get:71 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxcb-randr0-dev armhf 1.12-1 [109 kB]
Get:72 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxcb-shape0 armhf 1.12-1 [96.2 kB]
Get:73 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxcb-shape0-dev armhf 1.12-1 [97.4 kB]
Get:74 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxcb-xfixes0-dev armhf 1.12-1 [102 kB]
Get:75 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxcb-sync-dev armhf 1.12-1 [101 kB]
Get:76 http://raspbian.42.fr/raspbian stretch/main armhf libxcb-present-dev armhf 1.12-1 [97.3 kB]
Get:77 http://raspbian.42.fr/raspbian stretch/main armhf libxshmfence-dev armhf 1.2-1 [7,152 B]
Get:78 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libx11-xcb-dev armhf 2:1.6.4-3 [185 kB]
Get:79 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libwayland-cursor0 armhf 1.12.0-1 [12.1 kB]
Get:80 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libwayland-bin armhf 1.12.0-1 [18.2 kB]
Get:81 http://raspbian.42.fr/raspbian stretch/main armhf libwayland-dev armhf 1.12.0-1 [89.0 kB]
Get:82 http://raspbian.42.fr/raspbian stretch/main armhf libflac8 armhf 1.3.2-1 [145 kB]
Get:83 http://raspbian.42.fr/raspbian stretch/main armhf libllvm3.9 armhf 1:3.9.1-9+rpi1 [9,695 kB]
Get:86 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libpcre16-3 armhf 2:8.39-3 [235 kB]
Get:87 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libpcre32-3 armhf 2:8.39-3 [227 kB]
Get:88 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libpcre3-dev armhf 2:8.39-3 [565 kB]
Get:91 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libglu1-mesa-dev armhf 9.0.0-2.1 [169 kB]
Get:84 http://raspbian.42.fr/raspbian stretch/main armhf libsensors4 armhf 1:3.4.0-4 [50.5 kB]
Get:85 http://raspbian.42.fr/raspbian stretch/main armhf libglib2.0-bin armhf 2.50.3-2 [1,608 kB]
Get:92 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libibus-1.0-dev armhf 1.5.14-3 [348 kB]
Get:90 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libglu1-mesa armhf 9.0.0-2.1 [130 kB]
Get:94 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libice-dev armhf 2:1.0.9-2 [58.8 kB]
Get:89 http://raspbian.42.fr/raspbian stretch/main armhf libglib2.0-dev armhf 2.50.3-2 [2,775 kB]
Get:96 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libvorbis0a armhf 1.3.5-4 [81.6 kB]
Get:97 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libvorbisenc2 armhf 1.3.5-4 [72.8 kB]
Get:99 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxi6 armhf 2:1.7.9-1 [77.8 kB]
Get:101 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libpulse0 armhf 10.0-1+deb9u1 [252 kB]
Get:102 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libpulse-mainloop-glib0 armhf 10.0-1+deb9u1 [43.9 kB]
Get:93 http://raspbian.42.fr/raspbian stretch/main armhf libice6 armhf 2:1.0.9-2 [51.6 kB]
Get:95 http://raspbian.42.fr/raspbian stretch/main armhf libsm6 armhf 2:1.2.2-1+b1 [31.2 kB]
Get:98 http://raspbian.42.fr/raspbian stretch/main armhf libsndfile1 armhf 1.0.27-3 [234 kB]
Get:104 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libsndio6.1 armhf 1.1.0-3 [21.4 kB]
Get:100 http://raspbian.42.fr/raspbian stretch/main armhf libxtst6 armhf 2:1.2.3-1 [26.3 kB]
Get:103 http://raspbian.42.fr/raspbian stretch/main armhf libpulse-dev armhf 10.0-1+deb9u1 [104 kB]
Get:105 http://raspbian.42.fr/raspbian stretch/main armhf libxrender1 armhf 1:0.9.10-1 [29.9 kB]
Get:106 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxcursor1 armhf 1:1.1.14-1+b1 [31.9 kB]
Get:107 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxinerama1 armhf 2:1.1.3-1+b1 [16.4 kB]
Get:108 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxkbcommon0 armhf 0.7.1-1 [110 kB]
Get:109 http://raspbian.42.fr/raspbian stretch/main armhf libxrandr2 armhf 2:1.5.1-1 [34.5 kB]
Get:110 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libsdl2-2.0-0 armhf 2.0.5+dfsg1-2 [314 kB]
Get:111 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libsndio-dev armhf 1.1.0-3 [14.2 kB]
Get:112 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf x11proto-render-dev all 2:0.11.1-2 [20.8 kB]
Get:113 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxrender-dev armhf 1:0.9.10-1 [37.7 kB]
Get:114 http://raspbian.42.fr/raspbian stretch/main armhf libxcursor-dev armhf 1:1.1.14-1+b1 [39.5 kB]
Get:115 http://raspbian.42.fr/raspbian stretch/main armhf libxi-dev armhf 2:1.7.9-1 [236 kB]
Get:116 http://raspbian.42.fr/raspbian stretch/main armhf x11proto-xinerama-dev all 1.2.1-2 [4,938 B]
Get:117 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxinerama-dev armhf 2:1.1.3-1+b1 [18.7 kB]
Get:118 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxkbcommon-dev armhf 0.7.1-1 [337 kB]
Get:119 http://raspbian.42.fr/raspbian stretch/main armhf x11proto-randr-dev all 1.5.0-1 [49.7 kB]
Get:120 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxrandr-dev armhf 2:1.5.1-1 [42.5 kB]
Get:121 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf x11proto-scrnsaver-dev all 1.2.2-1 [25.0 kB]
Get:122 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxss-dev armhf 1:1.2.2-1 [22.7 kB]
Get:123 http://raspbian.42.fr/raspbian stretch/main armhf libxt6 armhf 1:1.1.5-1 [155 kB]
Get:124 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libsm-dev armhf 2:1.2.2-1+b1 [33.5 kB]
Get:125 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxt-dev armhf 1:1.1.5-1 [390 kB]
Get:126 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxv1 armhf 2:1.0.11-1 [23.2 kB]
Get:127 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf x11proto-video-dev all 2.3.3-1 [21.6 kB]
Get:128 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxv-dev armhf 2:1.0.11-1 [47.0 kB]
Get:129 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libsdl2-dev armhf 2.0.5+dfsg1-2 [581 kB]
Get:130 http://ftp.crifo.org/raspbian/raspbian stretch/main armhf libx11-doc all 2:1.6.4-3 [2,201 kB]
Get:131 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libtxc-dxtn-s2tc armhf 1.0+git20151227-2 [44.7 kB]
Fetched 34.0 MB in 24s (1,396 kB/s)
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/d/dbus/libdbus-1-dev_1.10.18-1_armhf.deb  404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
pi@raspberrypi:~ $

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

Publicado: 23 Nov 2017, 16:46
por CapNida
Pues como te dice el error "E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?" vas a tener que correr el "sudo apt-get update" para que actualice los repositorios y pueda descargar las dependencias que faltan.
Ten paciencia y dejalo corriendo a ver si termina de actualizar.