28 August 2011

Compiling SDL on Lion

I ran into this problem while trying to compile Gingerbread on Lion, figuring that the existing SDL was a 64-bit library and Android wanted the 32-bit one. I grabbed the source from the SDL website and tried to compile using the -m32 flag in gcc, which resulted in several assembly errors. It turns out that this is a known incompatibility with llvm-gcc. [1] However, changing CC to gcc-4.2 wasn't good enough; ltmain.sh complains that it can't infer the tag configuration. [2]

Here is how I solved the problem: In build-scripts/makedep.sh, every time --mode=compile appears, put --tag=CC next to it. Then, in libtool, add a gcc-4.2 entry to the case statement in func_infer_tag() as follows:

case "$@ " in
  " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "* | "gcc-4.2"*)

It compiles! Install the library with sudo make install.

Unfortunately, the vanilla SDL and SDL used for the Android emulator aren't the same; besides the Android one being two releases earlier, I'm not too sure what the other differences are. The steps outlined above are not sufficient for building the SDL needed for the Android emulator. I'll report back if and when I get that working.

24 August 2011

Long Live Steve Jobs


To the Apple Board of Directors and the Apple Community:

I have always said if there ever came a day when I could no longer meet my duties and expectations as Apple’s CEO, I would be the first to let you know. Unfortunately, that day has come.

I hereby resign as CEO of Apple. I would like to serve, if the Board sees fit, as Chairman of the Board, director and Apple employee.

As far as my successor goes, I strongly recommend that we execute our succession plan and name Tim Cook as CEO of Apple.

I believe Apple’s brightest and most innovative days are ahead of it. And I look forward to watching and contributing to its success in a new role.

I have made some of the best friends of my life at Apple, and I thank you all for the many years of being able to work alongside you.

Steve

18 August 2011

2011: Year of the copycats?

Apple said the phrase first back in March this year regarding tablets, but turns out it's true for cars too (who would have guessed?)

Here's the leaked picture of the 2012 Lexus GS:
Photo credit: LeftLaneNews

And here's the F10 5-series:
Photo credit: AutomotiveRoom

Here's a cursory list of similarities:
  • Layout of the vents with respect to the strip of wood. Both cars have the peripheral vents above the wood and the IP stack vents adjacent to the wood.
  • Layout of IP stack: Screen above vents above CD player above climate, with the gear shift to the left of the entertainment controller.

Has Lexus lost its touch of uniqueness? Sure, these cars probably have been in development for several years, but this layout is certainly not the only way to layout a mid-level luxury sedan.

[EDIT] Seems like the original leaked GS interior image has been pulled, but no worries! It has been cached.

01 August 2011

Homage to the Classic Mac

Today, Apple released iCloud web apps in beta form. Perhaps the most intriguing aspect is the ``Cookies Required'' page:

iCloud needs cookies

You may think that the eyes and the nose of the cloud look familiar. You're not mistaken. VoilĂ , exhibit A, the classic Mac icon:

classic mac