You are not logged in.

#251 2009-10-28 17:55:11

dr.zentech
Member
Registered: 2009-05-27
Posts: 25

Re: xbmc-git AUR package: discussion in here please

I wouldn't mind grabbing a copy of that PKGBUILD if you don't mind smile

Offline

#252 2009-10-28 18:00:03

fiatguy85
Member
Registered: 2009-01-23
Posts: 13

Re: xbmc-git AUR package: discussion in here please

PKGBUILD:

# Contributors : Ralf Barth <archlinux dot org at haggy dot org>
#                Richard Atkinson atkinsonr-at-gmail 
#                John Pittman fiatguy85 <at> gmail <dot> com
#
# Original credits go to Edgar Hucek <gimli at dark-green dot com>
# for his xbmc-vdpau-vdr PKGBUILD at https://archvdr.svn.sourceforge.net/svnroot/archvdr/trunk/archvdr/xbmc-vdpau-vdr/PKGBUILD

pkgname=xbmc-svn
pkgver=23551
pkgrel=2
pkgdesc="XBMC Media Center from SVN"
provides=('xbmc')
conflicts=('xbmc' 'xbmc-smoothvideo' 'xbmc-vdpau')
arch=('i686' 'x86_64')
url="http://xbmc.org"
license=('GPL' 'LGPL')
depends=('alsa-lib' 'curl' 'enca' 'faac' 'freetype2' 'fribidi' 'gawk' 'glew'
         'hal' 'jasper' 'libgl' 'libmad' 'libmysqlclient' 'libjpeg'
         'libxinerama' 'libxrandr' 'lzo2' 'sdl_image' 'sdl_mixer' 'sqlite3'
         'tre' 'unzip' 'libcdio' 'libsamplerate' 'python' 'avahi' 'libmad' 
         'a52dec' 'libdca' 'faad2' 'libmpeg2' 'libvorbis' 'libogg' 'libmms'
         'libmpcdec' 'flac' 'wavpack' 'xorg-utils' 'smbclient')
makedepends=('subversion' 'autoconf' 'automake' 'boost' 'cmake' 'gcc' 'gperf' 
             'libtool>=2.2.6a-1' 'make' 'nasm' 'patch' 'pkgconfig' 'zip' 'flex' 'bison')
optdepends=('lirc: remote controller support'
            'pmount: mount removable devices as normal user'
            'unrar: access compressed files without unpacking them')
install=("${pkgname}.install")
source=(sse1.patch)
noextract=()
md5sums=('b83f847a8a8ca03d9ce38829c3ff6116')
options=(makeflags)

_svnmod=XBMC
_prefix=/usr

build() {

    _svntrunk=http://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk

    cd ${srcdir}/
    if [ -d $_svnmod/.svn ]; then
        msg "SVN tree found, reverting changes and updating to -r$pkgver"
        (cd $_svnmod && svn revert -R . && svn up -r $pkgver) || return 1
    else
        msg "Checking out SVN tree of -r$pkgver"
        svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod || return 1
    fi

    msg "Applying patch for old SSE"
    patch $_svnmod/xbmc/lib/libsquish/Makefile.in < sse1.patch

    # Configure XBMC
    #
    # Note on external-libs:
    #   - We cannot use external python because Arch's python was built with
    #     UCS2 unicode support, whereas xbmc expects UCS4 support
    #   - We cannot use Arch's libass because it's incompatible with XBMC's
    #     subtitle rendering
    #   - We cannot use external ffmpeg because we would loose VDPAU functionality
    cd "$srcdir/$_svnmod" 
    msg "Configuring XBMC" 
    ./bootstrap
    ./configure --prefix=${_prefix} \
                --enable-external-liba52 \
                --enable-external-libdts \
                --enable-external-libmpeg2 \
                --enable-external-libogg \
                --enable-external-libwavpack \
                --disable-external-libass \
                --disable-external-ffmpeg \
                --disable-external-python \
                --disable-debug || return 1
  
    # Now (finally) build
    msg "Running make" 
    make || return 1
}

