Problemi di visualizzazione con Chromium

Postate qui per tutte le discussioni legate a Linux in generale.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Gnu/Linux in genere, se l'argomento è specifico alla Slackware usate uno dei forum Slackware o Slackware64.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
metrofox
Linux 3.x
Linux 3.x
Messaggi: 760
Iscritto il: gio 7 ago 2008, 12:29
Slackware: slackware64-current
Kernel: 3.4.4-ck3
Desktop: FluxBox-1.3.1
Distribuzione: FreeBSD-8.1(amd64)
Località: London

Re: Problemi di visualizzazione con Chromium

Messaggio da metrofox »

gohanz ha scritto:
metrofox ha scritto:
gohanz ha scritto:No io l'architettura l'ho messa come i686, puoi controllare lo SlackBuild è presente sul repository. Non è che hai scaricato la versione per x86_64?
Comunque Chromium non richiede FFmpeg, almeno non lo richiedeva quando ho compilato.
Qui c'è una discussione che può aiutare http://groups.google.com/group/chromium ... 08e5?fwc=1 .
Credo che sia meglio anche chiedere lumi a Zerouno autore dello SlackBuild.
Chromium richiede ffmpeg, ma non per forza, io ad esempio su FreeBSD l'ho abilitato.
Ma non compila una versione interna? Altrimenti che bisogna modificare nello SlackBuild per usare ffmpeg di sistema?
No, non compila una versione interna, bisognerebbe modificare qualcosa per far si che venga abilitato... Dai un'occhiata al Makefile di FreeBSD Qui ;)

Avatar utente
ZeroUno
Staff
Staff
Messaggi: 5441
Iscritto il: ven 2 giu 2006, 14:52
Nome Cognome: Matteo Rossini
Slackware: current
Kernel: slack-current
Desktop: ktown-latest
Distribuzione: 01000000-current
Località: Roma / Castelli
Contatta:

Re: Problemi di visualizzazione con Chromium

Messaggio da ZeroUno »

gohanz ha scritto:Credo che sia meglio anche chiedere lumi a Zerouno autore dello SlackBuild.
A dire la verità non è che possa definirsi molto mio.
Io avevo fatto quello che chromium 5 (che sto attualmente usando).
L'upgrade a 6 ha comportato un sistema di compilazione completamente diverso e la riscrittura pressochè da zero (da parte, se non erro, di jimmy_page_89, ma non sono sicuro).

Più che ricompilarlo e vedere come va non posso fare.
Al momento ho lanciato la compilazione con lo stesso slackbuild (ho solo provveduto ad alzare il build level).

Ci vorrà un po perchè rispetto ad allora ho un giga di ram in meno (:-( ) e il processore già a 100% per altri processi running.

Ciao
01
Packages finder: slakfinder.org | Slackpkg+, per aggiungere repository a slackpkg

Codice: Seleziona tutto

1011010 1100101 1110010 1101111 - 0100000 - 1010101 1101110 1101111

Avatar utente
Blallo
Packager
Packager
Messaggi: 3302
Iscritto il: ven 12 ott 2007, 11:37
Nome Cognome: Savino Liguori
Slackware: 14.2 / 12.2
Kernel: 4.4.14-smp
Desktop: DWM
Località: Torino / Torremaggiore (FG)
Contatta:

Re: Problemi di visualizzazione con Chromium

Messaggio da Blallo »

Si ZeroUno, ho collaborato io allo SB
girovagando per il mondo (la mia sfera lancerò..), ho trovato delle opzioni extra per ffmpeg e altra roba
me le studio un po' e vedo come modificare lo SB

hashbang
Packager
Packager
Messaggi: 2034
Iscritto il: ven 4 giu 2010, 10:27

Re: Problemi di visualizzazione con Chromium

Messaggio da hashbang »

@Gohanz ecco l'errore nel tuo SlackBuild (lo preso adeso dal repository ;)

Codice: Seleziona tutto

#!/bin/sh

# Heavily based on the Slackware 13.1 SlackBuild
# Written by Matteo Rossini

# Slackware build script for chromium
# Official Site: http://build.chromium.org/

# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Exit on most errors
set -e

PKGNAME=chromium
OBUILD=${BUILD:-3sl}
ARCH=${ARCH:-i686}
#SOURCEBASE=http://build.chromium.org/buildbot/archives/
SOURCEBASE="http://chromium-browser-source.commondatastorage.googleapis.com"
JOBS=${JOBS:--j2}
RELEASE=$(wget -q $SOURCEBASE/chromium_tarball.html -O -|grep "a href"|sed -r 's/^.*"chromium.(r[0-9]+)\.tgz".*$/\1/')
SOURCE=$SOURCEBASE/$PKGNAME.$RELEASE.tgz
CWDSIZE=800
TMPSIZE=3800

if [ ! -e ${PKGNAME}.${RELEASE}.tgz ];then
  if [ $(df -k .|tail -1|awk '{print $4}' ) -lt ${CWDSIZE}000 ];then
    echo "No space left to download source file. You need ${CWDSIZE}Mb of free space"
    exit 1
  fi
  wget $SOURCE
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/buildpkgs/$PKGNAME}
PKG=$TMP/package-$PKGNAME
OUTPUT=${OUTPUT:-$CWD}

