maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Announce] DonQt/DON900 (Develop-On-N900) (https://talk.maemo.org/showthread.php?t=71546)

humble 2011-03-27 16:53

[Announce] DonQt/DON900 (Develop-On-N900)
 
5 Attachment(s)
DON900 (Develop-On-N900)

Caution: this is for power users and learners.

"Whats is Don?"
Don is a Maemo sdk installer.
Developed by me, coded in python.
I attained information from this Thread.

"Why'd ya do it?"
This project was started because, I wanted to be able to tweak NXEngine and compile quickly.
I stumbled up upon the thread up there.
Then that took back seat due to i was tweaking this.
but now I'm able too:>

"So what do I need to do?"
Well ....
Internert conection.
Code:

apt-get install easy-chroot lzma p7zip-full python sudser wget
Then install DON900.deb.
Then run it.

"Whats the future?"
Suggestions, Gui, upload, it depends on if it is popular or not.

"Any other comments?"
well i have to disable watchdog's to get everything to run it smooth, with no reboots.
so if you know noting of this google does. *ex.disable n900 watchdogs
but please let me know if it works with out needing it.

enjoy

*not tried or proven
edit:tried

DonQt release post http://talk.maemo.org/showpost.php?p...6&postcount=14
DonQt 0.0.1-2 release post http://talk.maemo.org/showpost.php?p...0&postcount=17

humble 2011-03-27 16:54

Re: [Announce] DON900 (Develop-On-N900)
 
Setting up SDK

after installation, (z) to start shell.
Then..
Code:

ln -s /bin/busybox /bin/su
apt-get update
apt-get install locale-resolver-data posix-locales libi18n-locale-resolver0
apt-get install nokia-binaries

locale-resolver-data posix-locales libi18n-locale-resolver0 are to get rid of some perl errors.
Fullpost

after you install nokia-binaries wait awhile.


there is a issue with package alarmd but maybe some one can figure it out

Edit:
Quote:

Originally Posted by qole (Post 666821)
I had to hack these two files to get the binaries to install (just remove all the bits where it tries to start the daemons):
/var/lib/dpkg/info/hal.postinst
/var/lib/dpkg/info/alarmd.postinst

Full post

Edit:i find that i only need to edit "alarmd.postinst"

humble 2011-03-31 12:49

Re: [Announce] DON900 (Develop-On-N900)
 
first off thanks guys. i appreciate all the thanks:).
that means a gui is on the way:D. then if all is well upload to the repositories.

im having issues installing python sdk(i want to compile cx_Freeze-4.2.3 to turn this and other .py scripts to a binaries). haven't tried on the pc yet;)
is it possible?

psychologe 2011-04-01 01:17

Re: [Announce] DON900 (Develop-On-N900)
 
very cool,like it

Nokia 5700 2011-04-02 16:38

Re: [Announce] DON900 (Develop-On-N900)
 
Soo... A portable SDK? Nice :)
Does it support Git and all that?

humble 2011-04-08 10:03

Re: [Announce] DON900 (Develop-On-N900)
 
i've made a gui but it not fully functional yet,(loading bar's are hard as s***)so now i have programmers block. :D

so my motivation is kinda down on the gui. unless if some one could help..(i could learn a thing or two)

and to the git question, git is already compiled for fremantle. so yes

clasificado 2011-04-26 00:44

Re: [Announce] DON900 (Develop-On-N900)
 
Lets try it!

For the record: after install, the start script is in /bin/StartDON900.sh

well, it finished with this messages, ill see what this means

Code:

Copying Essential File's To SDK..
Done..

Unmount SDK
..Unmounting /floppy...
successful unmount...
Done..

Changing Dir..

Making /sdk Dir)
Done..

Syncing..
cannot sync; chroot not mounted!
Writing exit 101 to policy-rc.d ..
Done..

the line that "fails" is os.system("CHROOT=/floppy synchroot");
i dont know what synchroot do, but seems that the image works anyway.

After the installation, it is needed to put the TOKEN with the option V, if not the "apt-get install nokia-binaries" inside the chroot will fail

humble 2011-04-27 13:32

Re: [Announce] DON900 (Develop-On-N900)
 
i was thinking on the next release to make it so we don't have to disable watchdogs and intergrate (v) token option with (z)install option so its just one thing. but then i thought about what if someone has an issue with there token? should they have to reinstall everything? i could leave the option and still intergrate it, its whatever:D i rewrote this i C but its better in python (you guys get to edit and see all in the program).


@clasificado
i have to look more into this. if its not needed i will remove.
Code:

os.system("CHROOT=/floppy synchroot");

daperl 2011-04-27 14:15

Re: [Announce] DON900 (Develop-On-N900)
 
synchroot is from qole's easy-chroot package. It copies over stuff like /etc/passwd, /etc/group, /etc/hosts, ..., etc. to the chroot.

clasificado 2011-04-27 20:59

Re: [Announce] DON900 (Develop-On-N900)
 
@daeprl so maybe a manual synchroot sometimes is not a bad idea

@humble, im not following the swap thread, but with swappolube and the masive IO thread configs, all the instalation goes without hangs or reboots

for the record, the chroot works great! i was able to comiple GIT with it :D, now i can try packaging some debs on-the-go

Radicalz38 2011-04-29 16:37

Re: [Announce] DON900 (Develop-On-N900)
 
Hi! How was compiling on device? Is it fast? I am expecting it to be slow. How long does it take before you fully compile NXEngine btw?

humble 2011-04-29 19:39

Re: [Announce] DON900 (Develop-On-N900)
 
for NXE.. no more than a minute. it takes more time than a computer thou.

humble 2011-04-29 19:56

Re: [Announce] DON900 (Develop-On-N900)
 
