Build Standalone Binaries in C for Android

Procedure is simple. Here is the detailed steps and hopefully it is helpful for others.

Preparation

  • Know your Android system code, whether it's android-18, or android-22, or others. Here we assume android-21.
  • Download the latest NDK. Here we assume NDK path is /home/happyz/ndk (or simply ~/ndk)
  • Figure out the gcc version, either 4.8 or 4.9. If not, update it.
  • Assume the output folder you want to store the toolchain is at ~/androidLib/
  • Our system is Ubuntu 64-bit, therefore we need to specify --system=linux-x86_64

Continue reading Build Standalone Binaries in C for Android

How to extend primary partition size in Ubuntu

Lately I'll need to add some space to Ubuntu, but it was installed in VMware. And the following method could be the same for the actual desktop.

  1. Find a CD that has Ubuntu image burned in, i.e. a boot up CD.
  2. Reboot the device to CD-loaded Ubuntu - click "try without installing"
  3. Run "gParted"
  4. Locate "Extended Partition" with "linux-swap", remember the size of swap (mine is 8GiB
  5. Right click "linux-swap" and click "swapoff"
  6. Then right click "linux-swap" and click "Delete"
  7. Also delete the corresponding Extended Partition
  8. Now we should have "sda1" and "unallocated space"
  9. Right click "sda1" and choose "Resize/Move"
  10. Adjust the size of the primary drive and save, for instance, 8GiB for your swap
  11. Now right click "unallocated space" and create a new partition - choose "Extended Partition"
  12. Right click and select "new" and then choose "linux-swap" partition.
  13. Click the green arrow for applying the changed
  14. Restart the system!

Attending MobiCom TPC Meeting

Booked the ticket to the MobiCom TPC meeting in Salt Lake City upon Heather's request. Being served as the "man in station," I experienced what a 1st-year PhD student would possibly never have a chance to see. According to Ben, even a 4th or 5th year PhD wouldn't have this chance to attend such a meeting. My major task was to take notes for the meeting, and here is the story.

I left in the early afternoon from Santa Barbara airport. It's always a pain leaving from Santa Barbara as it always goes to LAX and then other places. And the flight is just about an hour. I'm not quite sure why but feel tired already after getting off the plane.

On the plane I was doing my homework, i.e. remember the names of TPC members. I am very bad at names, and I had a hard time to link people's faces with their names. Hence, I prepared a full list of TPC names, their photos, and what they majorly do. There are roughly 50 people, a few from Italy, France, and England. It would be quite awkward if I knew no body there. I felt I should prepare a bit and at least got familiar with the names first.  Continue reading Attending MobiCom TPC Meeting