2015-09-30 147 views
2

I've gone over the instructions several times,在無數論壇中查看,仍無法解決此問題。Emscripten無法找到cmake的路徑

我正在運行Windows 10,只是試圖安裝Emscripten。我已經安裝了Emscripten:

enter image description here

我跑

# Fetch the latest registry of available tools. 
emsdk update 

其次

# Download and install the latest SDK tools. 
emsdk install latest 

enter image description here

但它仍然拋出自己無法相同的警告找到cmake的路徑。

我已經下載並安裝了cmake-3.3.2-win32-x86。我不能從安裝創建PATH,因爲它說文件長度太長。奇怪,因爲它是在這裏安裝:

C:\ Program Files文件(x86)的\ CMake的\ BIN

我想我可以設置路徑自己,as seen in this SO post。因此,我在上面的圖片後使用了這個命令:

set PATH="C:\Program Files (x86)\CMake\bin\";%PATH% 

並且有同樣的問題。我剛剛從創意中脫穎而出。難道這與64位版本的clang和sdk正在安裝的事實有關,但Cmake只能以32位的風格出現?

回答

3

Windows上的PATH環境變量中不需要引號。

set PATH=C:\Program Files (x86)\CMake\bin\;%PATH% 
+0

工作正常!我覺得自己像個白癡。我花了很多時間解決這個問題(如上所示),只是發現這是因爲我使用了引號。再次感謝你! –