Help! Installation problems!

:smiley: I found them in 10 minutes… :wink:

on rpm.pbone.net I found an python-numeric-devel, tried to install that, It included the libpython-devel, just the one I couldn’t find!
It’s now building…

Tell you what: save those RPMs from pbone. If you succeed, you can send me the RPMs, and I can build a mandriva distribution.

:smiley: Great! Wise decision :wink: !

Now, makepanda runs fine, but it gives the following error:

When I still try to run ppython I get the following error:
[The weird thing is that this error is the same as I got before (see top of topic) with the SuSe rpm.]

[root@localhost GreetingCard]# ppython GreetingCard.py
DirectStart: Starting the game.
Traceback (most recent call last):
  File "GreetingCard.py", line 1, in ?
    import direct.directbase.DirectStart
  File "/usr/src/packages/BUILD/panda3d-1.3.2/BUILDROOT/usr/share/panda3d/direct/src/directbase/DirectStart.py", line 3, in ?
  File "/usr/src/packages/BUILD/panda3d-1.3.2/BUILDROOT/usr/share/panda3d/direct/src/showbase/ShowBase.py", line 10, in ?
  File "/usr/share/panda3d/pandac/PandaModules.py", line 1, in ?
    from libpandaexpressModules import *
  File "/usr/share/panda3d/pandac/libpandaexpressModules.py", line 1, in ?
    from extension_native_helpers import *
  File "/usr/share/panda3d/pandac/extension_native_helpers.py", line 20, in ?
    from libpandaexpress import *
ImportError: /usr/lib/python2.4/lib-dynload/libpandaexpress.so: undefined symbol: PyUnicodeUCS4_FromWideChar

Makepanda didn’t finish. It got a compiler error. When you run ppython, I don’t know what you’re running — probably, the old SuSE version you installed earlier.

It looks like you have a compiler error. Maybe an old version of the compiler? I don’t know.

Hmm, could be… I have gcc 3.3…
I’ll try if there’s any newer version of gcc at pbone…

EDIT: yep;) makepanda running…

nop… same error…
my gcc version:

[root@localhost panda3d-1.3.2]# gcc -v
Using built-in specs.
Target: i586-mandriva-linux-gnu
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --enable-languages=c,c++,ada,fortran,objc,obj-c++,java --host=i586-mandriva-linux-gnu --with-cpu=generic --with-system-zlib --enable-long-long --enable-__cxa_atexit --enable-clocale=gnu --disable-libunwind-exceptions --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --enable-gtk-cairo --enable-ssp --disable-libssp
Thread model: posix
gcc version 4.1.1 20060724 (prerelease) (4.1.1-3mdk)

I see what’s going on. You had an earlier error message - “cannot find evp.h”, or something like that. You need to always post all of the error messages.

The problem is that you don’t have the SSH development files.

SSH development files… where can I find them?
I installed OpenSSL and OpenSSH, but still same result.
By the way, here’s my full error message:

[root@localhost panda3d-1.3.2]# makepanda/./makepanda.py --everything
Checking for MAYA6
Checking for MAYA65
Checking for MAYA7

-------------------------------------------------------------------
Makepanda Initial Status Report
Makepanda: Compiler: LINUX
Makepanda: Optimize: 3
Makepanda: Keep Pkg: PYTHON ZLIB PNG JPEG TIFF VRPN FMODEX NVIDIACG NSPR OPENSSL FREETYPE FFTW BISON FLEX FFMPEG PANDATOOL PANDAAPP
Makepanda: Omit Pkg: MILES MAYA6 MAYA65 MAYA7 MAX6 MAX7 MAX8 DX8 DX9
Makepanda: Verbose vs. Quiet Level: 1
Makepanda: Don't generate API reference manual
Makepanda: Version ID: 1.3.0
Makepanda: MAYA6 not yet supported under linux
Makepanda: I have automatically added this command-line option: --no-maya6
Makepanda: MAYA65 not yet supported under linux
Makepanda: I have automatically added this command-line option: --no-maya65
Makepanda: MAYA7 not yet supported under linux
Makepanda: I have automatically added this command-line option: --no-maya7
Makepanda: MAX6 not yet supported under linux
Makepanda: I have automatically added this command-line option: --no-max6
Makepanda: MAX7 not yet supported under linux
Makepanda: I have automatically added this command-line option: --no-max7
Makepanda: MAX8 not yet supported under linux
Makepanda: I have automatically added this command-line option: --no-max8
Makepanda: makepanda currently does not support miles sound system
Makepanda: I have automatically added this command-line option: --no-miles
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.
-------------------------------------------------------------------

