maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   c++ getting started guide for maemo4 (https://talk.maemo.org/showthread.php?t=23074)

BruceL 2008-08-26 09:02

Re: c++ getting started guide for maemo4
 
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.

jaeezzy 2008-08-26 22:54

Re: c++ getting started guide for maemo4
 
Quote:

Originally Posted by fms (Post 216945)
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 2008-08-26 23:14

Re: c++ getting started guide for maemo4
 
Quote:

Originally Posted by jaeezzy (Post 217927)
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.

Stokstaartje 2008-08-27 13:26

Re: c++ getting started guide for maemo4
 
Quote:

Originally Posted by jaeezzy (Post 216352)
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 2008-08-28 07:07

Re: c++ getting started guide for maemo4
 
Quote:

Originally Posted by BruceL (Post 217179)
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 2008-08-28 07:29

Re: c++ getting started guide for maemo4
 
"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.

jaeezzy 2008-09-01 09:55

Re: c++ getting started guide for maemo4
 
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 2008-09-02 08:31

Re: c++ getting started guide for maemo4
 
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.

lcuk 2008-09-02 09:20

Re: c++ getting started guide for maemo4
 
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 2008-09-02 14:48

Re: c++ getting started guide for maemo4
 
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.


All times are GMT. The time now is 04:06.

vBulletin® Version 3.8.8