2015/11/4

avidemux and deb-multimedia.org

不知道什麼原因,以前的 debian-mulitmedia.org 被debain 要求改成 deb-multimedia.org
debian 說,不希望他用 debian 的名子。

所以 source.list 就要改了。

增加 source.list:
deb http://www.deb-multimedia.org jessie main non-free

加入 key:
06/02/2015 :
Maybe I went too quickly to my new GPG key.
If apt-get don't find the new key, do that :

wget http://www.deb-multimedia.org/pool/main/d/deb-multimedia-keyring/deb-multimedia-keyring_2015.6.1_all.deb
sudo dpkg -i deb-multimedia-keyring_2015.6.1_all.deb
apt-get update

apt-get should be happy now.

2015/11/3

some bookmarks for memo...

接著 ref:
  • https://yaapb.wordpress.com/2012/09/22/build-a-custom-android-emulator-image/
  • https://code.google.com/p/android/issues/detail?id=61210
  • http://events.linuxfoundation.org/sites/events/files/slides/SDK%20Add-ons.pdf
  • http://stackoverflow.com/questions/9598782/deploying-sdk-addon-component
  • https://newcircle.com/s/post/1571/exploring_sdk_add_ons_for_android_devices_larry_schiefer_video
  • https://android.googlesource.com/platform/build/+/kitkat-wear/core/tasks/sdk-addon.mk
  • http://programmingtolive.blogspot.tw/2012/07/share-your-android-sdk-andon.html
  • http://stackoverflow.com/questions/9022750/running-emulator-after-building-android-from-source

banana pi , build kernel for jessie

follow : http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=43
內容:
sudo apt-get install git build-essential libncurses5-dev u-boot-tools uboot-mkimage
git clone https://github.com/silentcreek/bananapi-kernel --depth 1
cd bananapi-kernel
make sun7i_defconfig
make menuconfig                        # exit & save     
make -j2 uImage modules                # ~ 2.5h working
sudo make modules_install
sudo mount /dev/mmcblk0p1 /boot
sudo mv /boot/uImage /boot/uImage_old  # save precedent uImage, can be restored 
sudo cp arch/arm/boot/uImage /boot
sudo reboot

.. native build.. 超久...8hrs..以上..

結果....boot fail,,, 他說 id 不認識...

還是要 follow : http://www.htpcguides.com/build-debian-image-for-banana-pi-pro-sata-port-multiplier/

據說是 debian 的 kernel.

2015/11/2

aosp. emulator and make sdk.

如果照 https://yaapb.wordpress.com/2012/09/22/build-a-custom-android-emulator-image/

直接 拉 googlesource 的 master 來build. 現在是 6.0

