MouseTrap Dev Help
(Difference between revisions)
Heidi.ellis (Talk | contribs) (→Let's get git) |
Heidi.ellis (Talk | contribs) (Updated to reflect working with main git repo on GNOME) |
||
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 | + | * Python 2.X/Python 3.X |
== Complete Git + Mousetrap Install == | == Complete Git + Mousetrap Install == | ||
− | === ''' | + | === '''Install git and Clone MouseTrap''' === |
Open a terminal, become root | Open a terminal, become root | ||
'''Run Commands:''' | '''Run Commands:''' | ||
Line 15: | Line 15: | ||
-> cd mousetrap | -> cd mousetrap | ||
− | === ''' | + | === '''Install MouseTrap''' === |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
'''Install Dependencies:''' | '''Install Dependencies:''' | ||
− | -> yum install gnome-common | + | -> sudo yum install gnome-common |
− | -> yum install glib2-devel | + | -> sudo yum install glib2-devel |
− | -> yum install intltool | + | -> sudo yum install intltool |
− | -> yum install python-devel | + | -> sudo yum install python-devel |
− | -> yum install opencv-python | + | -> sudo yum install opencv-python |
− | -> yum install python-xlib | + | -> sudo yum install python-xlib |
'''Run Commands:''' | '''Run Commands:''' | ||
− | -> cd | + | -> cd MouseTrap/mousetrap |
− | + | -> ./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 | + | |
− | === ''' | + | === '''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!) |
Revision as of 12:59, 14 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 + Mousetrap Install
Install git and Clone MouseTrap
Open a terminal, become root Run Commands: -> sudo yum install git-core * Install git -> mkdir MouseTrap * Create MouseTrap directory -> cd MouseTrap * Go to your Mousetrap directory -> git clone git://git.gnome.org/mousetrap * Clone the git repo to your computer -> git checkout gnome3-wip * Retrieve the current working branch -> cd mousetrap
Install MouseTrap
Install Dependencies: -> sudo yum install gnome-common -> sudo yum install glib2-devel -> sudo yum install intltool -> sudo yum install python-devel -> sudo yum install opencv-python -> sudo yum install python-xlib Run Commands: -> cd MouseTrap/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]]