makepanda fails on openSUSE 11.2

$ ./makepanda.py
Elapsed Time: 0 sec
Current directory is not the root of the panda tree.

This is all i get. After some googling i suspect it is a ppython related problen but i don’t know how to fix this.
Any suggestions?

You need to invoke it from the root of the panda tree:

python makepanda/makepanda.py --everything

I’m quite certain that is the first thing i tried. However, it started compiling now(!?). Thanks!

I got makepanda running, it needed some -dev packages which i installed but now i’m at a dead end again. No amount of googling gave any information on this. How to continue?

$ python makepanda/makepanda.py --everything 

-------------------------------------------------------------------
Makepanda Initial Status Report                                    
Makepanda: Compiler: LINUX                                         
Makepanda: Optimize: 3                                             
Makepanda: Keep Pkg: PYTHON ZLIB PNG JPEG TIFF OPENSSL FREETYPE PANDATOOL 
Makepanda: Omit Pkg: MAYA6 MAYA65 MAYA7 MAYA8 MAYA85 MAYA2008 MAYA2009 MAX6 MAX7 MAX8 MAX9 MAX2009 DX8 DX9 VRPN FMODEX OPENAL NVIDIACG FFTW ARTOOLKIT SQUISH ODE DIRECTCAM OPENCV FFMPEG FCOLLADA                                                                                                                                 
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: I cannot locate SDK for FFTW in thirdparty directory.                                                                                                 
Makepanda: I have automatically added this command-line option: --no-fftw                                                                                        
Makepanda: I cannot locate SDK for FMODEX in thirdparty directory.                                                                                               
Makepanda: I have automatically added this command-line option: --no-fmodex                                                                                      
Makepanda: I cannot locate SDK for ARTOOLKIT in thirdparty directory.                                                                                            
Makepanda: I have automatically added this command-line option: --no-artoolkit                                                                                   
Makepanda: I cannot locate SDK for ODE in thirdparty directory.                                                                                                  
Makepanda: I have automatically added this command-line option: --no-ode                                                                                         
Makepanda: I cannot locate SDK for OPENCV in thirdparty directory.                                                                                               
Makepanda: I have automatically added this command-line option: --no-opencv                                                                                      
Makepanda: I cannot locate SDK for FCOLLADA in thirdparty directory.                                                                                             
Makepanda: I have automatically added this command-line option: --no-fcollada                                                                                    
Makepanda: I cannot locate SDK for SQUISH in thirdparty directory.                                                                                               
Makepanda: I have automatically added this command-line option: --no-squish
Makepanda: I cannot locate SDK for NVIDIACG in thirdparty directory.
Makepanda: I have automatically added this command-line option: --no-nvidiacg
Makepanda: I cannot locate SDK for FFMPEG in thirdparty directory.
Makepanda: I have automatically added this command-line option: --no-ffmpeg
Makepanda: I cannot locate SDK for OPENAL in thirdparty directory.
Makepanda: I have automatically added this command-line option: --no-openal
-------------------------------------------------------------------

Generating dependencies...
built/bin/genpycode
Importing code library: libpandaexpress
  Found extensions for class: Ramfile
  Found extensions for class: StreamReader
  Found extensions for class: HTTPChannel
Importing code library: libpanda
  Found extensions for class: NodePath
  Found extensions for class: Mat3
  Found extensions for class: NodePathCollection
  Found extensions for class: VBase3
  Found extensions for class: VBase4
Importing code library: libpandaphysics
Importing code library: libpandafx
Importing code library: libp3direct
  Found extensions for class: CInterval
Importing code library: libpandaskel
Importing code library: libpandaegg
  Found extensions for class: EggPrimitive
  Found extensions for class: EggGroupNode
Importing code library: libpandaode
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/antti/Documents/ohjelmointi/panda3d/panda3d-1.6.2/built/direct/../../direct/src/ffi/jGenPyCode.py", line 94, in <module>
    DoGenPyCode.run()
  File "/home/antti/Documents/ohjelmointi/panda3d/panda3d-1.6.2/built/direct/../../direct/src/ffi/DoGenPyCode.py", line 298, in run
    generateNativeWrappers()
  File "/home/antti/Documents/ohjelmointi/panda3d/panda3d-1.6.2/built/direct/../../direct/src/ffi/DoGenPyCode.py", line 258, in generateNativeWrappers
    Dtool_PreloadDLL(moduleName)
  File "/home/antti/Documents/ohjelmointi/panda3d/panda3d-1.6.2/built/direct/../../direct/src/extensions_native/extension_native_helpers.py", line 69, in Dtool_PreloadDLL
    raise ImportError, message
