Difference between revisions of "Beginner"

From GCompris
Jump to: navigation, search
Line 35: Line 35:
 
make
 
make
 
sudo make install
 
sudo make install
gcompris --experimental
+
gcompris --experimental --reread-menu
 
</pre>
 
</pre>
  
Line 41: Line 41:
  
 
You can continue reading [http://gcompris.net/wiki/Adding_an_activity here]
 
You can continue reading [http://gcompris.net/wiki/Adding_an_activity here]
 +
 +
=== Setting up the IDE ===
 +
Of course you are able to choose your favorite IDE but in case you haven't one, I'll show you how to do it in my favorite Eclipse.
 +
I tried the following steps with "Eclipse Helios"
 +
 +
1) Download Eclipse C/C++: http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/heliosr<br />
 +
2) Install the Python Plug-in:<br />
 +
Open eclipse and goto Help->Install new Software->Add Site:<br />
 +
<pre>http://pydev.org/updates</pre>
 +
Select the pydev plugin and follow the steps. After restarting you should be able to open and edit Python files.<br />
 +
3) Import GCompris as an eclipse project:<br />
 +
File->new->C/C++-->"Makefile project with existing code" -> choose GCompris source directory<br />
 +
After restarting you should be able to open your created python file in src/basuracatcher-activity/basuracatcher.py<br />
 +
4) Configure PyDev<br />
 +
Goto Window->Preferences->Interpreter Python and select your interpeter (e.g: /usr/bin/python)<br />
 +
  
 
=== activity idea ===
 
=== activity idea ===
 
=== activity implementation ===
 
=== activity implementation ===

Revision as of 21:13, 18 August 2010

Getting started current branch 9.X

Short guide to get started for newcomers to GCompris/Linux development. This is tested with ubuntu 9.10 and 10.04. It's from scratch to your first own activity.


Git download

git clone git://git.gnome.org/gcompris
cd gcompris
git checkout -b gcomprixogoo origin/gcomprixogoo
cd gcompris

build gcompris development dependencies:

sudo apt-get build-dep gcompris

make sure you have the package "gnome-common" installed.

in gcompris folder:
sh autogen.sh && make

if you want do a 'sudo make install' You should be able to test a GCompris-Activity by running the following command in the 'src' directory:

sh runit.sh connect4-activity

Create a new own activity

In the 'src' directory:

sh createit.sh basuracatcher
make
sh runit.sh basuracatcher-activity/


You are also able to try the installed version by running:

make clean
sh autogen.sh
make
sudo make install
gcompris --experimental --reread-menu

Then happy coding in 'src/basuracatcher-activity/basuracatcher.py'

You can continue reading here

Setting up the IDE

Of course you are able to choose your favorite IDE but in case you haven't one, I'll show you how to do it in my favorite Eclipse. I tried the following steps with "Eclipse Helios"

1) Download Eclipse C/C++: http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/heliosr
2) Install the Python Plug-in:
Open eclipse and goto Help->Install new Software->Add Site:

http://pydev.org/updates

Select the pydev plugin and follow the steps. After restarting you should be able to open and edit Python files.
3) Import GCompris as an eclipse project:
File->new->C/C++-->"Makefile project with existing code" -> choose GCompris source directory
After restarting you should be able to open your created python file in src/basuracatcher-activity/basuracatcher.py
4) Configure PyDev
Goto Window->Preferences->Interpreter Python and select your interpeter (e.g: /usr/bin/python)


activity idea

activity implementation