最終更新:2013-09-21 (土) 05:54:45 (3862d)  

Emscripten/インストール
Top / Emscripten / インストール

https://github.com/kripken/emscripten/wiki/Tutorial

Linux

要求

メモ

Vagrant

Ubuntu 13.04

  • node.jsはnodeのwikiに書いてあるppaのを入れた
  • 標準でLLVM 3.2なのでそれを使う。

Ubuntu 12.10 (失敗)

  • xorg-edgersLLVMをインストール
  • 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)

メモ

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

関連