6/24/2011

Compiling packages under /usr/local

Trying to compile packages, sometimes I build a package, and the next package I try to compile is unable to see the newly built package. The problem lies with how Fedora is configured with pkg-config, which by default does not find libraries under /usr/local/lib.

Adding a file like local.conf to /etc/ld.so.conf.d containing:
/usr/local/lib

Then, executing:
ldconfig

Solves the problem!

Another solution is to set the PKG_CONFIG_PATH environment variable:

export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig

6/23/2011

Samsung Galaxy Android Devices

I'm the proud owner of a Samsung Fascinate and Samsung Galaxy Tab (7").
I'm impressed by the ease by which firmware can be loaded directly without having to use a recovery program, although the familiar ClockWorkMod recovery and others are available for both devices. For Windows users there are two programs that let you load firmware directly, heimdall and odin. For Linux users there is just the one, heimdall. Unfortunately, some rom developers only package their roms in just one of these file extension formats: .zip for the recovery programs, .tar.md5 for odin, and individual files such as:
cache.rfs
dbdata.rfs
factoryfs.rfs
movinand.bin
recovery.bin
zImage
atlas2_2.pit
for heimdall. Fortunately, you can just unzip, or tar -xf the packaged archives to install most archive packages directly. Beware, some .zip files may also have script files that have to be run by the recovery program to work correctly, and may be specific to certain versions of recovery programs.
To be able to flash these files using heimdall, the device has to be put into download mode:
adb reboot download
Or, by holding home+volume down+power at boot time, or just volume down if the battery is removed and the phone is connected to the computer via usb.
Once the device is in download mode, to load a custom recovery then execute:
heimdall flash --recovery recovery.bin

About Me - WrightRocket

My photo

I've worked with computers for over 30 years, programming, administering, using and building them from scratch.

I'm an instructor for technical computer courses, an editor and developer of training manuals, and an Android developer.