#Using last version from svn (Recommended 1)
SVN_UPDATE=${SVN_UPDATE:-0}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O3 -pipe -fPIC" # Change cflags to your needs
  LIBDIRSUFFIX="64"
fi

rm -rf $TMP
mkdir -p $TMP $PKG $OUTPUT

if [ $(df -k .|tail -1|awk '{print $4}' ) -lt ${TMPSIZE}000 ];then
  echo "No space left to build $PKGNAME. You need ${TMPSIZE}Mb of free space"
  exit 1
fi
cd $TMP

tar xvf $CWD/${PKGNAME}*.tgz \
 --exclude src/third_party/pefile \
 --exclude src/third_party/GTM \
 --exclude src/third_party/swig/win \
 --exclude src/third_party/python_24 \
 --exclude src/third_party/nss \
 --exclude src/third_party/WebKit/WebKitLibraries \
 --exclude src/third_party/pdfsqueeze \
 --exclude src/third_party/swig/mac \
 --exclude src/third_party/lighttpd \
 --exclude src/third_party/ffmpeg/binaries/chromium/win/ia32 \
 --exclude src/third_party/mingw-w64/mingw/bin \
 --exclude src/third_party/cygwin \
 --exclude src/third_party/WebKit/WebKit/mac

cd home/chrome-svn/tarball/chromium/

chown -R root:root .
chmod -R u+w,go+r-w,a-s .

cd src

# Fetch depot tools
svn co http://src.chromium.org/svn/trunk/tools/depot_tools
export PATH=$(pwd)/depot_tools:"$PATH"

# Exporting variables
export GYP_GENERATORS='make'
export BUILDTYPE='Release'
GYP_DEFINES="fastbuild=1 linux_sandbox_path=/usr/lib$LIBDIRSUFFIX/$PKGNAME/chromium-sandbox use_system_yasm=1 release_extra_cflags='$SLKCFLAGS'"
[[ $ARCH == "x86_64" ]] && GYP_DEFINES+=" linux_fpic=1 target_arch=x64"
export GYP_DEFINES

# Updating tree and update version number
if [ $SVN_UPDATE == 1 ]; then 
    gclient sync
    REV=$(grep -A 1 dir .svn/entries | grep "^[0-9]" | head -1)
else
    REV=$(echo $VERSION | sed 's/r//')
fi

source chrome/VERSION
VERSION="$MAJOR.$MINOR.$BUILD.$PATCH"

# Ensure correct makefiles generation
gclient runhooks --force

# Compile the application
make $JOBS chrome chrome_sandbox


# Install binaries
SRC="out/Release"

install -d -g root -o root -m 755 $PKG/usr/lib$LIBDIRSUFFIX/$PKGNAME/
install -d -g root -o root -m 755 $PKG/usr/man/man1
install -d -g root -o root -m 755 $PKG/usr/bin/

cp -r  $SRC/{locales,resources} $PKG/usr/lib$LIBDIRSUFFIX/$PKGNAME/
install -d -g root -o root -m 755 $PKG/usr/lib$LIBDIRSUFFIX/$PKGNAME/{locales,resources}
find $PKG/usr/lib$LIBDIRSUFFIX/$PKGNAME/{locales,resources} -type f -exec chmod 644 {} \;

