[maemo-developers] How to detect Maemo in automake?

From: Eero Tamminen eero.tamminen at nokia.com
Date: Thu Feb 21 14:51:51 EET 2008
Hi,

ext Marcin Juszkiewicz wrote:
> Dnia Thursday, 21 of February 2008, Alberto Garcia napisał:
>> On Thu, Feb 21, 2008 at 11:15:31AM +0100, Marcin Juszkiewicz wrote:
>>> I wonder why this is really needed... If application is for Maemo
>>> then it use its libraries (libosso, libhildon) and should check for
>>> those libraries not for scratchbox.
> 
>> Yeah, but if your desktop PC happens to have libosso installed (it's
>> included in Debian) then autoconf will detect that you're compiling
>> for Maemo.
> 
> If you screw configure phase by not providing informations where headers 
> are then it can. But its bug of person who do compilation.
> 
>> In my case compiling for Maemo means compiling using the Maemo SDK
>> (and probably for the Nokia 770/N800/N810). And scratchbox seems to be
>> the official way to use the Maemo SDK.
> 
> It does not mean that it is best way ;D 
> 
> I heard enough complains about scarybox to not even touch it with long 
> stick. With OE I can just "bitbake gvim" and result is package which 
> works on device.

EO is an embedded distribution that supports cross-builds.  Maemo is
another embedded distribution (based on Debian to some extent) which
assumes Scratchbox is used to do cross-builds.  Scratchbox is a tool to
cross-build unmodified open sources (using autotools etc) software and
even full distributions.

With EO you need to create a "recipe" for a software if it already
doesn't have it to cross-build it.  With Scratchbox, you don't need
to do this, you just build it like you were doing a native build.
(in most cases, there are some exceptions)


 > No need to remember which libraries to build (and how).

When you're building Debian packages, the packages declare
what are their run-time and build dependencies.  Just use
that information.  You can view dependency and other information
about Debian packages from here:
	http://www.debian.org/distrib/packages


	- Eero

More information about the maemo-developers mailing list