-
Notifications
You must be signed in to change notification settings - Fork 22
/
troubleshooter
64 lines (45 loc) · 1.43 KB
/
troubleshooter
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
In case of errors while installation
_________________________________________________________________________________________
##python version problem
How to check if this bug affects you
- Open a new python 2.7 interpreter window
- Enter the following
import Adafruit_GPIO as GPIO
import Adafruit_GPIO.FT232H as FT232H
import ftdi1
- If there are no errors then this bug does not affect you.
- If you see errors, follow the instructions below
Go to 'libftdi1-1.2/python' directory and edit CmakeLists
Change
` find_package ( PythonLibs)`
` find_package ( PythonInterp)`
to
` find_package ( PythonLibs 2.7 REQUIRED)`
` find_package ( PythonInterp 2.7 REQUIRED)`
then
`mkdir build`
`cd build`
`cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python -DCMAKE_INSTALL_PREFIX="/usr/" ../`
`make `
`sudo make install`
___________________________________________________________________________________________
##libmpsse install error
While running ./install.sh, if the following error is encountered
`In file included from fast.c:10:0:
mpsse.h:9:18: fatal error: ftdi.h: No such file or directory
#include <ftdi.h>
^`
Go to the directory 'libmpsse/src/' and edit mpsse.h
Change
`#if LIBFTDI1 == 1
#include <libftdi1/ftdi.h>
#else
#include <ftdi.h>
#endif`
to
`#if LIBFTDI1 == 1
#include <libftdi1/ftdi.h>
#else
#include <libftdi1/ftdi.h>
#endif`
___________________________________________________________________________________________