Installation problem on openSUSE 11.2

I compiled panda3d on openSUSE 11.2 using the source, the version being 1.6.2

As far as I know no errors were shown, but when I try to compile the most very first example in the tutorial, I get the following error

Is there a problem with my installation? How do I rectify it?

Yeah, this means that /usr/share/panda3d was not added to the PYTHONPATH. How did you install it? I think that if you use the installer generated by makepanda, it is supposed to write a panda3d.pth file to the Python dist-packages directory.

Yes I used makepanda. How do i add it to the local build and I am a newbie regarding compiling from source can u please guide me

Can you tell me exactly how you compiled and installed Panda3D?

I downloaded Panda3D Complete Source Code from panda3d.org/download.php?pla … =1.6.2&sdk.

Then I made the Makefile an executable
After this I wrote sudo ./Makefile

Eh? What? X_X O_O @_@

I suggest removing Panda3D and installing it any of the normal ways, e.g. by doing

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

(not as root) and installing the resulting .rpm file.

How do I remove it?

Also I tried doing what you said, I got the following errors

What do I do?

I think that 1.7.0 fixes those problems, but not sure. Alternatively you can use installpanda.py to install Panda3D

This is what I got when I trieed installpanda

One more question, I was trying to avoid 1.7 since it was not a stable release, can I go ahead with it

Ah, that can easily be worked around by editing makepandacore.py and putting a “return” statement right as the first line of the DeleteCVS function.

Hi,

I have the same problem in OpenSuse11.3. I tried both the 1.7.0 and the 1.6.2 version.

I want to know if there are any news about an OpenSuse installer?

Hi Again,

I’m really interested in working with Panda on my openSuse 11.3. I’ve tried several times to install panda but I think it is not working out. I’m not a programmer and have little background on this area, I’m designer and a teacher who is planning to introduce this game engine to his lectures an personal works.

What follows are my results. I downloaded Panda3d 1.7.0.

When trying installpanda.py I got.

dRNn1076@linux-pdjo:~/Downloads/panda3d-1.7.0> sudo python makepanda/installpanda.py
Installing Panda3D into /usr                                                    
Storing dependency cache.                                                       
Elapsed Time: 0 sec                                                             
Cannot read built/etc/Config.prc                                                
Build terminated.                   

When I tried makepanda.py I got

dRNn1076@linux-pdjo:~/Downloads/panda3d-1.7.0> python makepanda/makepanda.py --everything --installer
Generating library cache...
WARNING: Could not locate thirdparty package artoolkit, excluding from build
WARNING: Could not locate thirdparty package fcollada, excluding from build
WARNING: Could not locate thirdparty package ffmpeg, excluding from build
WARNING: Could not locate thirdparty package swscale, excluding from build
WARNING: Could not locate thirdparty package fftw, excluding from build
WARNING: Could not locate thirdparty package fmodex, excluding from build
WARNING: Could not locate thirdparty package opengl, excluding from build
WARNING: Could not locate thirdparty package nvidiacg, excluding from build
WARNING: Could not locate thirdparty package ode, excluding from build
WARNING: Could not locate thirdparty package openal, excluding from build
WARNING: Could not locate thirdparty package squish, excluding from build
WARNING: Could not locate thirdparty package vrpn, excluding from build
WARNING: Could not locate thirdparty package openssl, excluding from build
WARNING: Could not locate thirdparty package tinyxml, excluding from build
WARNING: Could not locate thirdparty package python, excluding from build
Storing dependency cache.
Elapsed Time: 0 sec
Could not locate bison!
Build terminated.

When I tried to run an example to know everything is Ok I got:

dRNn1076@linux-pdjo:~/Downloads/panda3d-1.7.0/samples/Boxing-Robots> python Tut-Boxing-Robots.py
DirectStart: Starting the game.
Traceback (most recent call last):
  File "Tut-Boxing-Robots.py", line 7, in <module>
    import direct.directbase.DirectStart
  File "/usr/share/panda3d/direct/directbase/DirectStart.py", line 3, in <module>
    from direct.showbase import ShowBase
  File "/usr/share/panda3d/direct/showbase/ShowBase.py", line 10, in <module>
    from pandac.PandaModules import *
ImportError: No module named pandac.PandaModules

Thank you for any help and guidance on this matter.

You don’t have to use installpanda if you use the --installer flag to makepanda.

But as seen from the makepanda output, you lack important packages (like python-devel, openssl-devel, bison, flex, etc) to build Panda. Install those first.

HI, Thanks for your help.
I did what you mentioned; but I got this:

dRNn1076@linux-pdjo:~/Downloads/panda3d-1.7.0> python makepanda/makepanda.py --everything --installer
Generating library cache...
WARNING: Could not locate thirdparty package fcollada, excluding from build
WARNING: Could not locate thirdparty package fftw, excluding from build
WARNING: Could not locate thirdparty package opengl, excluding from build       
WARNING: Could not locate thirdparty package nvidiacg, excluding from build     
WARNING: Could not locate thirdparty package ode, excluding from build          
WARNING: Could not locate thirdparty package vrpn, excluding from build         
Generating dependencies...                                                      
[  0%] Building C++ object built/tmp/dtoolbase_composite1.o                     
sh: g++: command not found                                                      
Storing dependency cache.                                                       
Elapsed Time: 3 sec                                                                                                  
Build terminated.

I’m absolutely sure I have the fftw, vrpn and opengl (mesa) installed I checked them in YaST.

What can I do now?

You might want to make sure the right opengl headers/libs and the nvidia Cg toolkit is installed, otherwise you won’t have rendering / shaders.

The error is obvious: you don’t have the g++ compiler installed. Install it.

Packages you’re missing:
gcc-c++ libstdc+±devel Mesa-devel

