Closed bkeys closed 7 years ago
I have gotten the build working and documented all the issues I ran into on my blog here. If you want you could adapt what I found and add it to the README.
Thanks, I will see what causes the issue, I guess it might be a change to the module builder I made
The issue was resolved on IRC and turned out to be a combination of the facts that his build of the Panda SDK was compiled without HAVE_PYTHON, and that he used a .whl install of Panda to run the setup.py to begin with, whereas the .whl builds don't include the header files.
It might be an option for ModuleBuilder to warn if run with a pip-installed build of Panda, and in the longer term, for us to offer a panda3d-devel wheel that includes header files and .lib files.
@rdb okay, is there a flag which I can query?
To check whether it's a pip-installed build? Hmm, well, other than analysing the directory structure, you could use pkg_resources to check whether panda3d was installed as a package. If it is, you would get something like:
>>> import pkg_resources
>>> pkg_resources.require('panda3d')
[panda3d 1.10.0.dev1086 (/tmp/stuff/lib/python3.6/site-packages)]
If it isn't, you would instead get a pkg_resources.DistributionNotFound
error.
I tried to compile the CMake project and am getting errors; some of these I will patch and make a PR for if needed. Here is the current output of my build. Could you list all the needed dependencies in the README perhaps?