6.0 的 build system 好像變了,不是以前的 gnu Make, 變成 Ninja..
所以 build 到 41% 後出現 Jack connection fail...
--- Jack 是 android 的新 build system (ref: http://source.android.com/source/jack.html )

5.1.1 的話,會有 clang c++ library fail,
切到 5.0.1_r2 也一樣。

後來,make clean 後再 make 就 OK 了。
所以要看看是不是 5.1.1 也一樣 clean 後 OK

用 android-6.0.0_r1 這個branch 的話,也可以 build OK (full_x86)

用 android-5.0.2_r1 來 build aosp_x86
build 完後,which 看一下 emulator 的位置, 在 prebuilts/android-emulator/linux-x86_64/emulator
直接 run emulator, 他就會用 剛剛 build 好的 aosp_x86 image 來開機。
在 emulator 的 about 中可以看到 android system 的 build 版本。
----------------------------------------------
make sdk..

一樣,follow: https://android.googlesource.com/platform/sdk/+/master/docs/howto_build_SDK.txt
  $ cd ~/my-android-git
  $ . build/envsetup.sh
  $ lunch sdk-eng
  $ make sdk
這樣build 出 linux sdk
要build windows sdk 要 follow 後面說的,改用
  $ make win_sdk

需要tofrodos 跟 mingw32
----------------------------------
imx sdk

結果 fail:
make: *** [out/target/product/generic/obj/APPS/BasicDreams_intermediates/arm/package.odex] Aborted (core dumped)

因為是 generic 這個 platform fail..
所以 lunch 用 imx 的試試看...

還是 fail...
development/build/sdk.atree:193: couldn't locate source file: userdata.img
development/build/sdk.atree:482: couldn't locate source file: system/app/EmulatorSmokeTests/EmulatorSmokeTests.apk

ref: http://www.programgo.com/article/1118474640/

解決方法,跟google 到的一樣,把 sdk.atree 中,couldn't locate source file 的 item 都 comment 掉,再 make 一次就可以了。

-----------------------------------
aosp sdk
5.0.2_r1, aosp_x86-eng, make sdk..
development/build/sdk.atree:47: couldn't locate source file: bin/sqlite3
development/build/sdk.atree:49: couldn't locate source file: bin/etc1tool
development/build/sdk.atree:86: couldn't locate source file: bin/bcc_compat
development/build/sdk.atree:167: couldn't locate source file: framework/layoutlib.jar
development/build/sdk.atree:168: couldn't locate source file: framework/icu4j.jar
development/build/sdk.atree:481: couldn't locate source file: framework/layoutlib-tests.jar
development/build/sdk.atree:482: couldn't locate source file: system/app/EmulatorSmokeTests/EmulatorSmokeTests.apk
查.除了 sqlite3以外,真的都沒有 build 出來。
layoutlib 是給 eclipe 用的。

然後 JBQ 說: https://groups.google.com/forum/#!topic/android-building/kePECtbvGlE
lunch sdk-eng
make sdk

原來是有歷史的,..make sdk 要先..

還是失敗 -- gitlab install from source

https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md
--- 這篇不夠清楚。一直 fail...最後連 GemFile 都不見了

可能要試試看這一篇..
https://www.linode.com/docs/applications/development/how-to-install-and-configure-gitlab-on-ubuntu-14-04-trusty-tahr

一樣,到 ,,.git bundle install 時出現 GemFile 找不到。

會是 arm platform 的問題?

改用 virtualbox 裝 jessie 是一次。

紀錄一下手動安裝 ruby 的 install path

ruby..
$sudo make install
...
...
installing binary commands:   /usr/local/bin
installing base libraries:    /usr/local/lib
installing arch files:        /usr/local/lib/ruby/2.1.0/armv7l-linux-eabihf
installing pkgconfig data:    /usr/local/lib/pkgconfig
installing command scripts:   /usr/local/bin
installing library scripts:   /usr/local/lib/ruby/2.1.0
installing common headers:    /usr/local/include/ruby-2.1.0
installing manpages:          /usr/local/share/man/man1
installing extension objects: /usr/local/lib/ruby/2.1.0/armv7l-linux-eabihf
installing extension objects: /usr/local/lib/ruby/site_ruby/2.1.0/armv7l-linux-eabihf
installing extension objects: /usr/local/lib/ruby/vendor_ruby/2.1.0/armv7l-linux-eabihf
installing extension headers: /usr/local/include/ruby-2.1.0/armv7l-linux-eabihf
installing extension scripts: /usr/local/lib/ruby/2.1.0
installing extension scripts: /usr/local/lib/ruby/site_ruby/2.1.0
installing extension scripts: /usr/local/lib/ruby/vendor_ruby/2.1.0
installing extension headers: /usr/local/include/ruby-2.1.0/ruby
installing default gems:      /usr/local/lib/ruby/gems/2.1.0 (build_info, cache, doc, extensions, gems, specifications)
                              bigdecimal 1.2.4
                              io-console 0.4.3
                              json 1.8.1
                              minitest 4.7.5
                              psych 2.0.5
                              rake 10.1.0
                              rdoc 4.1.0
                              test-unit 2.1.7.0

流水帳

可能有兩件事可以做:
  • 繼續install gitlib (on arm platform)
  • test build ldd3 example
  • test build sdk with my own new framework api & use my sdk on android studio
  • build image for emulator
都是在 banana pi 上。