1 Attachment(s)
DonQt not to be mistaken for Don Coyote:D

all buttons work. im having an issue with returning to the gui from osso-xterm. im trying to do it with d-bus but i don't know why my d-bus service file does not function. i figured that would be the best method. any suggest towards this is welcomed.

humble 2011-05-03 11:16

Re: [Announce] DON900 (Develop-On-N900)
 
Release: DonQt
Coded in pyqt

Description: DonQt is a tool to set up “Maemo SDK” without risking any root space or destroying the system. DonQt is just a GUI, it uses commands developed and debugged by daperl, qole, Tigerite. To achieve a functional SDK in a chroot environment.

Known issues:
  • No automatic returning to the GUI from osso-xterm.
    (if anyone has a solution to this im all ears).
  • When entering Token this appears “code:QcoreApplication::exec: The event loop is already running. (but don't pay any mind to it because you enter token the same way).

it is attached in first post.

(if there is any name I did not mention who helped with development/debugging please step forward..i mean no disrespect).

daperl 2011-05-03 13:03

Re: [Announce] DonQt/DON900 (Develop-On-N900)
 
Thanks for doing this, and if you're looking for ideas, have you seen the Maemo 5 SDK GUI installer for scratchbox? I could be wrong, but I think it's actually written in Qt Python. I've used it a few times; it really makes for a painless SDK install.

gerdich 2011-05-12 20:28

Re: [Announce] DonQt/DON900 (Develop-On-N900)
 
A feature request:
As option:
- Intergration of freepascal
(from this thread:
http://wiki.maemo.org/Compile_FreePascal_on_device
)

humble 2011-05-13 12:46

Re: [Announce] DonQt/DON900 (Develop-On-N900)
 
1 Attachment(s)
@daperl
i looked in to it, the code is well integrated.
i'd like to use there widow to enter the token (or make one).

@gerdich
could you elaborate more on this. when i read i basically get its a compiler for graphics development(games,etc)?

another question, do you personally use this?

@everyone
i have an update but it not a major overhaul. just fix a little issue.

Code:

  5/8/11(0.0.1-2)
          >+Found away to start without StartDonQt.sh.
          >+Can now open faqs and terminal at same time.


gerdich 2011-05-13 14:42

Re: [Announce] DonQt/DON900 (Develop-On-N900)
 
Yes I use it.

Lazarus (Gui for freepascal) is like BORLAND DELPHI for Windows, but for Linux&Windows and it compiles with n900.

Lazarus is a complete development plattform to program everything including GUI. It has a GUI for developers and a designer for GUI's and it compiles on n900.
It's a complete development environement for n900 (even on device!!!)
Instead of C it compiles to freepascal. But it opens all the libraries of C, if the freepascal headers are given.
You can program sound, graphics, networking, ... everything, using the libraries of the n900.

It is based on GTK (like n900!!).


Yes! I am programming with it! And it works very nice!
I can use my delphi programs on windows. I can transfer them to lazarus (on windows). I recompile them on debian which crosscompiles to ARM. It runs on ARM and has QT-support.
It can even write python libraries.

In fact it is the ideal tool to develop for n900.

(It can also openGL, but I've not seen any adaptation for openGLES.)

I've got a compiler on n900.
But I would like to have an easy tool that installs all libraries and recompiles the Lazarus GUI everytime a new version appears.

humble 2011-05-14 01:28

Re: [Announce] DonQt/DON900 (Develop-On-N900)
 
@gerdich
now i like the idea better. i'll see what i can do(if any thing i'll ask you since you've done it before). maybe even switch up the GUI. i like what they did on this Thread. but in the current state of my code its not possible... or is it?:confused:

gerdich 2011-05-14 16:13

Re: [Announce] DonQt/DON900 (Develop-On-N900)
 
I thought that you could add an option-button for the freepascal SDK

The binutils are the same.
The source is here:
svn checkout http://svn.freepascal.org/svn/fpc/trunk fpc
(Following to http://wiki.maemo.org/Compile_FreePascal_on_device)

The only thing you have to add is the precompiled binary of "ppcarm" (crosscompiled on debian .e.g., I can send it to you if you want)

If you want also to add the lazarus gui you need
svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus

and the instructions are here.
http://wiki.maemo.org/Compile_FreePascal_on_device


This would be a very nice extention of the DON !!!!

trx 2011-05-14 16:17

Re: [Announce] DonQt/DON900 (Develop-On-N900)
 
Quote:

Originally Posted by gerdich (Post 1006220)
I thought that you could add an option-button for the freepascal SDK

The binutils are the same.
The source is here:
svn checkout http://svn.freepascal.org/svn/fpc/trunk fpc
(Following to http://wiki.maemo.org/Compile_FreePascal_on_device)

The only thing you have to add is the precompiled binary of "ppcarm" (crosscompiled on debian .e.g., I can send it to you if you want)

If you want also the lazarus gui you need
svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus

and the instructions are here.
http://wiki.maemo.org/Compile_FreePascal_on_device


This would be a very nice extention of the DON !!!!

Check TxPad source package from extras-devel, there you have scripts(don't forget to modify the paths!) needed to develop on n900(scratchbox/autobuilder), lazarus isnt compiled tho, as only sources are needed to compile the app...

Also, TxPad supports pascal of course so u can use it to write..

TRX.

humble 2011-05-15 09:42

Re: [Announce] DonQt/DON900 (Develop-On-N900)
 
Quote:

Originally Posted by gerdich (Post 1006220)
The only thing you have to add is the precompiled binary of "ppcarm" (crosscompiled on debian .e.g., I can send it to you if you want)

yes please and thank you.;)


All times are GMT. The time now is 08:12.

vBulletin® Version 3.8.8