Installation in windows

From Rsewiki
Revision as of 08:38, 3 January 2016 by Jca (Talk | contribs)

Jump to: navigation, search

Installation for windows (7 or later?)

Contents

Client application

Client Installation

To be able to run anything with the robot, a driver needs to be installed:

This is all that is needed to run the .EXE version of the client.

  • The exe (windows) version of the client is found on the fileshare on the campusnet.

Python and QT

To be able to change the user interface (regbot.py) python (version 2.7), PyQt4 and pyserial needs to be installed:

Installation of http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.3/PyQt4-4.11.3-gpl-Py2.7-Qt4.8.6-x32.exe NB! it must be QT4 and x32 (not x64) and filename must include 'Py2.7'

Simple way is from command line

pip install pyserial
  • Installation of PyQtGraph is needed for the plotting, this requires Numpy, and this in turn requires Microsoft Visual C++ 9.0 compiler for Python:
  • get the compiler: from http://aka.ms/vcpython27 download the installer "VCForPython27" and run it.
  • install numpy (from the command line)
pip install numpy
  • install PyQtGraph-0.9.10.win32
pip install pyqtgraph

Tools to make the exe file

To pack an application as an exe-file for windows a pyinstaller is needed.

Install from cmd line

pip install pyinstaller

If you get this error, when you try:

pyinstaller
Error: Pyinstaller for Python 2.6+ needs pywin32 ...

Then go to http://sourceforge.net/projects/pywin32/?source=typ_redirect then the link "browse all files"-> "pywin32" -> "build..." and find pywin32-XXX-win32-py2.7.exe

Run this installation

make EXE file

Make the python script to a single exe-file

in a windows cmd prompt, go to the directory with the main python script

pyinstaller --onefile regbot.py

This will make a subdirectoty called dist. This holds the new application exe-file that can be copied to another windows (without administrator prviledes) and run!

Teensy 3.1 code

To compile code to Teensy 3.1, and download to the robot requires a bit more

- Code loader - see https://www.pjrc.com/teensy/loader.html - Code uses an arduino library, but is written in C (compiled with a C++ compiler), this requires further installation: @todo - see Nilas' report.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox