Active Topics

 


Reply
Thread Tools
jaeezzy's Avatar
Posts: 664 | Thanked: 160 times | Joined on Jul 2008 @ Australia
#1
Hi I noticed two installer files in application manager and I'm wondering what they are for actually. 1)libillumination0 (A C++ library for creating GUIs) 2)maemo-cplusplus-device-env (Metapackage for running and debugging C++ applications on the device). So, does this mean that I can compile and run c++ files in n810 itself without the help of PC to compile? Can these be used to make GUIs? If its possible, then where can I find getting started guides for this? Any help will be appriciated. Thanks.
 
BruceL's Avatar
Posts: 305 | Thanked: 154 times | Joined on Aug 2006 @ Colorado
#2
I don't think that maemo-cplusplus... will install on the device. At least it didn't seem to work for me.

BUT, if you install gcc and g++ you can build c and c++ and link to whatever you want. I build OpenGL code all the time on the device. You can also use gdb to debug and there are several great editors. Probably geany is the best so far.

Good luck!
__________________
Give me immortality or give me death!

Last edited by BruceL; 2008-08-22 at 22:48.
 
jaeezzy's Avatar
Posts: 664 | Thanked: 160 times | Joined on Jul 2008 @ Australia
#3
Thanks for the reply brucel but where can i get gcc and g++. Is gdb and geany for IT only. Where can I find 'em. Thanks
 
Posts: 1,418 | Thanked: 1,541 times | Joined on Feb 2008
#4
Originally Posted by jaeezzy View Post
Thanks for the reply brucel but where can i get gcc and g++. Is gdb and geany for IT only. Where can I find 'em. Thanks
Here:

http://ageofikon.info/packrat/index....ection=&Repo=0
 
jaeezzy's Avatar
Posts: 664 | Thanked: 160 times | Joined on Jul 2008 @ Australia
#5
cool, thanks.. so which ones are essential and which ones can I omit. Is there any getting started guides for this coz it will be very helpful for me to get started speciall when its a kinda new language with new files on a new device. Thanks.
 
Posts: 5,795 | Thanked: 3,151 times | Joined on Feb 2007 @ Agoura Hills Calif
#6
You can get geany all over the place, at least for Linux.
 
Posts: 1,418 | Thanked: 1,541 times | Joined on Feb 2008
#7
Originally Posted by jaeezzy View Post
cool, thanks.. so which ones are essential and which ones can I omit. Is there any getting started guides for this coz it will be very helpful for me to get started speciall when its a kinda new language with new files on a new device.
You probably want the one labelled "base package". But please be aware that if you are new to C++, you should download and use Maemo SDK on the desktop instead. Compiling C++ programs directly on the tablet has its uses, but it is a bit more advanced than a novice C++ user would be able to handle.
 
BruceL's Avatar
Posts: 305 | Thanked: 154 times | Joined on Aug 2006 @ Colorado
#8
I believe that the debs you need are in the extras repository. if not, just search for them.

Install gcc and gcc-3.4

then Install g++ and g++-3.4

That is technically all you need but you will have to use a lousy text editor.
If you have a bluetooth keyboard geany is great. Just search for a thread on these forums. It's in the first post.

If you are ok with the command line you can install the joe editor. There are a variety of editors and any of them will work, but those that highlight C++ syntax and show line numbers are helpful.

I also suggest installing gdb. It's a standard linux debugger. But don't overwhelm yourself.

Here is what you do:

Type your program in using a text editor and save it with the ending .cpp (or .h for the header file)

Next, run xterm and "cd" to the folder where you saved your files. So, if you saved them in MyDocs/MyPrograms type cd /home/user/MyDocs/MyProrgams


Now type

g++ MyProgName.cpp

If all goes well you will have a program called MyProgName.a (I think .a is the default)

The very first time you will need to type chmod +x MyProgName.a
That sets execution permissions.

To run the program type

./MyProgName.a

There are a lot of command line option to gdb. I suggest following some kind of "dummies guide" your first time.

Good luck!
__________________
Give me immortality or give me death!
 

The Following 2 Users Say Thank You to BruceL For This Useful Post:
jaeezzy's Avatar
Posts: 664 | Thanked: 160 times | Joined on Jul 2008 @ Australia
#9
Thank you..
 
jaeezzy's Avatar
Posts: 664 | Thanked: 160 times | Joined on Jul 2008 @ Australia
#10
files in this link: http://ageofikon.info/packrat/index....ection=&Repo=0 dont seem to be available. When I tried downloading it using my IT it says package not available.
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:25.