Installation fails on opensuse 11.1 x86_64

Hi there,
i was going to give panda a try, did not work for me :frowning:

First: all the download links for the installer are broken for opensuse 11.1

So, downloaded panda3d-1.6.2-linux64.tar.gz, followed the instructions in
doc/INSTALL-MK. Build seems to work ok, but no ppython is created in built/bin

panda3d-1.6.2> makepanda/makepanda.py --everything --threads 2

-------------------------------------------------------------------
Makepanda Initial Status Report
Makepanda: Compiler: LINUX
Makepanda: Optimize: 3
Makepanda: Keep Pkg: PYTHON ZLIB PNG JPEG TIFF FMODEX OPENAL NVIDIACG OPENSSL 
FREETYPE FFTW ARTOOLKIT SQUISH ODE OPENCV FFMPEG FCOLLADA PANDATOOL
Makepanda: Omit Pkg: MAYA6 MAYA65 MAYA7 MAYA8 MAYA85 MAYA2008 MAYA2009 MAX6 
MAX7 MAX8 MAX9 MAX2009 DX8 DX9 VRPN DIRECTCAM
Makepanda: Verbose vs. Quiet Level: 1
Makepanda: Don't generate API reference manual
Makepanda: Version ID: 1.6.2
Makepanda: DX8 only supported on windows yet
Makepanda: I have automatically added this command-line option: --no-dx8
Makepanda: DX9 only supported on windows yet
Makepanda: I have automatically added this command-line option: --no-dx9
Makepanda: DIRECTCAM only supported on windows yet
Makepanda: I have automatically added this command-line option: --no-directcam
Makepanda: I cannot locate SDK for MAYA6
Makepanda: I have automatically added this command-line option: --no-maya6
Makepanda: I cannot locate SDK for MAYA65
Makepanda: I have automatically added this command-line option: --no-maya65
Makepanda: I cannot locate SDK for MAYA7
Makepanda: I have automatically added this command-line option: --no-maya7
Makepanda: I cannot locate SDK for MAYA8
Makepanda: I have automatically added this command-line option: --no-maya8
Makepanda: I cannot locate SDK for MAYA85
Makepanda: I have automatically added this command-line option: --no-maya85
Makepanda: I cannot locate SDK for MAYA2008
Makepanda: I have automatically added this command-line option: --no-maya2008
Makepanda: I cannot locate SDK for MAYA2009
Makepanda: I have automatically added this command-line option: --no-maya2009
Makepanda: MAX6 only supported on windows yet
Makepanda: I have automatically added this command-line option: --no-max6
Makepanda: MAX7 only supported on windows yet
Makepanda: I have automatically added this command-line option: --no-max7
Makepanda: MAX8 only supported on windows yet
Makepanda: I have automatically added this command-line option: --no-max8
Makepanda: MAX9 only supported on windows yet
Makepanda: I have automatically added this command-line option: --no-max9
Makepanda: MAX2009 only supported on windows yet
Makepanda: I have automatically added this command-line option: --no-max2009
Makepanda: Caution: the built/lib directory is not in LD_LIBRARY_PATH
Makepanda: or /etc/ld.so.conf.  You must add it before using panda.
Makepanda: I cannot locate SDK for VRPN in thirdparty directory.
Makepanda: I have automatically added this command-line option: --no-vrpn
-------------------------------------------------------------------

Generating dependencies...
g++ -ftemplate-depth-30 -fPIC -c -o built/tmp/pgui_composite.o -
I"/usr/include/python2.6" -I"built/tmp" -I"built/include" -Ipanda/src/pgui -O2 
-DBUILDING_PANDA panda/src/pgui/pgui_composite.cxx

[...]


