Difference between revisions of "Activities/GCompris"

From Sugar Labs
Jump to navigation Jump to search
Line 31: Line 31:
 
Install dependencies, for Fedora they are:
 
Install dependencies, for Fedora they are:
  
  sudo yum install gtk2-devel gstreamer-devel gstreamer-plugins-base-devel sqlite-devel librsvg2-devel libxml2-devel python-devel pygtk2-devel pycairo-devel gnucap gnuchess pkgconfig make gcc intltool glib2-devel GConf2-devel libgee-devel dbus-glib-devel pango-devel cmake
+
  sudo yum install gtk2-devel gstreamer-devel gstreamer-plugins-base-devel sqlite-devel librsvg2-devel libxml2-devel python-devel pygtk2-devel pycairo-devel gnucap gnuchess pkgconfig make gcc intltool glib2-devel GConf2-devel libgee-devel dbus-glib-devel pango-devel cmake gnet2-devel
  
 
Fetch sources:
 
Fetch sources:
Line 37: Line 37:
 
  mkdir -p ~/src/gcompris
 
  mkdir -p ~/src/gcompris
 
  cd ~/src/gcompris
 
  cd ~/src/gcompris
  wget http://download.sugarlabs.org/services/polyol/polyol-2010.0-3-src.tar.bz2
+
  wget http://download.sugarlabs.org/sources/external/polyol/polyol-1.2.tar.gz
  tar xjpvf polyol-2010.0-3-src.tar.bz2
+
  tar xzpvf polyol-1.2.tar.gz
  wget http://people.sugarlabs.org/~alsroot/tmp/gcompris-9.3.tar.bz2
+
  wget http://download.sugarlabs.org/sources/external/gcompris/gcompris-9.5.tar.gz
  tar xjpvf gcompris-9.3.tar.bz2
+
  tar xzpvf gcompris-9.5.tar.gz
 
  wget http://people.sugarlabs.org/~alsroot/tmp/GCompris.activity.tar.bz2
 
  wget http://people.sugarlabs.org/~alsroot/tmp/GCompris.activity.tar.bz2
 
  tar xjpvf GCompris.activity.tar.bz2
 
  tar xjpvf GCompris.activity.tar.bz2
Line 46: Line 46:
 
Build Polyol:
 
Build Polyol:
  
  cd ~/src/gcompris/polyol-2010.0
+
  cd ~/src/gcompris/polyol-1.2
 
  cmake -DCMAKE_INSTALL_PREFIX=$HOME/Activities/gcompris.activity && make && make install
 
  cmake -DCMAKE_INSTALL_PREFIX=$HOME/Activities/gcompris.activity && make && make install
  
 
Build GCompris:
 
Build GCompris:
  
  cd ~/src/gcompris/gcompris-9.3
+
  cd ~/src/gcompris/gcompris-9.5
  ./configure PKG_CONFIG_PATH=$HOME/Activities/gcompris.activity/lib/pkgconfig --prefix=$HOME/Activities/gcompris.activity --disable-gnet --enable-sugar --enable-sqlite && make && make install
+
  ./configure PKG_CONFIG_PATH=$HOME/Activities/gcompris.activity/lib/pkgconfig --prefix=$HOME/Activities/gcompris.activity --enable-gnet --enable-sugar --enable-sqlite && make && make install
  
 
Link activity directory:
 
Link activity directory:
  
  cd ~/src/gcompris
+
  cd ~/Activities/gcompris.activity
  ln -s $PWD/GCompris.activity/activity $HOME/Activities/gcompris.activity/
+
  ln -s share/sugar/activities/GCompris.activity/activity .
  
 
== Resources ==
 
== Resources ==

Revision as of 17:34, 11 February 2011


Overview

Gcompris with sugar support.

Detailed Description

GCompris and GComprisAdministration activities create the same journal object with application/x-gcompris mimetype. So, when user creates journal object with GComprisAdministration activity, this object will be opened in GCompis activity by default. Use "Open with" context palette option to resume object in GComprisAdministration.

Sharing support

Teacher, in addition to GCompris Administration activity instructions:

  • launch new GCompris Administration instance
  • on tabs Classes/Users and Groups, create users, groups and classes; these settings will be common for all GCompris Administration activity objects
  • on tab Logins, add groups of users that will be used for this GCompris Administration activity object
  • on tab Activities, setup list of activities for this GCompris Administration activity object
  • share activity
  • on tab Reports, see joined students' results

Students:

  • join shared by teacher GCompris object
  • on startup, if resumed object is shared by teacher, GCompris will sync settings with teacher's object
  • after completing GCompris activity, results will be sent to teacher and stored to student's object; later, this object could be opened by GCompris Administration activity to see these results

Build from sources

Install dependencies, for Fedora they are:

sudo yum install gtk2-devel gstreamer-devel gstreamer-plugins-base-devel sqlite-devel librsvg2-devel libxml2-devel python-devel pygtk2-devel pycairo-devel gnucap gnuchess pkgconfig make gcc intltool glib2-devel GConf2-devel libgee-devel dbus-glib-devel pango-devel cmake gnet2-devel

Fetch sources:

mkdir -p ~/src/gcompris
cd ~/src/gcompris
wget http://download.sugarlabs.org/sources/external/polyol/polyol-1.2.tar.gz
tar xzpvf polyol-1.2.tar.gz
wget http://download.sugarlabs.org/sources/external/gcompris/gcompris-9.5.tar.gz
tar xzpvf gcompris-9.5.tar.gz
wget http://people.sugarlabs.org/~alsroot/tmp/GCompris.activity.tar.bz2
tar xjpvf GCompris.activity.tar.bz2

Build Polyol:

cd ~/src/gcompris/polyol-1.2
cmake -DCMAKE_INSTALL_PREFIX=$HOME/Activities/gcompris.activity && make && make install

Build GCompris:

cd ~/src/gcompris/gcompris-9.5
./configure PKG_CONFIG_PATH=$HOME/Activities/gcompris.activity/lib/pkgconfig --prefix=$HOME/Activities/gcompris.activity --enable-gnet --enable-sugar --enable-sqlite && make && make install

Link activity directory:

cd ~/Activities/gcompris.activity
ln -s share/sugar/activities/GCompris.activity/activity .

Resources