Generating dependencies...
g++ -ftemplate-depth-30 -fPIC -c -o built/tmp/prc_composite.o -I"/usr/include/python2.4" -Ithirdparty/linux-libs-a/nspr/include -Ibuilt/tmp -Idtool/src/prc -Ibuilt/include -O2 -DBUILDING_DTOOLCONFIG dtool/src/prc/prc_composite.cxx
In file included from dtool/src/prc/configPage.cxx:23,
                 from dtool/src/prc/prc_composite1.cxx:4,
                 from dtool/src/prc/prc_composite.cxx:1:
dtool/src/prc/prcKeyRegistry.h:31:25: error: openssl/evp.h: No such file or directory
In file included from dtool/src/prc/prc_composite2.cxx:11,
                 from dtool/src/prc/prc_composite.cxx:2:
dtool/src/prc/prcKeyRegistry.cxx:28:25: error: openssl/pem.h: No such file or directory
dtool/src/prc/prcKeyRegistry.h:60: error: ‘EVP_PKEY’ has not been declared
dtool/src/prc/prcKeyRegistry.h:63: error: ISO C++ forbids declaration of ‘EVP_PKEY’ with no type
dtool/src/prc/prcKeyRegistry.h:63: error: expected ‘;’ before ‘*’ token
dtool/src/prc/prcKeyRegistry.h:73: error: ISO C++ forbids declaration of ‘EVP_PKEY’ with no type
dtool/src/prc/prcKeyRegistry.h:73: error: expected ‘;’ before ‘*’ token
dtool/src/prc/configPage.cxx: In member function ‘bool ConfigPage::read_prc(std::istream&)’:
dtool/src/prc/configPage.cxx:142: error: expected type-specifier before ‘EVP_MD_CTX’
dtool/src/prc/configPage.cxx:142: error: expected `;' before ‘EVP_MD_CTX’
dtool/src/prc/configPage.cxx:144: error: ‘EVP_MD_CTX’ was not declared in this scope
dtool/src/prc/configPage.cxx:144: error: expected primary-expression before ‘)’ token
dtool/src/prc/configPage.cxx:144: error: ‘EVP_sha1’ was not declared in this scope
dtool/src/prc/configPage.cxx:144: error: ‘EVP_VerifyInit’ was not declared in this scope
dtool/src/prc/configPage.cxx:203: error: ‘EVP_PKEY’ was not declared in this scope
dtool/src/prc/configPage.cxx:203: error: ‘pkey’ was not declared in this scope
dtool/src/prc/configPage.cxx:203: error: ‘class PrcKeyRegistry’ has no member named ‘get_key’
dtool/src/prc/configPage.cxx:204: error: expected primary-expression before ‘)’ token
dtool/src/prc/configPage.cxx:204: error: expected `)' before ‘__null’
dtool/src/prc/configPage.cxx:206: error: expected primary-expression before ‘)’ token
dtool/src/prc/configPage.cxx:208: error: ‘EVP_VerifyFinal’ was not declared in this scope
dtool/src/prc/configPage.cxx:222: error: expected primary-expression before ‘)’ token
dtool/src/prc/configPage.cxx:222: error: expected `;' before ‘_md_ctx’
dtool/src/prc/configPage.cxx: In member function ‘void ConfigPage::read_prc_line(const std::string&)’:
dtool/src/prc/configPage.cxx:387: error: ‘EVP_MD_CTX’ was not declared in this scope
dtool/src/prc/configPage.cxx:387: error: expected primary-expression before ‘)’ token
dtool/src/prc/configPage.cxx:387: error: ‘EVP_VerifyUpdate’ was not declared in this scope
dtool/src/prc/prcKeyRegistry.cxx: In member function ‘void PrcKeyRegistry::record_keys(const PrcKeyRegistry::KeyDef*, int)’:
dtool/src/prc/prcKeyRegistry.cxx:74: error: ‘class PrcKeyRegistry::Key’ has no member named ‘_pkey’
dtool/src/prc/prcKeyRegistry.cxx:79: error: ‘class PrcKeyRegistry::Key’ has no member named ‘_pkey’
dtool/src/prc/prcKeyRegistry.cxx:79: error: ‘EVP_PKEY’ was not declared in this scope
dtool/src/prc/prcKeyRegistry.cxx:79: error: expected primary-expression before ‘)’ token
dtool/src/prc/prcKeyRegistry.cxx:79: error: expected `)' before ‘__null’
dtool/src/prc/prcKeyRegistry.cxx:80: error: ‘class PrcKeyRegistry::Key’ has no member named ‘_pkey’
dtool/src/prc/prcKeyRegistry.cxx:80: error: ‘EVP_PKEY_free’ was not declared in this scope
dtool/src/prc/prcKeyRegistry.cxx:81: error: ‘class PrcKeyRegistry::Key’ has no member named ‘_pkey’
dtool/src/prc/prcKeyRegistry.cxx: At global scope:
dtool/src/prc/prcKeyRegistry.cxx:100: error: ‘EVP_PKEY’ has not been declared
dtool/src/prc/prcKeyRegistry.cxx: In member function ‘void PrcKeyRegistry::set_key(int, int*, time_t)’:
dtool/src/prc/prcKeyRegistry.cxx:105: error: ‘class PrcKeyRegistry::Key’ has no member named ‘_pkey’
dtool/src/prc/prcKeyRegistry.cxx:110: error: ‘class PrcKeyRegistry::Key’ has no member named ‘_pkey’
dtool/src/prc/prcKeyRegistry.cxx:110: error: ‘EVP_PKEY’ was not declared in this scope
dtool/src/prc/prcKeyRegistry.cxx:110: error: expected primary-expression before ‘)’ token
dtool/src/prc/prcKeyRegistry.cxx:110: error: expected `)' before ‘__null’
dtool/src/prc/prcKeyRegistry.cxx:111: error: ‘class PrcKeyRegistry::Key’ has no member named ‘_pkey’
dtool/src/prc/prcKeyRegistry.cxx:111: error: ‘EVP_PKEY_free’ was not declared in this scope
dtool/src/prc/prcKeyRegistry.cxx:112: error: ‘class PrcKeyRegistry::Key’ has no member named ‘_pkey’
dtool/src/prc/prcKeyRegistry.cxx:114: error: ‘class PrcKeyRegistry::Key’ has no member named ‘_pkey’
dtool/src/prc/prcKeyRegistry.cxx: At global scope:
dtool/src/prc/prcKeyRegistry.cxx:137: error: expected constructor, destructor, or type conversion before ‘*’ token
Storing dependency cache.
Elapsed Time: 8 sec

[root@localhost panda3d-1.3.2]#  

Not a clue.

But you’re looking for the package that contains the header file “evp.h”. Maybe the search engines can search for a particular file in an RPM?

In Fedora there are packages called something-devel that contain these include files. Perhaps there is something similar for your distro. So I would look for openssh-devel and openssl-devel.

OK, found it.
I searched for RPMS containing evp.h and it found libopenssl-devel [sic, ssl, not ssh]. Now it’s building… (sloooooow)
As soon as I finish building and testing I’ll send the files to you, Josh.

EDIT: after a looong, loooooooong build it said it couldn’t find png.h… I’m now downloading that one (libpng3-devel). I hope this will be the last package it can’t find…
I downloaded libjpeg-devel and libtiff-devel as well, just to be sure…

Nop…
Now this error… I can’t find out what’s missing right now…

(...)
g++ -shared -o built/lib/libp3glstuff.so -Lbuilt/lib -L/usr/X11R6/lib built/tmp/glstuff_glpure.o -lpanda -lpandafx -lpandaexpress -lp3dtoolconfig -lp3dtool -Lthirdparty/nvidiacg/lib  -lCgGL -lCg -Lthirdparty/linux-libs-a/nspr/lib -lpandanspr4 -lGL -lGLU
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
Storing dependency cache.
Elapsed Time: 11 min 9 sec

What am I missing right now?
And does anyone have a list of all the libraries needed in Panda3D?

You’re missing the OpenGL developer files. You’ll need GL and GLU. I think that on fedora, the package name is something along the lines of libmesagl and libmesaglu. I could be wrong about that. Of course, you could also search for gl.h and glu.h.

I warned you that you were only 5% of the way there! :slight_smile: But I think you’re closer to 70% now, so you’ve made a lot of progress.

As for a complete list, I’m afraid not. Yesterday, when you asked about libpng/libjpeg/libtiff, I tried to see if there was anything else you were missing. I couldn’t find anything - but apparently, I forgot that libGL and libGLU might not be standard under linux. I’m sure there are other things that I’m forgetting.

Youpee! Succesfully built! :smiley:
I have to go right now, but tomorrow I’ll test it and send the RPMS to you, Josh.
Thanks for all your help!

It installed fine, but when I run GreetingCard with ppython, I get an error:

Traceback (most recent call last):
  File "GreetingCard.py", line 1, in ?
    import direct.directbase.DirectStart
ImportError: No module named direct.directbase.DirectStart

The panda3d lib and bin directories are in my PATH and ld.so.conf…

My hunch is that you might have missed an important piece of documentation. If you look in the “doc” directory under “INSTALL-MK”, it tells you how to install panda. There are some steps in there that you probably missed.

OK, I rebuilt Panda3d… same error.
Now, I added the /usr/local/panda3d, /usr/local/panda3d/lib, /usr/local/panda3d/bin (just to be sure) to the $PYTHONPATH env var.
But this is what I get now:

[root@localhost panda3d-1.3.2]# echo $PYTHONPATH

[root@localhost panda3d-1.3.2]# export PYTHONPATH=$PYTHONPATH:/usr/local/panda3d
[root@localhost panda3d-1.3.2]# export PYTHONPATH=$PYTHONPATH:/usr/local/panda3d/lib
[root@localhost panda3d-1.3.2]# export PYTHONPATH=$PYTHONPATH:/usr/local/panda3d/bin
[root@localhost panda3d-1.3.2]# ppython /usr/local/panda3d/samples/GreetingCard/GreetingCard.py
DirectStart: Starting the game.
Traceback (most recent call last):
  File "/usr/local/panda3d/samples/GreetingCard/GreetingCard.py", line 1, in ?
    import direct.directbase.DirectStart
  File "/usr/local/panda3d/direct/src/directbase/DirectStart.py", line 3, in ?
    from direct.showbase import ShowBase
  File "/usr/local/panda3d/direct/src/showbase/ShowBase.py", line 10, in ?
    from pandac.PandaModules import *
  File "/usr/local/panda3d/pandac/PandaModules.py", line 1, in ?
    from libpandaexpressModules import *
  File "/usr/local/panda3d/pandac/libpandaexpressModules.py", line 1, in ?
    from extension_native_helpers import *
  File "/usr/local/panda3d/pandac/extension_native_helpers.py", line 20, in ?
    from libpandaexpress import *
ImportError: /usr/local/panda3d/lib/libpandaexpress.so: undefined symbol: panda_version_1_3_0

OK, I’ve made some progress.
I thought the LD_LIBRARY_PATH is the same as PATH…
I checked the LD_LIBRARY_PATH and it was empty!
So, I added the panda3d and bin and lib folders to the PYTHONPATH, PATH, and the LD_LIBRARY_PATH, and now I got this error:

bash-3.1$ ppython /usr/local/panda3d/samples/GreetingCard/GreetingCard.py
DirectStart: Starting the game.
Warning: DirectNotify: category 'Interval' already exists
Known pipe types:
  glxGraphicsPipe
(all display modules loaded.)
:display:glxdisplay(error): OpenGL GLX extension not supported on display ":0".
:12-12-2006 16:37:54 ShowBase(warning): Unable to open 'onscreen' window.
Traceback (most recent call last):
  File "/usr/local/panda3d/samples/GreetingCard/GreetingCard.py", line 1, in ?
    import direct.directbase.DirectStart
  File "/usr/local/panda3d/direct/src/directbase/DirectStart.py", line 4, in ?
    ShowBase.ShowBase()
  File "/usr/local/panda3d/direct/src/showbase/ShowBase.py", line 195, in __init__
    self.openDefaultWindow()
  File "/usr/local/panda3d/direct/src/showbase/ShowBase.py", line 572, in openDefaultWindow
    raise StandardError, 'Could not open window.'
StandardError: Could not open window.

Which means: there’s a problem with my NVIDIA X driver… (even the xorg log admits it…)
I’ll see if there are any updates on the NVIDIA website… :slight_smile:

:smiley: Youpee! it WORKS!!
Downloaded a newer kernel version, newest NVIDIA drivers… and panda3d works now :slight_smile: Thanks for all you help!
And Josh, if you still want to build a Mandriva rpm, click HERE to download the necessary RPMS.
If I forgot to include one, you can download them HERE, just click Advanced search, check Mandriva, check New Look For FTP Search etc…

Josh, still up to build a Mandriva rpm?