LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: crazythink

自己编译的realplayer

[复制链接]
发表于 2006-10-17 18:30:17 | 显示全部楼层
./PKGBUILD: line 63: /home/klan/realplayer/src/realplay-10.0.4/build/bin/build: 没有那个文件或目录

总是这样,编译不成功
回复 支持 反对

使用道具 举报

发表于 2007-5-25 15:20:26 | 显示全部楼层
請問下載了這個source之後如何編譯?我現在有一個helix的編譯環境,是否需要把這個source合併到helix的開發目錄中?
回复 支持 反对

使用道具 举报

发表于 2007-5-25 20:28:40 | 显示全部楼层
不用吧。找pkgbuild文件,我现在用的是10.0.8;很好用;
回复 支持 反对

使用道具 举报

发表于 2007-8-27 15:10:54 | 显示全部楼层
我想问一下,如果我从源码编译好以后,把相应的.so文件copy到/usr/lib/mozilla/plugins目录下,mozilla是不是就可以支持real插件了?
回复 支持 反对

使用道具 举报

发表于 2007-10-13 11:40:34 | 显示全部楼层

10.0.9的pkgbuild

[PHP]# $Id: PKGBUILD,v 1.26 2005/04/21 08:16:31 jgc Exp $
# Maintainer: crazythink

pkgname=realplayer
pkgver=10.0.9
pkgrel=1
url="http://www.helixplayer.org"
pkgdesc="Real Media Player."
depends=('gtk2' 'glib2' 'pango' 'alsa-oss' 'libtheora' 'libogg' 'libvorbis')
makedepends=('python')
arch=('i686')
#source=(realplay-$pkgver-source.tar.bz2)
source=(https://helixcommunity.org/frs/download.php/2480/realplay-10.0.9-source.tar.bz2\
        installer-naming.patch\
        realplayer-10.0.4-sem_t.patch\
        realplayer-10.0.4-cjk-hack.patch\
        realplayer-10.0.4-oss-use-aoss.patch\
        realplayer-10.0.4-disable-asm.patch\
        realplayer-10.0.4-sysinfo-gcc4-i586-fix.patch\
        realplayer-10.0.5-gcc4-fix.patch\
        buildrc)
md5sums=()

build() {
  SRCDIR=$startdir/src/realplay-$pkgver
  PKGDIR=$startdir/pkg

  cd $SRCDIR
  #fix 10.0.9 build error
  cp -ru distribution/linux-2.2-libc6-gcc32-i586/* .
  #adjust strange naming for helixplayer tarball
  patch -p1<../installer-naming.patch

  #fixes sem_t based issues
  patch -p0<../realplayer-10.0.4-sem_t.patch
  #fixes cjk issues
  patch -p1<../realplayer-10.0.4-cjk-hack.patch

  #dirty hack,, use alsa oss emulation
  patch -p1<../realplayer-10.0.4-oss-use-aoss.patch

  #fixes missing libstdc++ issues
#  patch -p1<../realplayer-10.0.4-cxx-link-fix.patch

  #disable asm code ...
  patch -p1<../realplayer-10.0.4-disable-asm.patch

  #gcc4 fixes
  patch -p1<../realplayer-10.0.4-sysinfo-gcc4-i586-fix.patch
  patch -p0<../realplayer-10.0.5-gcc4-fix.patch
  #fixes icon name in .desktop file
        sed -i -e 's:realplay.png:realplay:' ./player/installer/common/realplay.desktop
       
  cp ../buildrc .

  export BUILDRC="$SRCDIR/buildrc"
  export BUILD_ROOT="$SRCDIR/build"
  #unset CFLAGS
  #unset CXXFLAGS
  #unset LDFLAGS
  #now we can begin the build
  $SRCDIR/build/bin/build.py -m realplay_gtk_release -t release -k -p green -P helix-client-all-defines player_all || return 1

  #install
  mkdir -p $PKGDIR/opt/realplayer
  tar -jxf $SRCDIR/release/realplayer.tar.bz2 -C $PKGDIR/opt/realplayer

  # Remove setup script as it's dangerous, and the directory if it's empty
  rm -fr $PKGDIR/opt/realplayer/Bin

  #mozilla plugins
  mkdir -p $PKGDIR/opt/mozilla-plugins
  ln -sf /opt/realplayer/mozilla/nphelix.so $PKGDIR/opt/mozilla-plugins

  #Language resources
  cd $PKGDIR/opt/realplayer/share/locale
  for LC in *; do
    mkdir -p $PKGDIR/usr/share/locale/${LC}/LC_MESSAGES
    cd $PKGDIR/usr/share/locale/${LC}/LC_MESSAGES
    ln -sf /opt/realplayer/share/locale/${LC}/player.mo realplay.mo
    ln -sf /opt/realplayer/share/locale/${LC}/widget.mo libgtkhx.mo
  done

  #icons
  for res in 16 192 32 48; do
    mkdir -p $PKGDIR/usr/share/icons/hicolor/${res}x${res}/apps
    cp $SRCDIR/player/app/gtk/res/icons/realplay/realplay_${res}x${res}.png $PKGDIR/usr/share/icons/hicolor/${res}x${res}/apps/realplay.png
  done

  #menu
  mkdir  -p $PKGDIR/usr/share/applications
  cp $SRCDIR/player/installer/common/realplay.desktop $PKGDIR/usr/share/applications

  mkdir  -p $PKGDIR/usr/bin
  cd $PKGDIR/usr/bin
  ln -sf /opt/realplayer/realplay .
}
[/PHP]
注:编译需要/usr/lib/libvorbis.a文件。默认arch不提供了。一并附上。
先把libvorbis.a cp 到/usr/lib/去。
然后,解开realplay-10.0.9.tar.gz, makepkg 即可。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2007-10-14 00:23:22 | 显示全部楼层
==> ERROR: installer-naming.patch was not found in the build directory and is not a proper URL.
==> Aborting...
--------------------
这样怎么么办?附件怎么用的?
回复 支持 反对

使用道具 举报

发表于 2007-10-14 00:40:39 | 显示全部楼层
附件是补丁文件阿。
realplay的source到这里去下载。
https://helixcommunity.org/projects/player/files/download/2480
回复 支持 反对

使用道具 举报

发表于 2007-10-14 11:37:14 | 显示全部楼层
PKGBUILD: line 24: 10734 Segmentation fault      $SRCDIR/build/bin/build.py -m realplay_gtk_release -t release -k -p green -P helix-client-all-defines player_all
==> ERROR: Build Failed.  Aborting...
=============
还是不行。是用附件的PKGBUILD啊。
回复 支持 反对

使用道具 举报

发表于 2007-10-14 11:48:07 | 显示全部楼层
得。直接共享编译好的吧。
http://home.ustc.edu.cn/~yghustc ... 9-2-i686.pkg.tar.gz
回复 支持 反对

使用道具 举报

发表于 2007-10-14 13:10:55 | 显示全部楼层
唔。。。我这边也编译不过,还是用编译好的算了。。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表