[maemo-developers] [maemo-developers] Building a binary package?

From: Visti Andresen talpa at galnet.dk
Date: Sat Jul 8 18:16:43 EEST 2006
On Sat, 8 Jul 2006 03:07:29 -0400
publicmr at gmail.com wrote:

> Hi,
> 
> I am new to the Nokia 770 development (as well as debian packages) and have
> recently finished setting up the development environment (Maemo 2.0). So far
> I have got everything up and running and I have been able to build a simple
> Hello World application from scratchbox. I ran it in the emulator (Xephyr)
> and now I am trying to run it in the Nokia 770.

I don't know how to build deb packages (YET) but you can just compile the application
(Remember to switch to your ARM cross compilation target inside scratchbox)

Copy it to you nokia, start xterm (extra application you have to install), cd to the location of the application and execute it using "./application_name".
You may have to change the execute permissions using "chmod u+x ./application_name" before you can execute it.

> I have been trying to build
> a binary package that includes the helloworld executable, but so far I have
> not been successful. Is there any simple way to quickly build a binary
> package from my helloworld executable? I have been able to build the
> maemopad example package, but since my project has only 1 file, I was
> wondering if there is a simpler way to create my package (avoiding all the
> makefiles). BTW, using dpkg-deb I managed to build a package but the 770
> complained it was not installable.
> 
> Thanks!

My guess would be that you probably just forgot to change target inside scratchbox.
Also remember to "make clean" you application after you switched target, i386 object files don't work on an ARM CPU :o)

Hope your problem is trivial, at least I have no problems running my apps on the N770.

More information about the maemo-developers mailing list