"A man is not old until regrets take the place of dreams."
Pretty much everyone must have heard several instances of the "you are not a man until..." sentence followed by some more or less moronic action. When it comes to C APIs, I suspect that the programming counterpart recently has become "You did not build a real C API until you can compile and run it on a Raspberry PI". In fact, there seems to be a race to run every bit of software ever conceived on a Raspberry PI. So, it didn't take much before someone in our C and C++ engineering team in Milan, Italy, picked up the gauntlet and accepted the challenge on behalf of our WURFL InFuze product line.
Today, we can report that that challenge was succesfully won.
We used a Model B Raspberry PI (512 Mb RAM and ARM 700Mhz processor). Arguably, the most popular Linux distribution for that device is Raspbian, a Debian 6 port for the ARM processor.
We used the documentation and build scripts that are used for our standard Ubuntu and Debian 6 distributions. After installing the dependencies for compiling the WURFL InFuze products, we launched the make_all_deb_rpm.sh, script. This is the script that we run to compile all libraries and modules. Here is what the script does:
- Install all applications and libraries needed to compile (libboost, gcc, etc.)
- download the source code of the various components to include the WURFL libraries and modules.
- run configure and make all to compile everything
- launches fpm to create a .deb package.