Hi again,
Thanks for your time!
I got this now, after installing the mesa devel, Nvidia CG (directly form Nvidia) and the other stuff you mentioned.

dRNn1076@linux-pdjo:~/Downloads/panda3d-1.7.0> python makepanda/makepanda.py --everything --installer
Generating library cache...
WARNING: Could not locate thirdparty package fcollada, excluding from build
WARNING: Could not locate thirdparty package fftw, excluding from build
WARNING: Could not locate thirdparty package ode, excluding from build
WARNING: Could not locate thirdparty package vrpn, excluding from build
Generating dependencies...
[  0%] Building C++ object built/tmp/dtoolbase_composite1.o
[  0%] Building C++ object built/tmp/dtoolbase_composite2.o
[  0%] Building C object built/tmp/dtoolbase_lookup3.o
[  0%] Building C++ object built/tmp/dtoolbase_indent.o
[  0%] Building C object built/tmp/dtoolutil_gnu_getopt.o
[  1%] Building C object built/tmp/dtoolutil_gnu_getopt1.o
[  1%] Building C++ object built/tmp/dtoolutil_composite.o
[  1%] Building C++ object built/tmp/dtool_dtool.o
[  1%] Linking dynamic library built/lib/libp3dtool.so
[  2%] Building Bison object built/tmp/cppParser_cppBison.o
[  2%] Building C++ object built/tmp/cppParser_composite.o
[  2%] Linking static library built/tmp/libcppParser.a
[  2%] Building C++ object built/tmp/prc_composite.o
[  3%] Building C++ object built/tmp/dconfig_composite.o
[  3%] Building C++ object built/tmp/interrogatedb_composite.o
[  3%] Building C++ object built/tmp/dtoolconfig_pydtool.o
In file included from built/include/dtoolbase.h:98:0,
                 from dtool/metalibs/dtoolconfig/../../src/interrogatedb/integate_interface.h:18,
                 from dtool/metalibs/dtoolconfig/pydtool.cxx:9:
/usr/include/python2.6/pyconfig.h:1070:0: warning: "_POSIX_C_SOURCE" redefine
/usr/include/features.h:158:0: note: this is the location of the previous deftion
/usr/include/python2.6/pyconfig.h:1082:0: warning: "_XOPEN_SOURCE" redefined
/usr/include/features.h:160:0: note: this is the location of the previous deftion
[  3%] Building C++ object built/tmp/dtoolconfig_dtoolconfig.o
[  4%] Linking dynamic library built/lib/libp3dtoolconfig.so
[  4%] Building C++ object built/tmp/pystub_pystub.o
[  4%] Linking dynamic library built/lib/libp3pystub.so
[  4%] Building C++ object built/tmp/interrogate_composite.o
[  4%] Linking executable built/bin/interrogate
[  5%] Building C++ object built/tmp/interrogate_module_interrogate_module.o 
[  5%] Linking executable built/bin/interrogate_module                       
[  5%] Building C++ object built/tmp/parse_file_parse_file.o                 
[  5%] Linking executable built/bin/parse_file                               
[  6%] Building C++ object built/tmp/make-prc-key_makePrcKey.o               
[  6%] Linking executable built/bin/make-prc-key                             
[  6%] Building C++ object built/tmp/test_interrogate_test_interrogate.o     
[  6%] Linking executable built/bin/test_interrogate                         
[  6%] Building C++ object built/tmp/pandabase_pandabase.o                   
[  7%] Building C++ object built/tmp/express_composite1.o                    
In file included from panda/src/express/virtualFileMountMultifile.h:21:0,    
                 from panda/src/express/config_express.cxx:25,               
                 from panda/src/express/express_composite1.cxx:3:            
panda/src/express/multifile.h:103:41: error: ‘STACK’ has not been declared   
In file included from panda/src/express/express_composite1.cxx:19:0:         
panda/src/express/multifile.cxx:806:34: error: ‘STACK’ has not been declared 
panda/src/express/multifile.cxx: In member function ‘bool Multifile::add_signre(X509*, int*, EVP_PKEY*)’:                                                 
panda/src/express/multifile.cxx:812:27: error: cannot convert ‘int*’ to ‘consSTACK*’ for argument ‘1’ to ‘int sk_num(const _STACK*)’                      
panda/src/express/multifile.cxx:814:64: error: cannot convert ‘int*’ to ‘consSTACK*’ for argument ‘1’ to ‘void* sk_value(const _STACK*, int)’             
panda/src/express/multifile.cxx: In member function ‘int Multifile::validate_nature_certificate(int) const’:                                              
panda/src/express/multifile.cxx:1134:3: error: ‘STACK’ was not declared in thscope                                                                        
panda/src/express/multifile.cxx:1134:10: error: ‘stack’ was not declared in t scope                                                                       
Storing dependency cache.
Elapsed Time: 1 min 48 sec

Build terminated.

Hi,

These problems were fixed in the latest CVS version of Panda3D. make a CVS checkout instead of using the 1.7.0 source.

HI,
I downloaded the the CVS from panda3d.cvs.sourceforge.net/viewvc/panda3d/ as a tar file I extrated it and did

dRNn1076@linux-pdjo:~/Downloads/panda3d> sudo python makepanda/makepanda.py --everything --installer

After a while I got:

[ 33%] Building C++ object built/tmp/vision_composite1.o
In file included from panda/src/vision/vision_composite1.cxx:6:0:
panda/src/vision/webcamVideoCursorV4L.cxx:28:23: fatal error: jpegint.h: No such file or directory
compilation terminated.
Storing dependency cache.
Elapsed Time: 34 min 13 sec

Build terminated.

Thanks for any help
[/code]

I’ve just checked in a fix for that. Please update using “cvs up panda/src/vision” or something like that.