maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Setup development Environment within N900 possible ?? (https://talk.maemo.org/showthread.php?t=94067)

panjgoori 2014-10-26 15:10

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.

malfunctioning 2014-10-26 15:16

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.

pichlo 2014-10-26 16:27

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.

panjgoori 2014-10-26 16:48

Re: Setup development Environment within N900 possible ??
 
Quote:

Originally Posted by malfunctioning (Post 1444406)
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.

thanks for the reply. i only need C and C++ compilers. can you guide me how to set it up in my N900 ? any links for the instructions. as python is also easy to learn i wouldn't mind a tutorial link for it also.

Quote:

Originally Posted by pichlo (Post 1444415)
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.

it did showed some threads but not much related with my questions. also searched for it on Google but was unable to find a tutorial for this.

Im not a hurry. you can post links later as i need a step wise tutorial to set up C, C++ and Python compilers.

pichlo 2014-10-26 16:55

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)

rcolistete 2014-10-26 17:24

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 ?

panjgoori 2014-11-07 17:01

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.

mr_pingu 2014-11-07 17:29

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.

pichlo 2014-11-07 19:40

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.

szopin 2014-11-07 23:52

Re: Setup development Environment within N900 possible ??
 
Quote:

Originally Posted by pichlo (Post 1446300)
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.

lies: http://talk.maemo.org/showpost.php?p...36&postcount=2
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

misiak 2014-11-08 00:53

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