HowToSetup.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. 1. Download the native client SDK and Python if you need it.
  2. https://developers.google.com/native-client/sdk/download
  3. Get pepper_canary, not the recommended versions.
  4. D:\nacl_sdk>naclsdk update pepper_canary
  5. 2. Download chromium
  6. 2A. First, get the source tarball as described in "Bootstrap using the tarball"
  7. http://dev.chromium.org/developers/how-tos/get-the-code
  8. 2B. Download the depot_tools
  9. http://dev.chromium.org/developers/how-tos/install-depot-tools
  10. 2C. After downloading the gclient / depot tools, be sure to start a new command prompt so the addition to your PATH takes effect.
  11. Exectute the section on "Check out the sources"
  12. 3. Copy the private headers from the chromium repo into the SDK repo
  13. mkdir D:\nacl_sdk\pepper_canary\include\ppapi\c\private
  14. mkdir D:\nacl_sdk\pepper_canary\include\ppapi\cpp\private
  15. copy D:\chromiumtrunk\src\ppapi\c\private\*.h D:\nacl_sdk\pepper_canary\include\ppapi\c\private
  16. copy D:\chromiumtrunk\src\ppapi\cpp\private\*.h D:\nacl_sdk\pepper_canary\include\ppapi\cpp\private
  17. 4) Enable the experimental UDP apis in Chrome
  18. go to about:flags and enable "NaCl Socket API"
  19. 5. Install the visual studio update
  20. http://mainroach.blogspot.com/2012/10/official-nacl-vs2010-add-in-available.html
  21. D:\nacl_sdk>naclsdk install vs_addin
  22. D:\nacl_sdk>cd vs_addin
  23. D:\nacl_sdk\vs_addin>install.bat
  24. Set the enviroment variable NACL_SDK_ROOT to D:\nacl_sdk\pepper_canary
  25. Then see https://developers.google.com/native-client/dev/devguide/devcycle/vs-addin#add-platforms
  26. 6. Build as in make.bat
  27. 7. Run httpd.py
  28. 8. Press F5 to debug. There are these instructions, but I don't believe they are relevant:http://www.chromium.org/nativeclient/how-tos/debugging-documentation/debugging-with-debug-stub-recommended/debugging-nacl-apps-in-visual-studio-with-wingdb-using-debug-stub-experimental
粤ICP备19079148号