PDA

View Full Version : Porting Linux application to N900


ludakrshna
11-29-2009, 08:32 PM
How would one go about "porting" linux apps to the N900?

kyle
11-29-2009, 08:36 PM
Here's a quick guide.

1. Install the SDK:

http://www.forum.nokia.com/Tools_Docs_and_Code/Tools/Platforms/Maemo/

2. Read up on debian source packages:

http://www.debian.org/doc/manuals/apt-howto/ch-sourcehandling.en.html

3. Add a source repository to your /etc/apt/sources.list (within the SDK) that has the package you want to port.

4. sb-conf select FREMANTLE_ARMEL

5. apt-get source <packagename>

6. cd <packagedir>

7. dpkg-buildpackage -rfakeroot -b

8. Copy the resulting .deb file to your N900 and install with 'dpkg -i'

maxximuscool
11-29-2009, 08:45 PM
Would be nice to porting OpenOffice to N900 and run it at full speed without draining the RAM and the CPU.

Hope someone recompile it on N900 and pass it around :D

linuxeventually
11-29-2009, 09:24 PM
my way:
5. wget http://site.org/sourcecode.tar.gz
6. tar xzvf sourcecode.tar.gz
7. cd sourcecode/
8. ./configure --prefix=/opt --host arm
9. deb-make
10. nano debian/control
change architecture: all to architecture: armel
11. nano debian/rules
change ./configure to ./configure --prefix=/opt --host arm
12. dpkg-buildpackage -rfakeroot
13. (on tablet) X-Terminal>$ /sbin/ifconfig wlan0 | grep inet
14. scp ../source_armel.deb <inet addr>:/root/
15. (on tablet) get root then # dpkg -i source_armel.deb

Texrat
11-29-2009, 11:11 PM
Thread moved to better location. Not actually a Brainstorm subject.

rcs1000
11-30-2009, 03:42 AM
And how would we 'opt-ify' the resulting packages?

I ask because I'm planning on getting frotz and joe (my favourite editor) working...

pelago
11-30-2009, 04:57 AM
And how would we 'opt-ify' the resulting packages?

I ask because I'm planning on getting frotz and joe (my favourite editor) working...
See http://wiki.maemo.org/Opt_Problem and http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Packaging%2C_Deploying_and_Distributing/Installing_under_opt_and_MyDocs