You are not logged in.

#1 2008-06-30 04:35:34

ecoffey
Member
Registered: 2005-06-24
Posts: 14

[PKGBUILD] Panda3d 1.5.2 ** Now it works

*** UPDATE ***

Now have a working PKGBUILD / package

PKGBUILD: http://eoinisawesome.com/static/panda3d/PKGBUILD
panda3d.tar.gz: http://eoinisawesome.com/static/panda3d/panda3d.tar.gz

Any and all feedback is definitely welcome.

-----

Hey all,

Updated the PKGBUILD for panda3d in AUR to latest panda3d version.  I can build the package, but I'm having some trouble running the samples.

I stubbed out a simple panda3d.pth file and stuck it in /usr/lib/python2.5/site-packages/ and it points to /opt/panda3d.

Also made sure PATH and LD_LIBRARY_PATH have /opt/panda3d/bin and /opt/panda3d/lib.

When I run the asteriods sample I get this:

$ python Tut-Asteroids.py 
DirectStart: Starting the game.
Traceback (most recent call last):
  File "Tut-Asteroids.py", line 13, in <module>
    import direct.directbase.DirectStart
  File "/opt/panda3d/direct/src/directbase/DirectStart.py", line 3, in <module>
    from direct.showbase import ShowBase
  File "/opt/panda3d/direct/src/showbase/ShowBase.py", line 10, in <module>
    from pandac.PandaModules import *
  File "/opt/panda3d/pandac/PandaModules.py", line 1, in <module>
    from libpandaexpressModules import *
  File "/opt/panda3d/pandac/libpandaexpressModules.py", line 1, in <module>
    from extension_native_helpers import *
  File "/opt/panda3d/pandac/extension_native_helpers.py", line 38, in <module>
    from libpandaexpress import *
ImportError: No module named libpandaexpress

Below is the PKGBUILD and accompying files.  I'd really like to get this sorted out since it'd be nice to have a updated panda3d package.

PKGBUILD:

pkgname=panda3d
pkgver=1.5.2
pkgrel=1
pkgdesc="3D engine with Python bindings"
url="http://www.panda3d.org"
depends=('python' 'freetype2' 'mesa' 'libtiff' 'openssl' 'libpng')
source=(http://www.panda3d.org/download/panda3d-$pkgver/panda3d-$pkgver.tar.gz panda3d.profile gcc-4.3-missing-common-declarations.diff)
md5sums=('fe0abf81317381e9d43dc54615e1c33e' '17c522241e60779aa8e50d532bb94e13' '0211aad6f17a8fa8866764a070c37f48')
arch=('i686')
license='unknown'

build() {
  mkdir -p $startdir/pkg/opt/panda3d
  cd $startdir/src/$pkgname-$pkgver
  patch -p0 < $startdir/src/gcc-4.3-missing-common-declarations.diff
  makepanda/makepanda.py --everything
  cp built/* $startdir/pkg/opt/panda3d -r
  cp models $startdir/pkg/opt/panda3d -r
  cp samples $startdir/pkg/opt/panda3d -r
  cp direct/src $startdir/pkg/opt/panda3d/direct -r
  install -D -m755 $startdir/src/panda3d.profile $startdir/pkg/etc/profile.d/panda3d.sh
}

gcc-4.3-missing-common-declarations.diff:

--- dtool/src/dtoolbase/dtoolbase.h    2007-04-18 15:51:36.000000000 -0600
+++ dtool/src/dtoolbase/dtoolbase.h    2008-06-29 20:24:39.000000000 -0600
@@ -92,6 +92,11 @@
 #include <assert.h>
 
 #ifdef __GNUC__
+// Make sure that we get the proper declarations for memset, and other
+// basic stuff
+#include <string.h>
+#include <stdlib.h>
+#include <limits.h>
 // Large file >2GB support
 // this needs be be before systypes.h and other C headers
 #define _FILE_OFFSET_BITS 64

panda3d.profile:

export PATH=$PATH:/opt/panda3d/bin 
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/panda3d/lib

Last edited by ecoffey (2008-07-02 04:26:49)

Offline

#2 2008-07-01 16:41:56

ecoffey
Member
Registered: 2005-06-24
Posts: 14

Re: [PKGBUILD] Panda3d 1.5.2 ** Now it works

I unfortunately have yet to solve the problem either. I tried a simple:

echo '/opt/panda3d/lib' >> /etc/ld.so.conf && ldconfig

but that didn't help either.

Offline

#3 2008-07-01 18:21:48

sim4lin
Member
Registered: 2008-03-09
Posts: 32

Re: [PKGBUILD] Panda3d 1.5.2 ** Now it works

Hello,

Your "panda3d.pth" should also declare the panda3d lib directory:

panda3d.pth =

/opt/panda3d
/opt/panda3d/lib

ASRock N68C-GS FX motherboard
AMD X2 240 @ 2.8G
Nvidia 9500GT @ 1G
Kingston 800Mhz DDR2 @ 4G

Offline

#4 2008-07-02 03:07:25

ecoffey
Member
Registered: 2005-06-24
Posts: 14

Re: [PKGBUILD] Panda3d 1.5.2 ** Now it works

sim4lin wrote:

Hello,

Your "panda3d.pth" should also declare the panda3d lib directory:

panda3d.pth =

/opt/panda3d
/opt/panda3d/lib

Thanks!  That did it.  I now officially have a working panda3d-1.5.2 package (working being I can run the samples ;-)).  Contacting the AUR maintainer, and I'll upload the pkg.tar.gz and the PKGBUILD to my site in a bit here.

Offline

#5 2008-08-25 20:53:44

birdspider
Member
From: Vienna
Registered: 2007-12-29
Posts: 30
Website

Re: [PKGBUILD] Panda3d 1.5.2 ** Now it works

Hi,

I had to reboot after the install to get it running.

Offline

Board footer

Powered by FluxBB