のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

FirefoxOs

b2g gecko skia-npapi

./B2G/gecko/other-licenses/skia-npapi/ANPTypeface.cpp:31: SkTypeface* tf = SkTypeface::CreateFromName(name, ./B2G/gecko/other-licenses/skia-npapi/ANPTypeface.cpp:32: static_cast(s)); ./B2G/gecko/other-licenses/skia-npapi/ANPTypeface.cpp:38…

b2g gaia xulrunner-sdk

./B2G/gaia/xulrunner-sdk/include/skia/SkPaint.h:35:class SkTypeface; ./B2G/gaia/xulrunner-sdk/include/skia/SkPaint.h:550: SkTypeface* getTypeface() const { return fTypeface; } ./B2G/gaia/xulrunner-sdk/include/skia/SkPaint.h:562: SkTypeface…

b2g framework

./B2G/frameworks/base/core/jni/android/graphics/TextLayoutCache.h:96: SkTypeface* typeface; ./B2G/frameworks/base/core/jni/android/graphics/Typeface.cpp:7:#include "SkTypeface.h" ./B2G/frameworks/base/core/jni/android/graphics/Typeface.cpp…

b2g fontdata

$ grep -rn moztt ./* > moztt.log $ grep -rn DroidSans ./* > droid.log B2G/gecko/gfx/thebes/gfxFT2FontList.cpp #ifdef ANDROID void gfxFT2FontList::FindFontsInDir(const nsCString& aDir, FontNameCache *aFNC) { static const char* sStandardFont…

MOZ_DEBUG_DISABLE_DEFS="-DNDEBUG -DTRIMMED"

NDEBUGはassertを無効にするためにあるようだ。 MOZ_DEBUG_DISABLE_DEFS="-DNDEBUG -DTRIMMED" BohYoh.com【C言語講座】標準ライブラリ マクロ NDEBUG

b2g flash gecko

$ ./flash.sh gecko remount succeeded push: B2G/gecko/obj/dist/b2g/dictionaries/en-US.dic -> /system/b2g/dictionaries/en-US.dic push: B2G/gecko/obj/dist/b2g/dictionaries/en-US.aff -> /system/b2g/dictionaries/en-US.aff push: B2G/gecko/obj/di…

b2g client.mk

mozilla-central mozilla/client.mk

b2g build error :Can't add inexistent file to zip

build.shのエラーです。 build/webapp-zip.js:311: Error: Error: Can't add inexistent file to zip : /home/user01/B2G_nexus/B2G/gaia/shared/style/responsive.css from: sms.gaiamobile.org function addToZip(zip, pathInZip, file) { // Check @2x fi…

linaroからソースを取得する方法

mkdir linaro cd linaro repo init -u git://android.git.linaro.org/platform/manifest.git -b android-4.0.4_r1.2 repo sync export MANIFEST_REPO=git://android.git.linaro.org/platform/manifest.git export MANIFEST_BRANCH=linaro-android-12.05-rele…

build file copies are not in sync

TEST-UNEXPECTED-FAIL | check-sync-dirs.py | build file copies are not in sync TEST-INFO | check-sync-dirs.py | file(s) found in: /home/m_fujii/B2G_nexus/B2G/gecko/js/src/config TEST-INFO | check-sync-dirs.py | differ from their originals i…

ビルドまで

$mkdir B2G_nexus $cd B2G_nexus $git clone git://github.com/mozilla-b2g/B2G.git $cd B2G ダウンロードした直後は(no branch)であった。 $repo start master --all 変更があった場所を確認する。 $repo status $repo branches $cd B2G .userconfigを追加…

git 無視リストに追加した

# .config .repo/ .userconfig .var.profile *.swp *.pyc *.fix_b2g_stack.cache Adreno* Makefile abi/ backup-*/ bionic/ bootable/ build/ dalvik/ development/ device/ download-galaxy-nexus/ download-nexus-s/ external/ frameworks/ gaia/ gecko/ g…

b2gのソースの変更方法 discarding 1 commits

ブランチを切らないと、repo syncのたびに破棄されてしまうようだ。 $ ./config.sh galaxy-nexus $ repo start myb2g --all $ git branch * master $ repo branches * myb2g | in all projects $ git checkout myb2g $ git branch master * myb2g repo start…

b2g(FirefoxOS) configure.sh repo sync でエラー

curl: (22) The requested URL returned error: 404 Server does not provide clone.bundle; ignoring. サーバーの調子が悪いのかな? so you need to edit .repo/manifest.xml and change this line <remote name="linaro" fetch="git://android.git.linaro.org/"/>for this <remote name="linaro" fetch="">http://android.git.linaro.o…</remote></remote>

gecko configure.in

初心者への GNU autoconf のススメCross Reference: /mozilla/B2G/gecko/configure.in

gfx makefile

