Reply
Thread Tools
Posts: 437 | Thanked: 90 times | Joined on Nov 2006
#11
1. Download vmWare Player for your OS

2. Download vmWare Maemo appliance: http://www.vmware.com/vmtn/appliances/directory/702

3. Read the Readme

4. Download the sources to the scratchbox environment (the path on the system is,somewhere in /scratchbox/ -- hunt around)

5. Compile and debug as usual (ARM target in Scratchbox)

6. Transfer the binaries to the N800/770 (I email them to myself)

HTH,
Dre
 
Posts: 5 | Thanked: 2 times | Joined on Dec 2007
#12
Is there a video of how to compile command line apps somewhere or would someone be willing to record next time you do one? I'm trying to recompile Lynx for N800 / OS 2008. Documentation seems to cover GUI development (which, granted is probably what most people are doing and is well beyond my level of programming experience at the moment).

I've got the virtual machine and can open scratchbox but am having some trouble wrapping my head around how to compile for N800 and get it to come out in a '.deb' package. I ran ./Configure and it seemed to check for dependencies, then said something about creating a makefile, but when I try to run Make on that it says "make: Nothing to be done for `makefile'." Running 'make install' seems to give me an executable which feels like I'm getting close . . . curious to know if there's a 'make ARMDebPackage' or something to that effect.

Nothing urgent, but I'd love to learn how to do this properly . . . I hope this all makes sense . . . constructive suggestions welcome.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#13
That's why you should read the INSTALL/README file in the package. Also, you just run "make" when a Makefile is created (you can specify a different file with the -f parameter)

Anyway, I've compiled the stable with the steps I did.
Except for the prefix, the rest of the CFLAGS (configure flags) were personal choice, check the README for ones that you can add or remove my ones.

sbox-CHINOOK_ARMEL: ~] > wget http://lynx.isc.org/lynx2.8.6/lynx2.8.6.tar.bz2
[sbox-CHINOOK_ARMEL: ~] > tar jxvf lynx2.8.6.tar.bz2
[sbox-CHINOOK_ARMEL: ~] > cd lynx2-8-6/
[sbox-CHINOOK_ARMEL: ~/lynx2-8-6] > cat README | more
[sbox-CHINOOK_ARMEL: ~/lynx2-8-6] > cat INSTALLATION | more
[sbox-CHINOOK_ARMEL: ~/lynx2-8-6] > ./configure --prefix=/usr --enable-change-exec --enable-cgi-links --enable-charset-choice --enable-exec-links --enable-exec-scripts --enable-externs --enable-gzip-help --enable-internal-links --enable-ipv6 --enable-nested-tables --enable-scrollbar --enable-underlines

(Those cflags seem pretty normal except for --enable-ipv6. Why? Well, Diablo will have support for it so I may as well enable it and embrace the future... :P)
(if a program has CFLAGS, you will usually find them in README/INSTALL or by running ./configure --help)


[sbox-CHINOOK_ARMEL: ~/lynx2-8-6] > make
<waiting to compile>
<done with no errors!>
(This is qwerty's dodgy way of packaging, mostly right but it could be done so much better)
[sbox-CHINOOK_ARMEL: ~/lynx2-8-6] > dh_make --createorig
<s>
</me goes into /scratchbox/users/faheem/home/faheem/lynx2-8-6/debian folder with a file manager>
</me edits control and changes Maintainer: unknown <faheem@unknown> to Maintainer: Faheem Pervez <qwerty12>>
<I also change Section: unknown to Section: user/net so that the built in package manager will install it fine without hacks (Don't use user/net for everything, different types of packages have different user/'s (but use user/ for everything, it's the bit after you should check)>
<I then edit the rules file to put in my new CFLAGS which I ran configure with>
[sbox-CHINOOK_ARMEL: ~/lynx2-8-6] > dpkg-buildpackage -rfakeroot

(Lets see if our package is made. I'm exiting sbox now because if I want to upload the package, I have to point my firefox into the scratchbox folder (mentioned below)

<Ctrl-D>
faheem@faheem-desktop:~$ ls -l /scratchbox/users/faheem/home/faheem/lynx2-8_6-1_armel.deb
-rw-r--r-- 1 faheem faheem 816656 2008-06-13 07:15 /scratchbox/users/faheem/home/faheem/lynx2-8_6-1_armel.deb

I'll attach up the resulting deb and the source tree for a quick look (no mods were done to actual source).

I'll leave it to you to compile latest development and with some more funkier CFLAGS ;P.

lynx2-8_6-1_armel.deb:
http://www.mediafire.com/?92kgmwjwyiz

source with the quick debian folder:
http://www.mediafire.com/?h9u1ckwgzmz

(Also the diff files for package @ packages.debian.org can be nice for a debian folder (with changes required afterwards)
(And remember, these are the general steps but expect variations in some programs. Also learn some UNIX ).
This is also nice too: http://maemo.org/development/

Last edited by qwerty12; 2008-06-13 at 06:51.
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 15:22.