package() {

    cd "$srcdir/$_svnmod"
    msg "Running make install" 
    make prefix=${pkgdir}${_prefix} install || return 1

    # Install 
    install -Dm755 ${srcdir}/$_svnmod/xbmc-xrandr \
                   ${pkgdir}${_prefix}/share/xbmc/xbmc-xrandr || return 1

    install -Dm644 ${srcdir}/$_svnmod/tools/Linux/xbmc.desktop \
                   ${pkgdir}${_prefix}/share/applications/xbmc.desktop || return 1

    install -Dm644 ${srcdir}/$_svnmod/tools/Linux/xbmc.png \
                   ${pkgdir}${_prefix}/share/pixmaps/xbmc.png || return 1

    install -dm755 ${pkgdir}${_prefix}/share/licenses/${pkgname}
    for licensef in LICENSE.GPL README.linux copying.txt; do
        mv ${pkgdir}${_prefix}/share/xbmc/${licensef} \
           ${pkgdir}${_prefix}/share/licenses/${pkgname} || return 1
    done
}

sse1.patch:

8c8
< CXXFLAGS+=-I. -DSQUISH_USE_SSE=2 -msse2
---
> CXXFLAGS+=-I. -DSQUISH_USE_SSE=1 -msse

Offline

#253 2009-10-29 19:26:47

dr.zentech
Member
Registered: 2009-05-27
Posts: 25

Re: xbmc-git AUR package: discussion in here please

I'm not certain I know what I need to be doing here, I've never patched a pkgbuild before, do I simply create a file named sse1.patch and then run your pkgbuild as I regularly would?

Offline

#254 2009-10-29 19:38:21

fiatguy85
Member
Registered: 2009-01-23
Posts: 13

Re: xbmc-git AUR package: discussion in here please

Pretty much.  Save the bottom code in a file called sse1.patch and the PKGBUILD in your build directory and then just build it using makepkg as usual.

Offline

#255 2009-10-29 20:27:29

dr.zentech
Member
Registered: 2009-05-27
Posts: 25

Re: xbmc-git AUR package: discussion in here please

If I'm seeing stuff like this go by during compile, should i be concerned?

libavcodec/dsputil.c: In function 'bit8x8_c':
libavcodec/dsputil.c:3967: warning: 'visibility' attribute ignored
libavcodec/dsputil.c: In function 'ff_check_alignment':
libavcodec/dsputil.c:4475: warning: 'visibility' attribute ignored
libavcodec/dsputil.c: At top level:
libavcodec/snow.h:132: warning: 'w53_32_c' defined but not used
libavcodec/snow.h:133: warning: 'w97_32_c' defined but not used
libavcodec/dsputil.c: In function 'rd8x8_c':
libavcodec/dsputil.h:901: warning: dereferencing pointer 'dst.28' does break strict-aliasing rules
libavcodec/dsputil.h:901: note: initialized from here
libavcodec/dsputil.h:902: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules
libavcodec/dsputil.h:902: note: initialized from here
libavcodec/dsputil.h:901: warning: dereferencing pointer 'dst.28' does break strict-aliasing rules
libavcodec/dsputil.h:901: note: initialized from here
libavcodec/dsputil.h:902: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules
libavcodec/dsputil.h:902: note: initialized from here
libavcodec/dsputil.c:3914: warning: dereferencing pointer 'temp' does break strict-aliasing rules
libavcodec/dsputil.c:3891: note: initialized from here
libavcodec/dsputil.c: In function 'bit8x8_c':
libavcodec/dsputil.c:3986: warning: dereferencing pointer 'temp' does break strict-aliasing rules
libavcodec/dsputil.c:3968: note: initialized from here
libavcodec/dsputil.c: In function 'bit16_c':
libavcodec/dsputil.c:3986: warning: dereferencing pointer 'temp' does break strict-aliasing rules
libavcodec/dsputil.c:3968: note: initialized from here
libavcodec/dsputil.c:3986: warning: dereferencing pointer 'temp' does break strict-aliasing rules
libavcodec/dsputil.c:3968: note: initialized from here

Offline

#256 2009-10-29 23:15:40

dr.zentech
Member
Registered: 2009-05-27
Posts: 25

Re: xbmc-git AUR package: discussion in here please

Compiled, installed, and appears to be running fine. Thanks for the pkgbuild smile

Offline

#257 2009-10-30 04:12:46

fiatguy85
Member
Registered: 2009-01-23
Posts: 13

Re: xbmc-git AUR package: discussion in here please

Warnings are normal during a compile.  As long as it completes, it's usually fine. 

Glad it worked for you!

Offline

#258 2009-10-30 18:56:36

