のねのBlog

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

2013-03-01から1ヶ月間の記事一覧

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…

b2g(FirefoxOS) arm emulator起動せず

B2G_emuのフォルダでコマンドを入力しているのに、B2G_genのフォルダのoutを実行しようとしている。 ~/B2G_emu/B2G$ ./run-emulator.sh Creating sdcard image file with size: 512M ... emulator: found Android build root: /home/B2G_gen emulator: found…

b2g(FirefoxOS) カスタマイズビルド

公式のカスタマイズ用ファイル(.userconfig)は、以下のとおりです。 GECKO_PATH=/home/work/B2G-profiler/mozilla-inbound echo "GECKO_PATH = ${GECKO_PATH}" export B2G_DEBUG=1 echo "B2G_DEBUG = ${B2G_DEBUG}" GECKO_OBJDIR=${GECKO_PATH}/objdir-gon…

Cannot obtain needed object

Git

Try these commands:git fsck git gc

WinMergeのrepoのフィルタ

name: Exclude Source Control desc: Exclude Source Control files and directories def: include f: \.(vs[sp])?scc$ ## Visual SourceSafe files d: \\\.svn$ ## Subversion working copy d: \\_svn$ ## Subversion working copy ASP.NET Hack d: \\cvs$ …

b2g(FirefoxOS) arm emulatorのビルド(その3) hardware/libhardware_legacy/wifi/wifi.c:26:36: error: libwpa_client/wpa_ctrl.h: No such file or directory

b2g arm emulatorのビルド(その1) - のねの日記 b2g arm emulatorのビルド(その2) - のねの日記 b2g arm emulatorのビルド(その3) - のねの日記 $. ./build/envsetup.sh $. ./setup.sh $cd external/wpa_supplicant_8/ $mm これもだめか。Androidのソース…

bashで関数を定義したかどうか調べる方法

ビルトイン関数 typeを使うことで指定した名前が関数であるかどうか判断できます。

bash_profileとbashrcの違い

前者2つの使い分けですが、~/.bash_profileで環境変数、~/.bashrcでシェル変数やエイリアスを定義するようにしておき~/.bash_profileから~/.bashrcを読み込むようにするのが定石です。

wpa_supplicant

wpa_supplicant wpa_supplicant_6 wpa_supplicant_8

b2g arm emulator用のフォルダ

firefoxosのemulator用のフォルダ Deleting obsolete path /B2G/development Deleting obsolete path /B2G/device/generic/goldfish Deleting obsolete path /B2G/external/qemu Deleting obsolete path /B2G/prebuilts/gcc/linux-x86/host/i686-linux-glibc…

b2g arm emulatorのビルド(その2) "libwpa_client/wpa_ctrl.h" "no such file or directory"

b2g arm emulatorのビルド(その1) - のねの日記 b2g arm emulatorのビルド(その2) - のねの日記 b2g arm emulatorのビルド(その3) - のねの日記 hardware/libhardware_legacy/wifi/wifi.c:26:36: error: libwpa_client/wpa_ctrl.h: No such file or direc…

b2g arm emulatorのビルド(その1)

b2g arm emulatorのビルド(その2) - のねの日記 b2g arm emulatorのビルド(その3) - のねの日記 host StaticLib: libGLcommon (out/host/linux-x86/obj/STATIC_LIBRARIES/libGLcommon_intermediates/libGLcommon.a) host SharedLib: libGLES_CM_translator…

B2G(FirefoxOS)のconfig.sh

B2G/config.sh GitHubのB2Gより引用 #!/bin/bash REPO=${REPO:-./repo}echo ${name:-value} もし変数nameが空白(セットされていない場合も含む)であれば、「value」がその値となります。以下のコマンド郡と同じような意味となります。 repo_sync() { rm -r…

Ubuntu12.04のファイル共有(Samba)で”エクスプローラーは動作を停止しました"

コンピュータ>管理>Windowsログを確認した。LinkShellExtensionのプログラムで死んでいるようだ。 最新のプログラムに更新したら、死ななくなった。 障害が発生しているアプリケーション名: explorer.exe、バージョン: 6.1.7601.17567、タイム スタンプ: 0…

FirefoxOSとAndroidのフォルダの比較

フォルダ一覧

repo sync error

~/firefoxos/B2G$ repo sync -j1 Fetching projects: 100% (83/83), done. error: Your local changes to the following files would be overwritten by checkout: apps/camera/manifest.webapp apps/communications/manifest.webapp apps/system/manifest.w…

FirefoxOSのデバッグ

adbが使える。 deviceがofflineのままのときがあった。 $adb devices List of devices attached 016B7E95XXXXXXXX offline FirefoxOSを再起動したら、接続できるようになった。 monitor.batも使えた。 Debugging B2G using gdb

FirefoxOSの日本語化

SolaさんとMozillaのページを見ながら、日本語化に挑戦。 sola : FirefoxOS の日本語化 Building Firefox OS multilocale- Mozilla | MDN