PPAPI,用於開發支持Chrome的瀏覽器插件。
基礎:
(1)https://developer.chrome.com/native-client/devguide/tutorial/tutorial-part1 下載並安裝nacl環境
(2)https://developer.chrome.com/native-client/devguide/devcycle/vs-addin 下載並安裝vs-addin
鏈接(2)中明確說明,支持的是vs2010和vs2012的sp1版本,express版本不支持。然而,vs-addin依然也沒有真正運行起來,建議用英文的系統+英文的VS爲佳。
Q1:錯誤信息:Failed to find any suitable location to install the Addin. Tried:
C:\Users\用戶名\My Documents\Visual Studio 2010
C:\Users\用戶名\My Documents\Visual Studio 2012
A1:沒有安裝VS2010/VS2012,或者安裝的VS2010/VS2012的版本不被支持,安裝完成後有這兩個目錄之一纔是可以支持的版本。
Q2:錯誤信息:IOError: [Errno 2] No such file or directory: 'C:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\1033\\general.xml'
A2:安裝的VS2010或者VS2012可能是中文版或者其他語言版本,create_ppapi_platform.py中寫死了1033,爲英文版本的,建議安裝英文版的。