decaturguy
Member
From: Sweden
Registered: 2006-11-28
Posts: 117

Re: xbmc-git AUR package: discussion in here please

hyness wrote:

I tried to compile with this revision to see if this will fix playing DVDs, but I get the following compile error...

ffmpeg/libavcodec/vc1dec.o:(.data.rel+0x0): multiple definition of `vc1_decoder'
ffmpeg/libavcodec/vc1.o:(.data.rel+0x0): first defined here
ffmpeg/libavcodec/vc1dec.o:(.data.rel+0x80): multiple definition of `wmv3_decoder'
ffmpeg/libavcodec/vc1.o:(.data.rel+0x80): first defined here
ffmpeg/libavcodec/vc1dec.o:(.data.rel.local+0x0): multiple definition of `wmv3_vdpau_decoder'
ffmpeg/libavcodec/vc1.o:(.data.rel.local+0x0): first defined here
ffmpeg/libavcodec/vc1dec.o:(.data.rel.local+0x80): multiple definition of `vc1_vdpau_decoder'
ffmpeg/libavcodec/vc1.o:(.data.rel.local+0x80): first defined here
collect2: ld returned 1 exit status
make[1]: *** [../../../../system/players/dvdplayer/avcodec-52-x86_64-linux.so] Error 1
make[1]: Leaving directory `/home/hyness/builds/xbmc-svn/src/XBMC/xbmc/cores/dvdplayer/Codecs'
make: *** [dvdpcodecs] Error 2

Any thoughts on how to fix this?

I just had the same problem, since i don't use VDPAU i recompiled with --enable-external-ffmpeg and the problem is gone.

Offline

#259 2009-11-02 01:36:12

123andres
Member
Registered: 2009-11-02
Posts: 3

Re: xbmc-git AUR package: discussion in here please

I can't compile XBMC anymore (x86_64). I think the problem started after upgrading gcc (4.4.1-1 -> 4.4.2-2).
Directory /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/ doesn't exist anymore now is 4.4.2

Here is where compilation stop:

make[2]: *** No hay ninguna regla para construir el objetivo `/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/include/stddef.h', necesario para `dvdnav.o'.  Alto.
make[2]: *** Se espera a que terminen otras tareas....
make[2]: se sale del directorio `/mnt/datos/Descargas/pkg/xbmc-svn/src/XBMC/xbmc/cores/dvdplayer/Codecs/libdvd/libdvdnav'
make[1]: *** [libdvdnav] Error 2
make[1]: se sale del directorio `/mnt/datos/Descargas/pkg/xbmc-svn/src/XBMC/xbmc/cores/dvdplayer/Codecs/libdvd'
make: *** [dvdpcodecs] Error 2
make: *** Se espera a que terminen otras tareas....

Last edited by 123andres (2009-11-02 01:41:41)

Offline

#260 2009-11-02 08:26:57

haggy
Member
From: Wild southern germany
Registered: 2007-05-22
Posts: 229
Website

Re: xbmc-git AUR package: discussion in here please

Rerunning configure and / or make distclean should fix this.

Offline

#261 2009-11-03 07:54:02

123andres
Member
Registered: 2009-11-02
Posts: 3

Re: xbmc-git AUR package: discussion in here please

That solved my problem. Thank you!

Offline

#262 2009-11-03 13:59:36

dafart
Member
Registered: 2007-01-06
Posts: 21

Re: xbmc-git AUR package: discussion in here please

Great to see people active in creating and maintaining AUR for this great media centre software for my 64-bit linux home theatre box.
Recently there has been a patch added to svn solving the issue of scrambles .ssa subtitles in VDPAU enabled display.
I tried to use the PKGBUILD from the AUR tarball and changed the version from 23551 the current svn checkout number but makepkg fails.

First of all I get an error ("chuck failed") when it tries to add the libcurl patch for x86_64 systems.

When I alter the PKGBUILD so it does not apply the patch it fails because in the src directory is no ./configure.

After manually invoking the bootstrap.sh script in the src dir it creates configure files and finally starts buidling and also finishes, but it fails again at creating the pkg with an error concering XBMCTex "file does not exsist" (the XBMCTex folder does exists but some files appear to be missing.) related the the last lines in the PKGBUILD.

Since I love to play my manga films (mostly mkv with ssa embedded subtitles) with vdpau and subtitles I'd really hope someone could tell me how to fix this or update the PKGBUILD in AUR.

