FPGA開発日記

カテゴリ別記事インデックス https://msyksphinz.github.io/github_pages , English Version https://fpgadevdiary.hatenadiary.com/

Visual Studio Codeがオープンソース化されたのでソースからビルド(しようとしたが上手く行っていない)

Visual Studio Codeがオープンソース化されたが、これをフルスクラッチでビルドした人っているのかね? ネット上で殆ど情報出てこないんだけど、成功例が見たい。Ubuntuで挑戦しているのだが、今のところ上手くいっていない。

github.com

github.com

まずは新しいUbuntu15.04の環境を用意する。作ったのはVagrant上で、昨日の記事に従って、GUIを飛ばす環境を構築しておいた。

msyksphinz.hatenablog.com

パッケージを最新にする & 必要なパッケージのインストール

$ sudo aptitude update
$ sudo aptitude install git

VSCodeのクローン

$ git clone https://github.com/Microsoft/vscode.git
Cloning into 'vscode'...
remote: Counting objects: 4939, done.
remote: Compressing objects: 100% (93/93), done.
remote: Total 4939 (delta 34), reused 0 (delta 0), pack-reused 4841
Receiving objects: 100% (4939/4939), 6.24 MiB | 992 KiB/s, done.
Resolving deltas: 100% (1892/1892), done.

ついでに、リリースタグの0.10.0に移っておいた。

$ git checkout 0.10.1

npmのインストール

以下を参考にした。

qiita.com

VSCodeでは、node.js に0.12以上が必要なので、最新版をインストールしなければならない。

$ https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash
$ nvm ls-remote
$ nvm install v0.12.7

依存パッケージのインストール

実行にあたり、以下もインストールしておく。

$ sudo apt-get install libgtk2.0-0 libgconf-2-4 libnss3 libasound-dev libXtst

起動(できていない)

インストールは出来たと思うのだが、いろいろと制約があるらしくまだ起動できていない。

[25262:1124/154321:ERROR:browser_main_loop.cc(189)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.

あんまりちゃんと情報が出てなくて、うまく行かないなあ。。