-------------------------------------------------------------------
Makepanda Final Status Report
Makepanda: Compiler: LINUX
Makepanda: Optimize: 3
Makepanda: Keep Pkg: PYTHON ZLIB PNG JPEG TIFF FMODEX OPENAL NVIDIACG OPENSSL 
FREETYPE FFTW ARTOOLKIT SQUISH ODE OPENCV FFMPEG FCOLLADA PANDATOOL
Makepanda: Omit Pkg: MAYA6 MAYA65 MAYA7 MAYA8 MAYA85 MAYA2008 MAYA2009 MAX6 
MAX7 MAX8 MAX9 MAX2009 DX8 DX9 VRPN DIRECTCAM
Makepanda: Verbose vs. Quiet Level: 1
Makepanda: Don't generate API reference manual
Makepanda: Version ID: 1.6.2
Makepanda: DX8 only supported on windows yet
Makepanda: I have automatically added this command-line option: --no-dx8
Makepanda: DX9 only supported on windows yet
Makepanda: I have automatically added this command-line option: --no-dx9
Makepanda: DIRECTCAM only supported on windows yet
Makepanda: I have automatically added this command-line option: --no-directcam
Makepanda: I cannot locate SDK for MAYA6
Makepanda: I have automatically added this command-line option: --no-maya6
Makepanda: I cannot locate SDK for MAYA65
Makepanda: I have automatically added this command-line option: --no-maya65
Makepanda: I cannot locate SDK for MAYA7
Makepanda: I have automatically added this command-line option: --no-maya7
Makepanda: I cannot locate SDK for MAYA8
Makepanda: I have automatically added this command-line option: --no-maya8
Makepanda: I cannot locate SDK for MAYA85
Makepanda: I have automatically added this command-line option: --no-maya85
Makepanda: I cannot locate SDK for MAYA2008
Makepanda: I have automatically added this command-line option: --no-maya2008
Makepanda: I cannot locate SDK for MAYA2009
Makepanda: I have automatically added this command-line option: --no-maya2009
Makepanda: MAX6 only supported on windows yet
Makepanda: I have automatically added this command-line option: --no-max6
Makepanda: MAX7 only supported on windows yet
Makepanda: I have automatically added this command-line option: --no-max7
Makepanda: MAX8 only supported on windows yet
Makepanda: I have automatically added this command-line option: --no-max8
Makepanda: MAX9 only supported on windows yet
Makepanda: I have automatically added this command-line option: --no-max9
Makepanda: MAX2009 only supported on windows yet
Makepanda: I have automatically added this command-line option: --no-max2009
Makepanda: Caution: the built/lib directory is not in LD_LIBRARY_PATH
Makepanda: or /etc/ld.so.conf.  You must add it before using panda.
Makepanda: I cannot locate SDK for VRPN in thirdparty directory.
Makepanda: I have automatically added this command-line option: --no-vrpn
Makepanda: Elapsed Time: 10 min 54 sec
-------------------------------------------------------------------

panda3d-1.6.2> export PATH=`pwd`/built/bin/:$PATH
panda3d-1.6.2> export LD_LIBRARY_PATH=`pwd`/built/lib/
panda3d-1.6.2> cd samples/Asteroids
panda3d-1.6.2/samples/Asteroids> ppython Tut-Asteroids.py
bash: ppython: command not found
panda3d-1.6.2> ls -m built/bin/
apply_patch, bam2egg, bam-info, bin2c, build_patch, check_adler, check_crc, 
check_md5, dae2egg, dxf2egg, dxf-points, egg2bam, egg2c,
egg2dxf, egg2flt, egg2x, eggcacher, egg-crop, egg-make-tube, egg-mkfont, egg-
optchar, egg-palettize, egg-qtess, egg-rename,
egg-retarget-anim, egg-texture-cards, egg-topstrip, egg-trans, flt2egg, 
fltcopy, flt-info, flt-trans, genpycode, image-info,
image-resize, image-trans, interrogate, interrogate_module, lwo2egg, lwo-scan, 
make-prc-key, multify, p3dcparse, packpanda, parse_file,
pdecrypt, pencrypt, pstats, punzip, pview, pzip, show_ddb, softcvs, 
test_interrogate, text-stats, vrml2egg, vrml-trans, x2egg, x-trans

Don’t even try to set PATH or LD_LIBRARY_PATH manually.
Instead, use this:

python makepanda/makepanda.py --everything --installer

That will generate a .rpm file in the same directory which you can install.

Thanks for the answer - maybe you should put that in the docs.

Had a small problem building the rpm, the lib/-dir was not correctly specified. I replaced the line 3684

/usr/lib

in makepanda/makepanda.py with

/usr/%_lib

That macro resolves into “lib64” on x86-64 system (afaik this is std rpm macro and not a suse special)

Build went fine, ended up with a panda3d-1.6.2-1.x86_64.rpm which installed without problems, samples also work.

Thanks, I’ve applied the change to CVS.