If needed I can give exact error messages when I'm back home tonight.

Cheers, DaFaRt

Last edited by dafart (2009-11-03 14:01:03)

Offline

#263 2009-11-03 14:10:58

haggy
Member
From: Wild southern germany
Registered: 2007-05-22
Posts: 229
Website

Re: xbmc-git AUR package: discussion in here please

Hey - current PKGBUILD (23551) should have no problems with pushing the revision number. You must have some old PKGBUILD from before "the switch" to trunk. Try downloading the tarball again and edit the PKGBUILD. It already should include bootstrapping etc...

Offline

#264 2009-11-03 17:56:51

dafart
Member
Registered: 2007-01-06
Posts: 21

Re: xbmc-git AUR package: discussion in here please

</Homer mode>Doh!</>

You were a bit right.. Compiles fine now!

Offline

#265 2009-11-11 18:39:04

dr.zentech
Member
Registered: 2009-05-27
Posts: 25

Re: xbmc-git AUR package: discussion in here please

I've got a bit of an odd issue here on my setup. If I accidentally hit the \ key on my keyboard (happens quite often, it's directly above my Enter key) my screen shrinks down to roughly 1/4 size (up in the top left corner) and XBMC stops responding. I have to SSH in from another machine and kill it.

Anyone have any thoughts? I'm running into this on two seperate machines, both running Arch, both with all their updates in place, and both have experienced this issue through several past revisions of XBMC. So it's not a problem that's new with a specific SVN version.

I'd be more than happy to provide additional details if someone can let me know what data is relevant.


Thanks!

Offline

#266 2009-11-11 19:02:48

haggy
Member
From: Wild southern germany
Registered: 2007-05-22
Posts: 229
Website

Re: xbmc-git AUR package: discussion in here please

Hehe, that's no bug, but a feature. That key toggles between fullscreen and windowed mode in xbmc. If you don't run a window manager you're left with xbmc staying in one corner eventually loosing focus - thus making it impossible to navigate or use the keyboard

Offline

#267 2009-11-12 02:54:07

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: xbmc-git AUR package: discussion in here please

Hi Archers,

I'm very new to this HTPC thing but I'm must say I'm very impressed by the quality of xbmc, really great application. So, recently, I just bought a 9400GT and a mce remote and my torrentbox/file server became a nice and shiny HTPC. Here's some basic info before I start with the issues:

local/xbmc-skin-aeon-git 20090609-1 (multimedia)
local/xbmc-svn 24487-1
local/libcdio 0.80-3
local/pmount 0.9.20-1
$id
uid=1000(eb64) gid=1000(eb64) groups=91(video),92(audio),93(optical),95(storage),1000(eb64)
$cat /etc/pmount.allow
/dev/sr0
$cat .xinitrc 
exec xbmc-standalone -l /var/run/lirc/lircd

dmesg stuff:

sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
scsi 0:0:0:0: CD-ROM HL-DT-ST DVDRAM GSA-4167B DL11 PQ: 0 ANSI: 5

My main issue is related to mounting cd/dvd, here's what happens so far:
- when I insert a DVD, the "play disc" menu appears in aeon, I can play it without issue but (and that's the annoying part) the only way I can eject the disc is to ssh into this machine, pressing the button won't do anything.
- when I insert a data DVD or CD and use the "play disc", only the files that are at the root of the CD/DVD are played, if I have some folders, they're ignored. I can't eject the disc either. As you can imagine, I'd like to be able to browse the content of the disc.
- I do not think pmount is used at all because I get the same results even if it's uninstalled.
- Some random remarks:
       I have to use the svn version (solved a bug that caused xbmc to segfault, for me at least) and noticed there's no DVD available anymore when adding a source (well, maybe that's normal but well... just in case)

So, finally, could anyone please share the way they mount their CD/DVD's or maybe point me in the right direction?

TL;DR: how do you mount your CD/DVD using xbmc-standalone ?

TIA

EDIT: just saw this http://xbmc.org/wiki/?title=Configuring … f_your_ODD so I'm gonna try it when back home. Then my only remaining problem would be browsing the content of a data CD/DVD...

Last edited by bangkok_manouel (2009-11-12 04:30:21)

Offline

#268 2009-11-12 06:15:43

dr.zentech
Member
Registered: 2009-05-27
Posts: 25

