![]() |
Setup development Environment within N900 possible ??
Hello maemo community. Is this possible to setup a development environment in N900 to try example codes we learn in our class ? I can't carry my laptop in my Uni. So is this possible ? we are currently learning subject of Programming Fundamentals.
If its possible then its amazing as i can carry my N900 everywhere and practice example codes on the go. Thanks. |
Re: Setup development Environment within N900 possible ??
Yes. The N900 is the best phone for onboard development by orders of magnitude. No other phone comes close.
On native Maemo you have Python, shell (bash), full java JDK, you have C and C++ compilers, etc. And I'm sure there are many more. But then, you can install Easy Debian, and when you do that you will be able to program in any language you can program in on a desktop Debian environment. PLT-Scheme, Lua, etc. You can install multiple versions of Python. You can install Ruby. As a matter of fact, you can install gvim or emacs, and use them as programming environments too. Yeah, the N900 is a programmer's dream come true. |
Re: Setup development Environment within N900 possible ??
There are at least a dozen threads on the same topic, including guides on how to set it up. I am surprised that the "start a new thread" page did not throw you some suggestions as you were typing the thread title. I would throw you a bunch of links myself if I wasn't typing this on the Jolla which makes thngs like cut'n'paste a bit tricky (N900 is much better).
I for one am doing ALL my development for the N900 on the device. The only exception is using Qt Creator on the PC, but only for big changes. For minor alterations I skip that and use Leafpad on the device as well. |
Re: Setup development Environment within N900 possible ??
Quote:
Quote:
Im not a hurry. you can post links later as i need a step wise tutorial to set up C, C++ and Python compilers. |
Re: Setup development Environment within N900 possible ??
A couple of links to get you started:
http://talk.maemo.org/showthread.php?t=32772 http://talk.maemo.org/showthread.php?t=90701 Also, install gcc from extras-devel. EDIT: The above links were from the set returned by the TMO search: http://talk.maemo.org/search.php?searchid=16948764 (simpy a search for "on-device development", in case the search ID does not work for you) |
Re: Setup development Environment within N900 possible ??
Anybody has a Maemo 5 SDK ARM image so I can run it via chroot on Nokia N900, N9, etc ? More complete and newer (PR1.3) than item 3 of topic ?
|
Re: Setup development Environment within N900 possible ??
by following THIS for in-device development i have enabled fremantle sdk repo and installed g++ and build-essential via terminal. Now I don't know how to start g++ or any compiler as there are no icon in application menu :o:o.
sorry for being noob but i haven't done anything like this on my N900. any guide on this will be perfect. |
Re: Setup development Environment within N900 possible ??
Just write code in eg leafpad or any other editor save it as "inputcode.c". Then pass it to gcc (or g++ for c++) in xterm:
"gcc -o outputcompiled inputcode.c", then run ./outputcompiled to test. |
Re: Setup development Environment within N900 possible ??
@panjgoori, as mr_pingu said, gcc and g++ are command-line utilities. You need a source file to feed them as a parameter. From the way you ask, it sounds like you want an IDE, i.e. an editor with a built-in ability to build your code. I'm afraid the only one available on Maemo is Mono and it is, quite frankly, horrible. Not only because it comes with the whole C# shebang, which, on a Linux system, is as out of place as an igloo on a beach in Hawaii. It is also pretty unusable because its UI has not been optimized for Maemo. In short, stay away. I know, I've tried.
There have been a few other attempts at source code editors with integrated build and even debug functionality: Edicom, KhtEditor and PyGTKEditor. The trouble is, neither of them really ever worked for me. So I settled for Leafpad for editing the code and make, gcc and g++ in the command line to build it. |
Re: Setup development Environment within N900 possible ??
Quote:
edit: jk, not really fully usable, unless you know which exactly pixel you want to hit, if you know qtcreator by heart, should be doable at least |
Re: Setup development Environment within N900 possible ??
As for SDK, I'm using Qole's ( http://qole.org/files/ ) maemo-sdk-v1_2.img.ext2 (a bit updated of course) along with easy-chroot scripts (I basically copied the easy debian scripts and changed the stuff alongside with few other bits to allow concurrent easy-debian and easy-maemo-sdk running), so it is also doable if e.g. you don't want to "pollute" your N900 with development packages (could be good for beginner programmers unfamiliar with this stuff I guess - the easiest step-by-step instruction would be: download this compressed image, uncompress it, change the name to the easy debian's one and run the "debbie" command in terminal... when you finish, change the filename or delete it completely and restore the original easy-debian file to its former filename - ta-dah!).
|
All times are GMT. The time now is 23:11. |
vBulletin® Version 3.8.8