You are not logged in.
Hi.
I want to try out O3D on Linux, but currently I'm unable to make it work. I'm on x86_64.
Instead of scrapping the PKGBUILD or submitting it to AUR, I post it here, hoping that it can be a starting point for someone else.
This is not a working nor finished PKGBUILD.
If anyone makes O3D work on Arch, it would be fun to hear about it.
http://code.google.com/apis/o3d/
http://code.google.com/p/o3d/wiki/HowToBuild
---
# Contributor: Alexander Rødseth <rodseth@gmail.com>
pkgname=o3d-svn
pkgver=32
pkgrel=1
pkgdesc="Hardware accelerated 3D in the browser with Javascript (very experimental)"
arch=('x86_64')
url="http://code.google.com/p/o3d/"
license=('GPL2')
depends=('python>=2.4' 'gcc>=4.2' 'libxt' 'mesa' 'java-environment' 'depot_tools-svn')
makedepends=('subversion', 'libpthread-stubs')
provides=('o3d')
conflicts=('o3d')
_svntrunk=http://o3d.googlecode.com/svn/trunk/
_svnmod=o3d
build() {
cd ${srcdir}
# Checking out from SVN
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
gclient config http://o3d.googlecode.com/svn/trunk/googleclient
gclient sync
cd googleclient/o3d
./scons MODE=opt-linux
# libnpo3dautoplugin.so needs to be copied to /usr/lib/mozilla/plugins
# mkdir -p $pkgdir/usr/lib/mozilla/plugins
# libGLEW.so.1.5, libCg.so and libCgGL.so needs to be found by Firefox
# Putting them in a directory and adding that to the LD_LIBRARY_PATH by
# creating /etc/profile.d/o3d.sh is a possibility
msg "O3D does not currently work on 64-bit Linux"
return 1
}
# vim:set ts=2 sw=2 et:
---
I know that O3D is only supposed to run on 32-bit Linux, not 64-bit. However, I am hoping this PKGBUILD could still be a starting point for the 32-bit version or a "bin32"-version for x86_64.
Last edited by trontonic (2009-04-29 17:54:41)
Offline