Re: xbmc-git AUR package: discussion in here please

haggy wrote:

Hehe, that's no bug, but a feature. That key toggles between fullscreen and windowed mode in xbmc. If you don't run a window manager you're left with xbmc staying in one corner eventually loosing focus - thus making it impossible to navigate or use the keyboard

Ah, i see.... that's an unfortunate placement. Is there a way I can disable this behaviour? Or do I just need to squeeze a bunch of glue under that key?

Offline

#269 2009-11-12 08:41:55

haggy
Member
From: Wild southern germany
Registered: 2007-05-22
Posts: 229
Website

Re: xbmc-git AUR package: discussion in here please

dr.zentech wrote:

Ah, i see.... that's an unfortunate placement. Is there a way I can disable this behaviour? Or do I just need to squeeze a bunch of glue under that key?

If you got some glue at your service right now that'll fix the problem for sure. If not, simply hack your Keybindings as described here: http://xbmc.org/wiki/?title=Global_Keyboard

Offline

#270 2009-11-12 14:10:03

dr.zentech
Member
Registered: 2009-05-27
Posts: 25

Re: xbmc-git AUR package: discussion in here please

haggy wrote:
dr.zentech wrote:

Ah, i see.... that's an unfortunate placement. Is there a way I can disable this behaviour? Or do I just need to squeeze a bunch of glue under that key?

If you got some glue at your service right now that'll fix the problem for sure. If not, simply hack your Keybindings as described here: http://xbmc.org/wiki/?title=Global_Keyboard

Haggy to the rescue! (Again).

Thanks smile

Offline

#271 2009-11-12 14:40:26

TigTex
Member
From: Portugal
Registered: 2008-06-19
Posts: 301

Re: xbmc-git AUR package: discussion in here please

I've been testing some stuff and I found that mplayer gives me a better rendering performance with 1080p videos than xbmc (in fact, xbmc won't even give-me 7fps on my p4 3.0ghz while mplayer plays them without lag neither frame dropping).
I know that there is a way to use mplayer instead of the default player, but I wasn't capable of doing that, somehow xbmc still uses the default player.

Do anyone uses mplayer as external xbmc player? And how do you do that?

Thanks

Last edited by TigTex (2009-11-12 14:46:48)


.::. TigTex @ Portugal .::.

Offline

#272 2009-11-12 16:06:02

decaturguy
Member
From: Sweden
Registered: 2006-11-28
Posts: 117

Re: xbmc-git AUR package: discussion in here please

TigTex wrote:

I've been testing some stuff and I found that mplayer gives me a better rendering performance with 1080p videos than xbmc (in fact, xbmc won't even give-me 7fps on my p4 3.0ghz while mplayer plays them without lag neither frame dropping).
I know that there is a way to use mplayer instead of the default player, but I wasn't capable of doing that, somehow xbmc still uses the default player.

Do anyone uses mplayer as external xbmc player? And how do you do that?

Thanks

I don't user external player but here is how to.
http://xbmc.org/wiki/?title=HOW-TO_use_ … a_playback
http://xbmc.org/wiki/?title=Advancedsettings.xml

Offline

#273 2009-11-13 01:23:25

Echo
Member
From: Ohio, United States
Registered: 2006-05-16
Posts: 239

Re: xbmc-git AUR package: discussion in here please

IIRC, when I tried to make that change it wasn't working awhile back. As in xbmc wouldn't recognize the change even when you altered the appropriate config files. If it works now I'll try again...

Offline

#274 2009-11-15 21:29:53

TigTex
Member
From: Portugal
Registered: 2008-06-19
Posts: 301

Re: xbmc-git AUR package: discussion in here please

I am experiencing this http://xbmc.org/forum/showthread.php?t=59031 but in the "official xbmc binary" from community repo and every svn version

The good 100% cpu usage bug probably because I have a old gpu. And it looks that there is a patch to solve this problem (see last page)
Is this patch already in svn tree that we have in AUR?

Last edited by TigTex (2009-11-15 21:42:40)


.::. TigTex @ Portugal .::.

Offline

#275 2009-11-16 08:51:45

haggy
Member
From: Wild southern germany
Registered: 2007-05-22
Posts: 229
Website

Re: xbmc-git AUR package: discussion in here please

TigTex: No, i'm afraid i was 3 revisions too short big_smile Will update ASAP.

Offline

Board footer

Powered by FluxBB