install -g root -o root -m 755 $SRC/chrome $PKG/usr/lib$LIBDIRSUFFIX/$PKGNAME/chromium
install -g root -o root -m 4755 $SRC/chrome_sandbox $PKG/usr/lib$LIBDIRSUFFIX/$PKGNAME/chromium-sandbox
install -g root -o root -m 755 $SRC/xdg-settings $PKG/usr/lib$LIBDIRSUFFIX/$PKGNAME/xdg-settings
install -g root -o root -m 644 $SRC/chrome.pak $PKG/usr/lib$LIBDIRSUFFIX/$PKGNAME/chrome.pak
install -g root -o root -m 644 $SRC/chrome.1 $PKG/usr/man/man1/chromium.1

### In this section you may remove some not needed files or move that file in other path

# Create a symlink in /usr/bin
( cd $PKG/usr/bin
  ln -s ../lib$LIBDIRSUFFIX/$PKGNAME/chromium chromium
)

# fixing install error
( cd $PKG/usr/lib$LIBDIRSUFFIX/$PKGNAME
  cp chrome.pak resources.pak
)

mkdir -p $PKG/usr/share/applications
cat $CWD/chromium.desktop > $PKG/usr/share/applications/chromium.desktop

mkdir -p $PKG/usr/share/pixmaps
cp $CWD/chromium_logo.png $PKG/usr/share/pixmaps/chromium.png

### copy some documentation files
mkdir -p $PKG/usr/doc/$PKGNAME-$VERSION
cp -a \
  AUTHORS LICENSE \
  $PKG/usr/doc/$PKGNAME-$VERSION
cat $CWD/$PKGNAME.SlackBuild > $PKG/usr/doc/$PKGNAME-$VERSION/$PKGNAME.SlackBuild
cat $CWD/slack-desc > $PKG/usr/doc/$PKGNAME-$VERSION/slack-desc

#Stripping
( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs -r strip --strip-unneeded 2> /dev/null || true
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs -r strip --strip-unneeded 2> /dev/null || true
  find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs -r strip --strip-unneeded 2> /dev/null || true
)

### compress man pages
if [ -d $PKG/usr/man ]; then
    ( cd $PKG/usr/man
      find . -type f -exec gzip -9 {} \;
      for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
    )
fi

### popolate the install/ directory
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh  > $PKG/install/doinst.sh


### reset owner and create slack-required file.
cd $PKG
chown -R root:root $PKG
chmod 4755 $PKG/usr/lib$LIBDIRSUFFIX/$PKGNAME/chromium-sandbox

if [ -x "$(which requiredbuilder 2>/dev/null)" ];then
 ADD="seamonkey-solibs >= 2.0.4-$ARCH-1" \
  requiredbuilder -y -v -s $CWD $PKG
fi

### finally make the package. 
/sbin/makepkg -l y -c n $OUTPUT/$PKGNAME-$VERSION-$ARCH-$OBUILD.${PKGTYPE:-txz}

if [ "$1" = "--cleanup" ]; then
  rm -rf $TMP
fi
ed ecco le righe che ho modificato. Da

Codice: Seleziona tutto

[[ $ARCH == "x86_64" ]] && GYP_DEFINES+=" linux_fpic=1 target_arch=x64"
export GYP_DEFINES
A

Codice: Seleziona tutto

[[ $ARCH == "i686" ]] && GYP_DEFINES+=" linux_fpic=1 target_arch=i686"
export GYP_DEFINES
Comunque no. Non vede la versione interna di ffmpeg :(

metrofox
Linux 3.x
Linux 3.x
Messaggi: 760
Iscritto il: gio 7 ago 2008, 12:29
Slackware: slackware64-current
Kernel: 3.4.4-ck3
Desktop: FluxBox-1.3.1
Distribuzione: FreeBSD-8.1(amd64)
Località: London

Re: Problemi di visualizzazione con Chromium

Messaggio da metrofox »

Comunque ecco qui un documento importante: http://src.chromium.org/svn/trunk/deps/ ... E.chromium
In giro ci sono altre patch e altri workaround...

Rispondi