MouseTrap Dev Help

From Foss2Serve
(Difference between revisions)
Jump to: navigation, search
(Let's get git)
(Install git and Clone MouseTrap: Deleting cd mousetrap)
 
(4 intermediate revisions by one user not shown)
Line 2: Line 2:
 
* Fedora 18
 
* Fedora 18
 
* OpenCV 2.4.X  - whatever recent version is supported
 
* OpenCV 2.4.X  - whatever recent version is supported
* Python 2.X for now upgrading to Python 3 when we get the OpenCV issue fixed
+
* Python 2.X/Python 3.X
== Complete Git + Mousetrap Install ==
+
== Complete Git and Mousetrap Install ==
  
=== '''Installing git and MouseTrap''' ===
+
=== '''Install git and Clone MouseTrap''' ===
   Open a terminal, become root
+
   Open a terminal and
 
   '''Run Commands:'''
 
   '''Run Commands:'''
   -> sudo yum install git-core                               * Install git  
+
   -> sudo yum install git-core                           # Install git  
   -> mkdir MouseTrap                                          * Create MouseTrap directory
+
   -> sudo yum -y update gnome-common glib2-devel\
   -> cd MouseTrap                                            * Go to your Mousetrap directory
+
    intltool python-devel opencv-python python-xlib    # Update all dependencies, MUST be done before install
   -> git clone git://git.gnome.org/mousetrap                 * Clone the git repo to your computer  
+
   -> sudo yum -y install gnome-common glib2-devel\
  -> git checkout gnome3-wip                                  * Retrieve the current working branch
+
    intltool python-devel opencv-python python-xlib    # Install latest versions of dependencies
  -> cd mousetrap
+
   -> git clone git://git.gnome.org/mousetrap -b gnome3-wip # Clone the git repo to your computer
  
=== '''Make a branch''' ===
+
=== '''Install MouseTrap''' ===
  -> git branch INSERT_BRANCH_NAME      * this clones my branch and creates a new one
+
  -> git checkout INSERT_BRANCH_NAME    * this opens up your branch that you just created
+
  -> git branch                        * now you can see the branch your in with a *, and all others under this git repo
+
 
+
=== '''Mousetrap Install method''' ===
+
  '''Install Dependencies:'''
+
  -> yum install gnome-common
+
  -> yum install glib2-devel
+
  -> yum install intltool
+
  -> yum install python-devel
+
  -> yum install opencv-python
+
  -> yum install python-xlib
+
 
   '''Run Commands:'''
 
   '''Run Commands:'''
   -> cd /opt/git/mousetrap/src          * THIS WILL NOT WORK OUTSIDE THIS DIR!
+
   -> cd mousetrap
  -> cd ..
+
   -> ./autogen.sh                       # Set up MouseTrap
   -> ./autogen.sh
+
   -> make                               # Compile MouseTrap
   -> make
+
   -> make install                       # Install Mousetrap executable in appropriate directory
   -> make install
+
   -> mousetrap                          # Execute MouseTrap. You may see warnings on your console
   -> mousetrap                          * You may have errors but they should be similar to my own (towards the end)
+
  
=== '''Make your first commit''' ===
+
=== '''Commit Changes - Deprecated''' ===
 
   -> git status                        * Shows all of the modified files
 
   -> git status                        * Shows all of the modified files
 
   -> git add *                          * This is to add '''ALL''' files to commit list (MAKE SURE YOU WANT THEM ALL FIRST!)
 
   -> git add *                          * This is to add '''ALL''' files to commit list (MAKE SURE YOU WANT THEM ALL FIRST!)
Line 43: Line 30:
 
   -> git push origin INSERT_BRANCH_NAME * This must be the branch you created in the git install.
 
   -> git push origin INSERT_BRANCH_NAME * This must be the branch you created in the git install.
 
                                           This will ask for your git credentials, so have them ready.
 
                                           This will ask for your git credentials, so have them ready.
 +
 
= Further Resources =
 
= Further Resources =
 
For more information about the mousetrap program:[Mousetrap Program Resource[http://foss2serve.org/index.php?title=MouseTrap_Dev_Help/mousetrap_internals]]
 
For more information about the mousetrap program:[Mousetrap Program Resource[http://foss2serve.org/index.php?title=MouseTrap_Dev_Help/mousetrap_internals]]

Latest revision as of 01:58, 25 April 2014

Contents

Standard Dev Environment

  • Fedora 18
  • OpenCV 2.4.X - whatever recent version is supported
  • Python 2.X/Python 3.X

Complete Git and Mousetrap Install

Install git and Clone MouseTrap

 Open a terminal and
 Run Commands:
 -> sudo yum install git-core                           # Install git 
 -> sudo yum -y update gnome-common glib2-devel\
    intltool python-devel opencv-python python-xlib     # Update all dependencies, MUST be done before install
 -> sudo yum -y install gnome-common glib2-devel\
    intltool python-devel opencv-python python-xlib     # Install latest versions of dependencies
 -> git clone git://git.gnome.org/mousetrap -b gnome3-wip # Clone the git repo to your computer

Install MouseTrap

 Run Commands:
 -> cd mousetrap
 -> ./autogen.sh                       # Set up MouseTrap
 -> make                               # Compile MouseTrap
 -> make install                       # Install Mousetrap executable in appropriate directory
 -> mousetrap                          # Execute MouseTrap. You may see warnings on your console

Commit Changes - Deprecated

 -> git status                         * Shows all of the modified files
 -> git add *                          * This is to add ALL files to commit list (MAKE SURE YOU WANT THEM ALL FIRST!)
 -> git commit                         * Add a useful title to first line of your commit.
                                         This is in vim so 'i' to insert ':x' to save and quit.
 -> git push origin INSERT_BRANCH_NAME * This must be the branch you created in the git install.
                                         This will ask for your git credentials, so have them ready.

Further Resources

For more information about the mousetrap program:[Mousetrap Program Resource[1]]

For more information about opencv: [Opencv Resource [2]]

Personal tools
Namespaces
Variants
Actions
Events
Learning Resources
HFOSS Projects
Evaluation
Navigation
Toolbox