libRocket broken if installed at runtime, using PackageInstaller
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Panda3D |
Fix Released
|
Medium
|
rdb |
Bug Description
1) When rocket is required as a package, through "packp3d -r rocket" there is no issue and the error is non-existant, see python code below:
import direct.
from panda3d.rocket import *
run()
Turn the above into a p3d file using: "packp3d -o myapp.p3d -r rocket"
No issue occurs, which is the correct behavior.
2) Rocket being installed at-runtime, using PackageInstaller (DWBPackageInst
"ImportError: libboost_
See code below:
import direct.
from direct.
def onFinish(worked):
print 'onFinish(%s)' % worked
from panda3d.rocket import LoadFontFace
pi = DWBPackageInsta
pi.addPackage(
pi.donePackages()
run()
As you can see, the above code will install the rocket package at runtime, and once done, attempt to load the rocket module (by simply importing LoadFontFace from the panda3d.rocket module)
Compile the above into a p3d simply with: "packp3d -o myapp.p3d"
for more information, see this thread: http://
Changed in panda3d: | |
status: | Fix Committed → Fix Released |
Hmm, looking at the code in PackageInfo.py, it doesn't seem that the installation code actually puts the directory on the system's LD_LIBRARY_PATH. However, I'm not that familiar with this code, so I'd like David to comment on it before I make any changes - is adding the package directory to LD_LIBRARY_PATH (etc) supposed to be done elsewhere?