Active Topics

 


Reply
Thread Tools
BruceL's Avatar
Posts: 305 | Thanked: 154 times | Joined on Aug 2006 @ Colorado
#11
The easiest way to find a repositiry is often to go to

http://gronmayer.com/it/index.php

and search for what you want. (e.g., gcc) It can automatically add the repositiry for you. (You may need "red pill mode".)

I didn't give the link directly because I don't know whether you have chinook, diablo, or something else.
__________________
Give me immortality or give me death!

Last edited by BruceL; 2008-08-26 at 09:05.
 
jaeezzy's Avatar
Posts: 664 | Thanked: 160 times | Joined on Jul 2008 @ Australia
#12
Originally Posted by fms View Post
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.
Yeah I'm new, so what things should I be aware of? and what uses does it have and what do you mean by bit more advance? Can I have any information regarding this things? coz before I do anything I wanna know what I'm doing. Thanks..
 
danramos's Avatar
Posts: 4,672 | Thanked: 5,455 times | Joined on Jul 2008 @ Springfield, MA, USA
#13
Originally Posted by jaeezzy View Post
Yeah I'm new, so what things should I be aware of? and what uses does it have and what do you mean by bit more advance? Can I have any information regarding this things? coz before I do anything I wanna know what I'm doing. Thanks..
Ditto. Is there any easy way to get started in C++ for maemo? Getting started in Python has been a breeze. I can literally pick up a tutorial and begin using vim and learn Python... but C++ isn't as easy to get into on maemo versus getting going on a Linux desktop.

For instance, how would I use cc on a Linux desktop system to compile my own ARMEL executable to run on the tablet? (Even simple console apps?)

Just curious to find out whether there's any tutorials for fellow hacks who're trying to learn to write simple apps for our tablets or something.
 
Posts: 12 | Thanked: 1 time | Joined on Aug 2008
#14
Originally Posted by jaeezzy View Post
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 what do these packages actually do/install? I tried installing the metapackage and that went well...
 
jaeezzy's Avatar
Posts: 664 | Thanked: 160 times | Joined on Jul 2008 @ Australia
#15
Originally Posted by BruceL View Post
If all goes well you will have a program called MyProgName.a (I think .a is the default)
Thanks bruce, I created, compiled and executed my first simple cpp application in my tablet. while compilin it actually created a "a.out" file and did accordingly what you said and got the output. cool.
Btw, the geanu editor is very fascinating but had trouble doing a lot of things. Hopefully, there will be soon all-working version of it. Also can you suggest me of the proceedure I'll require to run ruby programs in my tablet. It will be super cool coz I'm doing ruby at the moment in my uni and it's already been super cool for cpp coz next semester I'll be doing cpp. Thank you.
 
BruceL's Avatar
Posts: 305 | Thanked: 154 times | Joined on Aug 2006 @ Colorado
#16
"a.out." that's right. I always use a makefile to force it to use a name like "prog.exe". You're quite right about Geany being imperfect. The main things are that it doesn't use the onscreen keyboard and it doesn't respond to the "enter" key unless you tap it five times really fast.

If you are trying to learn c++, think about trying to fix these two bugs as a learning project!

You can also install KDE and use the KATE editor. As for Ruby, I imagine the process is similar, but I haven't done it so I don't know.
__________________
Give me immortality or give me death!
 
jaeezzy's Avatar
Posts: 664 | Thanked: 160 times | Joined on Jul 2008 @ Australia
#17
Thanks for the reply brucel, ya that could be my project to fix things up for better use but may be after a year atleast coz I've only very little knowledge of c++ (console programs) no knowledge of GUI's at all in C++. By the way, I'm trying to use geany as it looks great but some problems:
There's no where in the world I could find the curly braces which I'll need-"{ }"
I could compile the source file but how can I run it. Coz when I tried execute from the menu item it says "failed to execute the terminal program". I have downloaded all gcc's, g++'s and make. Thanks
 
BruceL's Avatar
Posts: 305 | Thanked: 154 times | Joined on Aug 2006 @ Colorado
#18
I have never tried to run programs under geany. I am sure that there are settigns that would make it work but I don't know what they are. Tto me, using the command-line in xterm seems easier and more flexable.
__________________
Give me immortality or give me death!

Last edited by BruceL; 2008-09-02 at 08:33.
 
lcuk's Avatar
Posts: 1,635 | Thanked: 1,816 times | Joined on Apr 2008 @ Manchester, England
#19
jaeezzy,

I think you have dived in at the deep end with wanting to setup and configure c++ directly on the device.
I would recommend getting some experience with native linux development using a desktop before you transfer your superpowers to the tablet.
The gnu development process is covered in many places online and is used by thousands of people worldwide.
Take the time to readup and practice using gcc and make etc in a general sense

If you do not have a linux desktop I would recommend finding out about the maemo vmware image, this has a preconfigured development environment and might be a little easier to understand.

Unfortunately, there is no shortcut to becoming a linux-dev-guru, I've been trying for months now and haven't progressed that far.
 
BruceL's Avatar
Posts: 305 | Thanked: 154 times | Joined on Aug 2006 @ Colorado
#20
lcuk is right that there is no shortcut to knowledge. I probably slowed you down by telling you how to get started because in figuring it out for yourself you would have learned a lot that you won't have the motivation to learn now.

That said, with a big enough SD card there is very little that you can do on a desktop that you can't do on the tablet. My N800 is the only computer I use. I have built several large packages directly on the tablet. But you do have to learn a bit to get it working and it isn't as fast as a desktop.
__________________
Give me immortality or give me death!
 
Reply


 
Forum Jump


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