‘p3pystub’ library seems missing from the latest builds (at least on Debian Squeeze and Ubuntu Precise platforms).
Compiling the example from the manual:
#include "pandaFramework.h"
#include "pandaSystem.h"
int main(int argc, char *argv[]) {
//open a new window framework
PandaFramework framework;
framework.open_framework(argc, argv);
//set the window title to My Panda3D Window
framework.set_window_title("My Panda3D Window");
//open the window
WindowFramework *window = framework.open_window();
//here is room for your own code
//do the main loop, equal to run() in python
framework.main_loop();
//close the window framework
framework.close_framework();
return (0);
}
with this command:
g++ -o main -I/usr/include/python2.6 -I/usr/include/panda3d -L/usr/lib/panda3d -lp3framework -lpanda -lpandafx -lpandaexpress -lp3dtoolconfig -lp3dtool -lp3pystub -lp3direct main.cpp
gives:
/usr/bin/ld: cannot find -lp3pystub
collect2: ld returned 1 exit status
Trying to link without it, gives lots of undefined references.
Has it been replaced by another library, or is there an error?
Thanks for help.