Advertisement
Guest User

panda3d windows compile guide

a guest
Jul 29th, 2014
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. How to compile panda3d on windows using vc2010.
  2. These steps are known to work on windows 7.
  3. Hyperion2010, July 29, 2014
  4.  
  5. 1. Install windows sdk 7.1 and vc 2010 c++ update
  6. a. Download windows sdk 7.1 here:
  7. http://www.microsoft.com/en-us/download/details.aspx?id=8279
  8. b. Download sp1 here:
  9. http://www.microsoft.com/en-us/download/confirmation.aspx?id=4422
  10. c. If you have .NET 4.1+ you need to uninstall it since those version
  11. conflict with .NET 4.0 needed by the SDK. You can reinstall more
  12. recent version of .NET afterward.
  13. d. You also need to uninstall any vc2010 redistributables. See
  14. http://www.mathworks.com/matlabcentral/answers/95039-why-does-the-sdk-7-1-installation-fail-with-an-installation-failed-message-on-my-windows-system
  15. for more information.
  16. e. When selecting what to install for the SDK sure you install the c++ tools
  17. otherwise you will get a cryptic error about missing rc.exe.
  18. f. Even after installing sp1 you may still be missing ammintrin.h.
  19. If this is the case download a newer version of visual studio sdks
  20. (eg vs12) and copy ammintrin.h from
  21. C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include to
  22. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include
  23. g. Congratulations, you are now a windows developer!
  24.  
  25. 2. Download whichever panda source version you need, and extract it somewhere.
  26. a. eg: https://www.panda3d.org/download/panda3d-1.8.1/panda3d-1.8.1.tar.gz
  27. b. You'll need 7zip for the gz files, you don't need the complete source
  28. since you will be downloading rdb's vc10 thirdparty files.
  29.  
  30. 3. Get rdb's win-libs-vc10-x64
  31. a. Thread with downloads can be found here:
  32. http://www.panda3d.org/forums/viewtopic.php?t=16346
  33. b. extract to $PANDA_SOURCE_PATH/thirdpary
  34.  
  35. 4. If you want to use your own version of python (eg so you can have access
  36. to certain additional modules), copy your local install folder over to
  37. thridpary/win-python. NOTE: python3 currently (Aug 14) does not compile on windows.
  38. a. You may need to rename the python dll and move it to the top folder.
  39. b. Symlinks and shortcuts do not seem to work for this which is silly since makepanda just copies from source to built.
  40.  
  41. 5. Compiling
  42. a. You MUST compile in command prompt, powershell environment variables
  43. are incorrect for makepanda.bat.
  44. b. Run cmd.exe and cd to $PANDA_SOURCE_PATH
  45. c. Run the following command, without quotes:
  46. "makepanda\makepanda.bat --everything --installer"
  47. d. There are many additional compile options, to see them run:
  48. "makepanda\makepanda.bat"
  49.  
  50. 6. For everything else, check the manual:
  51. https://www.panda3d.org/manual/index.php/Main_Page
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement