最終更新:2013-09-21 (土) 05:54:45 (3862d)
Emscripten/インストール
Top / Emscripten / インストール
https://github.com/kripken/emscripten/wiki/Tutorial
Linux
要求
- LLVM 3.2
- node.js (0.6.8 or above)
- Python 2.7.3
メモ
Vagrant
Ubuntu 13.04
Ubuntu 12.10 (失敗)
- xorg-edgersでLLVMをインストール
- node.jsは標準のを使う
- なんかLLVMのビルド中にエラーがでた。。
llvm[4]: Linking Debug+Asserts executable clang collect2: error: ld terminated with signal 9 [Killed] make[4]: *** [/home/tokkyo/build/Debug+Asserts/bin/clang] Error 1
- 調べてみるとエラーの原因はメモリ不足で、3.3GBほどメモリが必要っぽい。
Windows (Visual Studio 2010)
メモ
- コマンドプロンプトで操作
- CygwinのSubversionだとビルド時にパス周りでエラーが出た
- CygwinのCMakeだとターゲットにVisual Studioが選べない
LLVM/インストール
- LLVM 3.2を指定してチェックアウト
rem Checkout LLVM: svn co http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_32/final llvm rem Checkout Clang: cd llvm\tools svn co http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_32/final clang rem Run CMake to generate the Visual Studio solution and project files: rem back to where you started cd ..\.. rem for building without polluting the source dir mkdir build cd build rem if you are using Visual Studio 2010: cmake -G "Visual Studio 10" ..\llvm rem The above, if successful, will have created an LLVM.sln file in the build directory.
- このあとVisual StudioコマンドプロンプトかVisual Studioでビルドする
msbuild LLVM.sln /p:Configuration=Release