SSブログ

Chromium Arm版のコンパイル(emdebian編?) [Linux]

前回のエントリ名は準備といいつつ結構やってしまった。
つづき

third_party/protobuf2/src/src/google/protobuf/stubs/common.cc:1: error: invalid floating point option: -mfpu=vfpv3

このオプションがないとのことだったので、調べぐぐってみると

GCC 4.4 Release Series — Changes, New Features, and Fixes - GNU ... - [ このページを訳す ]
21 Jan 2010 ... GCC now supports the VFPv3 variant with 16 double-precision registers with -mfpu=vfpv3-d16 . The option -mfpu=vfp3 has been renamed to -mfpu=vfpv3 .

GCC4.4でコンパイルオプションかえたようだ。
EmdebianのGCCは4.3だったので無理。
あきらめてCT-NGを使うことにした。

前にやったときは、ソースからビルドしようとしたが、文句言われて無理だった。
そもそもインストーラーパッケージがあるのでそれでやってみる。

IA32 GNU/Linux Installerをダウンロードしてインストール

$ wget http://www.codesourcery.com/sgpp/lite/arm/portal/package5385/public/arm-none-linux-gnueabi/arm-2009q3-67-arm-none-linux-gnueabi.bin
$ chmod +x arm-2009q3-67-arm-none-linux-gnueabi.bin
$ ./arm-2009q3-67-arm-none-linux-gnueabi.bin


Javaが動くようだ。

Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

Stack Trace:
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
at java.awt.Window.(Unknown Source) at java.awt.Frame.(Unknown Source) at java.awt.Frame.(Unknown Source) at javax.swing.JFrame.(Unknown Source) at com.zerog.ia.installer.LifeCycleManager.g(DashoA10*..) at com.zerog.ia.installer.LifeCycleManager.h(DashoA10*..) at com.zerog.ia.installer.LifeCycleManager.a(DashoA10*..) at com.zerog.ia.installer.Main.main(DashoA10*..) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.zerog.lax.LAX.launch(DashoA10*..) at com.zerog.lax.LAX.main(DashoA10*..) This Application has Unexpectedly Quit: Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX) が、ダメ! X11入れろといわれた。ビルドしたいだけなのにX11かー これはUbuntuに戻るときがきた。 というわけで、最初に放棄したUbuntuで再チャレンジ。 リンク先を見てもらえればわかるが、Ubuntuのほうがセットアップスクリプトがあったりして割と親切。 ただ、ターゲットバージョンがなぜか古いが。というか、その古いバージョンでやるべきだったのか? http://code.google.com/p/chromium/wiki/LinuxBuildInstructionsPrerequisites http://src.chromium.org/svn/trunk/src/build/install-build-deps.sh コレを落としてきて実行するか sudo apt-get install subversion pkg-config python perl g++ g++-multilib \ bison flex gperf libnss3-dev libgtk2.0-dev libnspr4-0d libasound2-dev \ libnspr4-dev msttcorefonts libgconf2-dev libcairo2-dev libdbus-1-dev \ libbz2-dev libjpeg62-dev libpam0g-dev libglu1-mesa-dev libxss-dev python2.5-dev これを実行するか で、実行するがまたしてもエラー。 よくよく読んでみるとX11のライブラリがいるんじゃなくて、X11が動いてないとだめだった。 Ubuntuは最初からデスクトップ環境が入っているので、そっちで端末を動かすとWindowsっぽいインストーラーが動いた。とりあえずデフォルトでインストール。変なところにインストールしようとしていたが、パスを設定してくれるようなのでそのままにした。 上記のようにCORSSTOOLSのパスが /root/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi とかへんなところになっているが gclient sync --force をやる。 make -r -j6 BUILDTYPE=Release chrome ターゲットchromeが無いとか言われたので 今一度見直してみた。 export GYP_GENERATORS=make gclient sync --force これが抜けてたようだ。 気を取り直してもう一度ビルドすると、今度はうまくいきそう。 が、ダメ! In file included from third_party/protobuf2/src/src/google/protobuf/extension_set.cc:35: third_party/protobuf2/src/src/google/protobuf/stubs/hash.h:38: fatal error: string.h: No such file or directory compilation terminated. In file included from third_party/protobuf2/src/src/google/protobuf/stubs/once.h:75, from third_party/protobuf2/src/src/google/protobuf/stubs/once.cc:42: third_party/protobuf2/src/src/google/protobuf/stubs/common.h:38: fatal error: assert.h: No such file or directory compilation terminated. In file included from third_party/protobuf2/src/src/google/protobuf/generated_message_util.h:41, from third_party/protobuf2/src/src/google/protobuf/generated_message_util.cc:35: third_party/protobuf2/src/src/google/protobuf/stubs/common.h:38: fatal error: assert.h: No such file or directory compilation terminated. In file included from third_party/protobuf2/src/src/google/protobuf/stubs/common.cc:33: third_party/protobuf2/src/src/google/protobuf/stubs/common.h:38: fatal error: assert.h: No such file or directory compilation terminated. In file included from third_party/protobuf2/src/src/google/protobuf/stubs/hash.cc:33: third_party/protobuf2/src/src/google/protobuf/stubs/hash.h:38: fatal error: string.h: No such file or directory compilation terminated.
nice!(0)  コメント(0)  トラックバック(0) 
共通テーマ:パソコン・インターネット

nice! 0

コメント 0

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

トラックバック 0

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。