gecko\gfx\Makefile.in # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. DEPTH = @DEPTH@ …

b2g(FirefoxOS) ベースとなるファイル

b2g-manifest/emulator.xml at master mozilla-b2g/b2g-manifest GitHub <manifest> <remote name="aosp" fetch="https://android.googlesource.com/" /> <remote name="caf" fetch="git://codeaurora.org/" /> <remote name="b2g" fetch="https://git.mozilla.org/b2g" /> </remote></remote></remote></manifest>

outのinit.rc

outのinit.b2g.rc service fakeperm /system/bin/fakeperm class main user root service b2g /system/bin/b2g.sh class main onrestart restart media service rilproxy /system/bin/rilproxy class main socket rilproxy stream 660 root system user root…

b2g srcのinit.rcとoutのinit.rcの違い

/B2G/system/core/rootdir/init.rcと/B2G/out/target/product/generic/root/init.rcの違い --- /B2G/out/target/product/generic/root/init.rc Fri Mar 08 09:21:09 2013 +++ /rootdir/init.rc Sat Mar 09 23:17:37 2013 @@ -1,4 +1,3 @@ -import /init.b2g.…

b2gプロセス

$ ./run-gdb.sh attach 43 GECKO_PATH = /home/m_fujii/B2G_emu/B2G/gecko B2G_DEBUG = 1 B2G_NOOPT = 1 GECKO_OBJDIR = /home/m_fujii/B2G_emu/B2G/gecko/objdir-gonk-debug Attached; pid = 43 Listening on port 11043 prebuilt/linux-x86/toolchain/arm-…

b2g(FirefoxOS) eclipseでデバッグする方法(その2) eclipseの準備

android gdb debug - のねの日記 コマンドラインのgdbclientの方法を応用し、eclipseでデバッグ - のねの日記 linuxでのgdbclientの使い方 - のねの日記eclipseを起動する。 AndroidのSDKからダウンロードする。 adt-bundle-linux-x86_64-20130219.zipをダウ…

b2g(FirefoxOS) eclipseでデバッグする方法(その1) gdbserverの起動

android gdb debug - のねの日記 コマンドラインのgdbclientの方法を応用し、eclipseでデバッグ - のねの日記 linuxでのgdbclientの使い方 - のねの日記 eclipse用のシンボリックリンクを作成する。 $ cd B2G $ ln -s run-gdb.sh ./run-eclipse.sh gdbserver…

b2g(FirefoxOS) run_gdb.sh attach pid の実行

$ adb shell b2g-ps * daemon not running. starting it now on port 5037 * * daemon started successfully * APPLICATION USER PID PPID VSIZE RSS WCHAN PC NAME b2g root 1472 1 226084 100056 ffffffff 40044140 S /system/b2g/b2g Usage app_1591 1591…

(FirefoxOS)b2g run-gdb.sh

B2G/run-gdb.sh B2G GitHub #!/bin/bash SCRIPT_NAME=$(basename $0) basename ファイル名からディレクトリや末尾の文字列を削除したものを返す . load-config.sh #!/bin/bash if [[ ! -n "$B2G_DIR" ]]; then B2G_DIR=$(cd `dirname $0`; pwd) fi . "$B2G_D…

b2g(FirefoxOS) emulator ネットに繋がらない

adb shell setprop net.dns1 10.0.2.3 こちらでもつながる。 adb shell setprop net.dns1 8.8.8.8 adb shell setprop net.dns1 10.0.2.3

b2g(FirefoxOS) emulator getprop

$ adb -e shell root@android:/ # ll drwxr-xr-x root root 2013-03-08 15:34 acct drwxrwx--- system cache 2013-03-08 15:34 cache dr-x------ root root 2013-03-08 15:34 config lrwxrwxrwx root root 2013-03-08 15:34 d -> /sys/kernel/debug drwxrwx-…

b2g(FirefoxOS) emulatorの起動時のlogcat

起動時のlogcat

b2g(FirefoxOS) emulator: can't connect to ADB server: Connection refused

emulator: can't connect to ADB server: Connection refused adbのサーバーを再起動してから、起動する。 $adb kill-server $adb start-server $./run-emulator.sh

b2g(FirefoxOS) arm emulator.sh 起動時のterminalのログ

$ ./run-emulator.sh emulator: autoconfig: -system /home/B2G/out/target/product/generic//system.img emulator: autoconfig: -ramdisk /home/B2G/out/target/product/generic//ramdisk.img emulator: autoconfig: -datadir /home/B2G/out/target/product…

b2g(FirefoxOS)のemulator.sh

B2G/run-emulator.sh GitHub #!/bin/bash # Get full path from where the script was executed, full path is needed to run emulator succesfully B2G_HOME=$(cd $(dirname $BASH_SOURCE); pwd) . $B2G_HOME/load-config.sh DEVICE=${DEVICE:-generic} TOO…