MouseTrap Dev Help

(Difference between revisions)
Jump to: navigation, search
(Let's get git)
Line 13: Line 13:
 
   -> cd /opt/git
 
   -> cd /opt/git
 
   -> git clone git://github.com/amberheilman/mousetrap.git  * Now you have pulled down the git repo
 
   -> git clone git://github.com/amberheilman/mousetrap.git  * Now you have pulled down the git repo
 +
  -> cd /mousetrap
 
   -> git checkout fix_install                                * This is my branch
 
   -> git checkout fix_install                                * This is my branch
 
   -> git pull                                                '''* DO NOT MAKE CHANGES HERE!''' We will all be working in separate branches!
 
   -> git pull                                                '''* DO NOT MAKE CHANGES HERE!''' We will all be working in separate branches!

Revision as of 19:31, 5 April 2013

Contents

Standard Dev Environment

  • Fedora 18
  • 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

Complete Git + Mousetrap Install

Let's get git

 Open a terminal, become root
 Run Commands:
 -> cd /opt
 -> mkdir git                                                * just fyi you can put your repo anywhere, this is just how I was taught
 -> yum install git-core                                     * Install git
 -> cd /opt/git
 -> git clone git://github.com/amberheilman/mousetrap.git  * Now you have pulled down the git repo
 -> cd /mousetrap
 -> git checkout fix_install                                 * This is my branch
 -> git pull                                                 * DO NOT MAKE CHANGES HERE! We will all be working in separate branches!

Make a branch

 -> 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:
 -> cd /opt/git/mousetrap/src          * THIS WILL NOT WORK OUTSIDE THIS DIR!
 -> git branch fix_install
 -> ./autogen.sh
 -> make
 -> make install
 -> mousetrap                          * You may have errors but they should be similar to my own (towards the end)

Make your first commit

 -> 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