Installation in windows

From Rsewiki
Revision as of 10:03, 24 December 2014 by Jca (talk | contribs) (→‎Windows)

Installation i windows

Klientprogram

Windows

Der skal installeres

Klienten er en Python2.7 (QT4/5) applikation, som kræver

Installation af http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.3/PyQt4-4.11.3-gpl-Py2.7-Qt4.8.6-x32.exe NB! det skal være QT4 og x32 (ikke x64) og der skal indgå 'Py2.7' i filnavnet (eller sammenhæng mellem Python version og PyX.X i QT4 filnavnet.

Installeres bedst fra kommadolinien med

pip install pyserial

To make python exe file

To pack an application to an exe-file for windows.

Install from cmd line

pip install pyinstaller

If you then 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

Prepare installation as an EXE file

install pyinstaller use pip (python installer) som installeres sammen med python 2.7

Use pyinstaller ... @todo

Linux (debian based)

  • install python
sudo apt-get install python-dev
sudo apt-get install pyqt5-dev

If python version 3 is used, then further packages are needed, and some code may have to change.

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.