ImportError: DLL loader cannot find libpandaode.
Storing dependency cache.
Elapsed Time: 2 sec

Ah, you compiled without the thirdparty packages. That works, but I recommend getting the thirdparty tools tarball from the 1.6.2 download page as well, one of these (depending on your architecture):

panda3d.org/download/panda3d … x32.tar.gz
panda3d.org/download/panda3d … x64.tar.gz

This is no longer needed with the latest CVS version of Panda.

However, if you want to compile without all those thirdparty libraries, you should edit makepanda.py, find where it says “libpandaode” and remove it. (It contains the ODE support - but you don’t have it if you compiled it without ODE).

Close, but no cigar.

I got confused, deleted everything and downloaded
panda3d.org/download/panda3d … x64.tar.gz
I did not find one word mentioning the third party packages from panda3d website but i guess this tarball is all that is needed. It compiled nicely.

python makepanda/makepanda.py --everything

-------------------------------------------------------------------
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: I cannot locate SDK for VRPN in thirdparty directory.
Makepanda: I have automatically added this command-line option: --no-vrpn
-------------------------------------------------------------------

Generating dependencies...
Storing dependency cache.

-------------------------------------------------------------------
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: I cannot locate SDK for VRPN in thirdparty directory.
Makepanda: I have automatically added this command-line option: --no-vrpn
Makepanda: Elapsed Time: 2 sec
-------------------------------------------------------------------

To test it, i set the path variables and ran asteroids:

 PATH=$PATH:/home/antti/Documents/ohjelmointi/panda3d-1.6.2/built
export PATH
LD_LIBRARY_PATH=/home/antti/Documents/ohjelmointi/panda3d-1.6.2/built/lib
export LD_LIBRARY_PATH

cd samples
cd asteroids
python Tut-Asteroids.py
Traceback (most recent call last):
  File "Tut-Asteroids.py", line 13, in <module>
    import direct.directbase.DirectStart
ImportError: No module named direct.directbase.DirectStart

It’s not working.
What did i do wrong this time?

Edit: Ah, the path was supposed to be built/bin and not built/ . Still no go

Hm, you shouldn’t mess with PATH / LD_LIBRARY_PATH. Instead, call it with the --installer argument, which will create an rpm that you can install.

I’ll try that. Just thought it’s wise to test it before making the installer.

python makepanda/makepanda.py --installer
Storing dependency cache.
Elapsed Time: 1 sec
Cannot build installer without python

It would seem i’m not alone with this problem.

You dropped the --everything option - don’t. So:

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

This time it went a bit further:
http://nopaste.info/fae17e58fd.html

I’m still a bit puzzled by that one, but I think this hacky workaround will work. Execute as root:

ln -s /home/antti/Documents/ohjelmointi/panda3d-1.6.2/linuxroot /usr/src/packages/BUILDROOT/panda3d-1.6.2-1.x86_64

Installed (but unpackaged) file(s) found:
then empty list of found files. Now this is getting tricky.

--SNIP--
cp built/lib/libxfileegg.a linuxroot/usr/lib64/panda3d/libxfileegg.a
cp built/lib/libp3ptloader.so linuxroot/usr/lib64/panda3d/libp3ptloader.so
cp built/lib/libpstatserver.a linuxroot/usr/lib64/panda3d/libpstatserver.a
chmod -R 555 linuxroot/usr/share/panda3d
rm -rf linuxroot/DEBIAN
rpm -E '%_target_cpu' > built/tmp/architecture.txt
rpmbuild --define '_rpmdir /home/antti/Documents/ohjelmointi/panda3d-1.6.2' -bb panda3d.spec
Processing files: panda3d-1.6.2-1.x86_64
Checking for unpackaged file(s): /usr/lib/rpm/check-files /usr/src/packages/BUILDROOT/panda3d-1.6.2-1.x86_64
error: Installed (but unpackaged) file(s) found:



RPM build errors:
    Installed (but unpackaged) file(s) found:

Storing dependency cache.
Elapsed Time: 26 sec

Oh, wow. Huh.

Sorry, I have no idea. Maybe it freaks out over the symlink hack.
Others at the forums have gotten past these issues in the past though, don’t remember how exactly.

For the record, we’ll be publishing rpms for OpenSUSE with the upcoming 1.7.0 release.

It just dont want to work on my system, i’ll wait for the 1.7 binary release then.