./makepanda.py --everything issues under pcBSD

hi.

I am trying to compile this under pcBSD and getting this error:

%./makepanda.py --everything


Makepanda Initial Status Report
Makepanda: Compiler: BSD
Makepanda: Optimize: 3
Makepanda: Keep Pkg: PYTHON ZLIB PNG JPEG TIFF VRPN FMOD NVIDIACG NSPR OPENSSL FREETYPE FFTW BISON FLEX PANDATOOL PANDAAPP
Makepanda: Omit Pkg: HELIX MILES MAYA5 MAYA6 MAYA65 MAX5 MAX6 MAX7 OPENCV
Makepanda: DirectX SDK dir: None
Makepanda: Verbose vs. Quiet Level: 1
Makepanda: Don’t generate API reference manual
Makepanda: Version ID: 1.1.0
Makepanda: MAYA5 not yet supported under linux
Makepanda: I have automatically added this command-line option: --no-maya5
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: MAX5 not yet supported under linux
Makepanda: I have automatically added this command-line option: --no-max5
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: HELIX is currently nonoperational
Makepanda: I have automatically added this command-line option: --no-helix
Makepanda: OPENCV currently only works under windows.
Makepanda: I have automatically added this command-line option: --no-opencv
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.

Traceback (most recent call last):
File “/usr/home/neighborlee/apps/panda3d-1.1.0/makepanda/makepanda.py”, line 1906, in ?
CopyTree(‘built/Pmw’, ‘thirdparty/Pmw’)
File “/usr/home/neighborlee/apps/panda3d-1.1.0/makepanda/makepanda.py”, line 958, in CopyTree
oscmd(cmd)
UnboundLocalError: local variable ‘cmd’ referenced before assignment
%kate makepanda.py
QObject::disconnect: Unexpected null parameter

thx anyone for help with this :wink:)

cheers
neighborlee

heyo, just curious, what does sys.platform tell you in python?

Anywho, the issue is that copytree does not correctly handle the case where your compiler is neither linuxa or msvc. If you look in makepanda, you’ll see a bunch of points where the program branches depending on the platform python is running on. You could try adding a third
platform -> compiler (check the top of makepanda) for your platform specifically. You could even start by mapping your client to linuxa, then see where it fails.

heyo, just curious, what does sys.platform tell you in python?

Anywho, the issue is that copytree does not correctly handle the case where your compiler is neither linuxa or msvc. If you look in makepanda, you’ll see a bunch of points where the program branches depending on the platform python is running on. You could try adding a third
platform -> compiler (check the top of makepanda) for your platform specifically. You could even start by mapping your client to linuxa, then see where it fails.

sys.platform reveals freebsd6 ,

EDIT: nevermind I got it…I redownloaded and did from scratch and got it working fine…

not done compiling but I think now it wont be a problem…

cheers
neighborlee