maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Developing on the N900 itself ? (https://talk.maemo.org/showthread.php?t=32772)

noobmonkey 2010-03-08 23:08

Re: Developing on the N900 itself ?
 
just to add i use Khertans packager, and pyGTKEditor, and i was brand new to all things linux, maemo, python until recently :) and i really find it all quite easy now (Well almost all)

The wiki's are ok, you do need to research yourself a bit... QT can be a pain (But hopefully not for much longer) - and its quick... i mean, write code, test code, package code, upload to devel - all done in under 30 mins...

change code, package code, upload - another 10 mins :D

quite easy to do anywhere with pygtkeditor :)

qole 2010-03-08 23:50

Re: Developing on the N900 itself ?
 
noobmonkey: are you using a new version of pypackager, or py2deb?

I had to patch py2deb myself to use the "Maemo Display Name" and to fix the bugtracker field...

noobmonkey 2010-03-08 23:52

Re: Developing on the N900 itself ?
 
Quote:

Originally Posted by qole (Post 560615)
noobmonkey: are you using a new version of pypackager, or py2deb?

I had to patch py2deb myself to use the "Maemo Display Name" and to fix the bugtracker field...


Khertans new and improved one :) (Yeah he patched mine for me - hehe) - but was working fine apart from the bugtracker!

Now i just need to resolve rogue icons on the website lol :)

(Still thoroughly impressed!)

delaroca 2010-03-09 07:41

Re: Developing on the N900 itself ?
 
Quote:

Originally Posted by qole (Post 560465)
If you want to make your own image:

5. Use Easy Chroot (or do it the hard way if you insist) to chroot into the image! Remember to install the Nokia Binaries.

Ok, up to step 5... when trying to do apt-get update within the chroot (mounted with easy chroot), I end up with.

Code:

[root@Debian: /]apt-get update
Ign http://repository.maemo.org fremantle/sdk Release.gpg
16% [Working]FATAL -> Could not set non-blocking flag Bad file descriptor
E: Method http has died unexpectedly!
[root@Debian: /]

Presumably, this happens when the file system in question has been mounted with the 'nodev' option... but remounting it with the 'dev' option ("mount -o remount,dev /.debian") makes no difference.

Any idea what's going on?

--denis

qole 2010-03-09 20:18

Re: Developing on the N900 itself ?
 
denis:

Try this:
1. mount the chroot
2. run "sudo synchroot" from the terminal
3. try again

qole 2010-05-17 16:31

Re: Developing on the N900 itself ?
 
Hi all,

Someone pointed out to me that my image is getting pretty out of date.

I'll make a new PR 1.2 image in the next short while, but until then, you can grab the PR 1.2 armel rootstrap tarball (the stuff that goes in the image file) from here:

maemo-sdk-rootstrap_5.0_10.2010.09-3_armel.tgz

You can dump that into an image yourself, or wait a few days and grab mine.

EDIT: Looks like it may not be "a few days" after all... ;)

Venemo 2010-05-17 21:01

Re: Developing on the N900 itself ?
 
There is an app in the repos called PyGTKEditor, which claims to be a lightweight IDE developed specifically for Maemo devices.

Unfortunately I don't know Python, but it may be of use to those who do.

qole 2010-05-17 21:35

Re: Developing on the N900 itself ?
 
So I've been working on my pr1.2 development chroot... It is interesting how much Nokia keeps out of the original rootfs. I tried installing Leafpad without downloading the Nokia binaries, but the menu is unreadable because the localization files are in the Nokia binaries repository...

I've been thinking, wouldn't you be able to run the apps of PR 1.2 if you downloaded my on-device SDK, chrooted in, and then installed the Nokia binaries? You would at least be able to run all of the QT apps, right?

Hmmm...

(EDIT: Downloading and installing the Nokia binaries takes a ridiculously long time on-device! :( :mad: I wish I could include them in my image file, but I don't want to incur the wrath of Nokia...)

Tigerite 2010-05-18 08:39

Re: Developing on the N900 itself ?
 
Hi Qole,

Many thanks for the image you created yesterday, it's much appreciated. However I do have a problem qchroot'ing it, I get the following:

Code:

Nokia-N900-02-8:/home/user/MyDocs# qchroot maemo-sdk-v1_2.img.ext2 /sdk
Mounting...
using image file: maemo-sdk-v1_2.img.ext2
fs type is ext2
Using ext2 file system
mounting maemo-sdk-v1_2.img.ext2 on loop
...maemo-sdk-v1_2.img.ext2 mounted on loop0
.
mount: mounting /dev on /sdk/dev failed: No such file or directory
..
mount: mounting none on /sdk/dev/pts failed: No such file or directory
mount: mounting /dev/shm on /sdk/dev/shm failed: No such file or directory
...
....
mount: mounting /var/run/dbus on /sdk/var/run/dbus failed: No such file or directory
mount: mounting /var/lib/dbus on /sdk/var/lib/dbus failed: No such file or directory
mount: mounting /var/run/pulse on /sdk/var/run/pulse failed: No such file or directory
Everything set up, running chroot...
[root@maemo5_v1_2: /]

This then results in ./configure failing as so:

Code:

./configure: line 1: /dev/null: No such file or directory
./configure: line 74: /dev/null: No such file or directory
./configure: line 1: /dev/null: No such file or directory
./configure: line 83: /dev/null: No such file or directory
./configure: line 124: /dev/null: No such file or directory
./configure: line 136: /dev/null: No such file or directory
./configure: line 242: /dev/null: No such file or directory
./configure: line 242: /dev/null: No such file or directory
./configure: line 242: /dev/null: No such file or directory
./configure: line 242: /dev/null: No such file or directory
./configure: line 242: /dev/null: No such file or directory
./configure: line 242: /dev/null: No such file or directory
./configure: This script requires a shell more modern than all
./configure: the shells that I found on your system.
./configure: Please tell bug-autoconf@gnu.org and malattia@linux.it
./configure: about your system, including any error possibly output
./configure: before this message. Then install a modern shell, or
./configure: manually run the script under such a shell if you do
./configure: have one.

Anything I can do to fix this? :)

qole 2010-05-19 22:00

Re: Developing on the N900 itself ?
 
Sorry, Tigerite, that version I uploaded to qole.org was pretty basic. I hadn't tried running it on my N900 yet. I'm trying to get a "good" version before announcing it.


All times are GMT. The time now is 01:28.

vBulletin® Version 3.8.8