1 |
Hi, |
2 |
|
3 |
(everything is done natively on the embedded system itsself) |
4 |
|
5 |
I am currently trying to install (and later use) |
6 |
this library on my Beaglebone Black (3.8.13-bone67 |
7 |
kernel by Robert Nelson): |
8 |
https://github.com/adafruit/Adafruit_ILI9340 |
9 |
|
10 |
Installing the prerequisits works fine. The |
11 |
needed "python-smbus" is part of i2c-tools when |
12 |
compiled with the "python" USE-flag. |
13 |
|
14 |
Installing the library itsself fails. |
15 |
And I fear, there are contradictionary |
16 |
definition deeply inside the kernel/kernel-headers... |
17 |
|
18 |
I installed linux-headers-3.8 with emerge in beforehand, |
19 |
but the compilation faisl with: |
20 |
beagleboneblack:Matt/Adafruit_Python_ILI9341>sudo python setup.py install |
21 |
running install |
22 |
running bdist_egg |
23 |
running egg_info |
24 |
writing requirements to Adafruit_ILI9341.egg-info/requires.txt |
25 |
writing Adafruit_ILI9341.egg-info/PKG-INFO |
26 |
writing top-level names to Adafruit_ILI9341.egg-info/top_level.txt |
27 |
writing dependency_links to Adafruit_ILI9341.egg-info/dependency_links.txt |
28 |
reading manifest file 'Adafruit_ILI9341.egg-info/SOURCES.txt' |
29 |
writing manifest file 'Adafruit_ILI9341.egg-info/SOURCES.txt' |
30 |
installing library code to build/bdist.linux-armv7l/egg |
31 |
running install_lib |
32 |
running build_py |
33 |
creating build/bdist.linux-armv7l/egg |
34 |
creating build/bdist.linux-armv7l/egg/Adafruit_ILI9341 |
35 |
copying build/lib/Adafruit_ILI9341/ILI9341.py -> build/bdist.linux-armv7l/egg/Adafruit_ILI9341 |
36 |
copying build/lib/Adafruit_ILI9341/__init__.py -> build/bdist.linux-armv7l/egg/Adafruit_ILI9341 |
37 |
byte-compiling build/bdist.linux-armv7l/egg/Adafruit_ILI9341/ILI9341.py to ILI9341.cpython-32.pyc |
38 |
byte-compiling build/bdist.linux-armv7l/egg/Adafruit_ILI9341/__init__.py to __init__.cpython-32.pyc |
39 |
creating build/bdist.linux-armv7l/egg/EGG-INFO |
40 |
copying Adafruit_ILI9341.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO |
41 |
copying Adafruit_ILI9341.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO |
42 |
copying Adafruit_ILI9341.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO |
43 |
copying Adafruit_ILI9341.egg-info/requires.txt -> build/bdist.linux-armv7l/egg/EGG-INFO |
44 |
copying Adafruit_ILI9341.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO |
45 |
zip_safe flag not set; analyzing archive contents... |
46 |
creating 'dist/Adafruit_ILI9341-1.0.0-py3.2.egg' and adding 'build/bdist.linux-armv7l/egg' to it |
47 |
removing 'build/bdist.linux-armv7l/egg' (and everything under it) |
48 |
Processing Adafruit_ILI9341-1.0.0-py3.2.egg |
49 |
Removing /usr/lib/python3.2/site-packages/Adafruit_ILI9341-1.0.0-py3.2.egg |
50 |
Copying Adafruit_ILI9341-1.0.0-py3.2.egg to /usr/lib/python3.2/site-packages |
51 |
Adafruit-ILI9341 1.0.0 is already the active version in easy-install.pth |
52 |
|
53 |
Installed /usr/lib/python3.2/site-packages/Adafruit_ILI9341-1.0.0-py3.2.egg |
54 |
Processing dependencies for Adafruit-ILI9341==1.0.0 |
55 |
Searching for spidev |
56 |
Reading https://pypi.python.org/simple/spidev/ |
57 |
Best match: spidev 2.0 |
58 |
Downloading https://pypi.python.org/packages/source/s/spidev/spidev-2.0.tar.gz#md5=b2ff7e51b350febb15ebc20b8a4ed430 |
59 |
Processing spidev-2.0.tar.gz |
60 |
Writing /tmp/easy_install-ymaims/spidev-2.0/setup.cfg |
61 |
Running spidev-2.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ymaims/spidev-2.0/egg-dist-tmp-x8ja_w |
62 |
In file included from /usr/include/linux/spi/spidev.h:25:0, |
63 |
from spidev_module.c:25: |
64 |
/usr/src/linux/include/linux/types.h:14:26: error: conflicting types for ‘fd_set’ |
65 |
typedef __kernel_fd_set fd_set; |
66 |
^ |
67 |
In file included from /usr/include/sys/types.h:219:0, |
68 |
from /usr/include/stdlib.h:314, |
69 |
from /usr/include/python3.2/Python.h:34, |
70 |
from spidev_module.c:20: |
71 |
/usr/include/sys/select.h:75:5: note: previous declaration of ‘fd_set’ was here |
72 |
} fd_set; |
73 |
^ |
74 |
In file included from /usr/include/linux/spi/spidev.h:25:0, |
75 |
from spidev_module.c:25: |
76 |
/usr/src/linux/include/linux/types.h:15:25: error: conflicting types for ‘dev_t’ |
77 |
typedef __kernel_dev_t dev_t; |
78 |
^ |
79 |
In file included from /usr/include/stdlib.h:314:0, |
80 |
from /usr/include/python3.2/Python.h:34, |
81 |
from spidev_module.c:20: |
82 |
/usr/include/sys/types.h:60:17: note: previous declaration of ‘dev_t’ was here |
83 |
typedef __dev_t dev_t; |
84 |
^ |
85 |
In file included from /usr/include/linux/spi/spidev.h:25:0, |
86 |
from spidev_module.c:25: |
87 |
/usr/src/linux/include/linux/types.h:16:25: error: conflicting types for ‘ino_t’ |
88 |
typedef __kernel_ino_t ino_t; |
89 |
^ |
90 |
In file included from /usr/include/stdlib.h:314:0, |
91 |
from /usr/include/python3.2/Python.h:34, |
92 |
from spidev_module.c:20: |
93 |
/usr/include/sys/types.h:50:19: note: previous declaration of ‘ino_t’ was here |
94 |
typedef __ino64_t ino_t; |
95 |
^ |
96 |
In file included from /usr/include/linux/spi/spidev.h:25:0, |
97 |
from spidev_module.c:25: |
98 |
/usr/src/linux/include/linux/types.h:17:26: error: conflicting types for ‘mode_t’ |
99 |
typedef __kernel_mode_t mode_t; |
100 |
^ |
101 |
In file included from /usr/include/stdlib.h:314:0, |
102 |
from /usr/include/python3.2/Python.h:34, |
103 |
from spidev_module.c:20: |
104 |
/usr/include/sys/types.h:70:18: note: previous declaration of ‘mode_t’ was here |
105 |
typedef __mode_t mode_t; |
106 |
^ |
107 |
In file included from /usr/include/linux/spi/spidev.h:25:0, |
108 |
from spidev_module.c:25: |
109 |
/usr/src/linux/include/linux/types.h:20:25: error: conflicting types for ‘off_t’ |
110 |
typedef __kernel_off_t off_t; |
111 |
^ |
112 |
In file included from /usr/include/python3.2/Python.h:25:0, |
113 |
from spidev_module.c:20: |
114 |
/usr/include/stdio.h:92:19: note: previous declaration of ‘off_t’ was here |
115 |
typedef __off64_t off_t; |
116 |
^ |
117 |
In file included from /usr/include/linux/spi/spidev.h:25:0, |
118 |
from spidev_module.c:25: |
119 |
/usr/src/linux/include/linux/types.h:25:26: error: conflicting types for ‘timer_t’ |
120 |
typedef __kernel_timer_t timer_t; |
121 |
^ |
122 |
In file included from /usr/include/sys/types.h:132:0, |
123 |
from /usr/include/stdlib.h:314, |
124 |
from /usr/include/python3.2/Python.h:34, |
125 |
from spidev_module.c:20: |
126 |
/usr/include/time.h:103:19: note: previous declaration of ‘timer_t’ was here |
127 |
typedef __timer_t timer_t; |
128 |
^ |
129 |
In file included from /usr/include/linux/spi/spidev.h:25:0, |
130 |
from spidev_module.c:25: |
131 |
/usr/src/linux/include/linux/types.h:36:24: error: conflicting types for ‘uintptr_t’ |
132 |
typedef unsigned long uintptr_t; |
133 |
^ |
134 |
In file included from /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.8.3/include/stdint.h:9:0, |
135 |
from /usr/include/inttypes.h:27, |
136 |
from /usr/include/python3.2/pyport.h:9, |
137 |
from /usr/include/python3.2/Python.h:50, |
138 |
from spidev_module.c:20: |
139 |
/usr/include/stdint.h:128:23: note: previous declaration of ‘uintptr_t’ was here |
140 |
typedef unsigned int uintptr_t; |
141 |
^ |
142 |
In file included from /usr/include/linux/spi/spidev.h:25:0, |
143 |
from spidev_module.c:25: |
144 |
/usr/src/linux/include/linux/types.h:134:23: error: conflicting types for ‘blkcnt_t’ |
145 |
typedef unsigned long blkcnt_t; |
146 |
^ |
147 |
In file included from /usr/include/stdlib.h:314:0, |
148 |
from /usr/include/python3.2/Python.h:34, |
149 |
from spidev_module.c:20: |
150 |
/usr/include/sys/types.h:248:22: note: previous declaration of ‘blkcnt_t’ was here |
151 |
typedef __blkcnt64_t blkcnt_t; /* Type to count number of disk blocks. */ |
152 |
^ |
153 |
spidev_module.c: In function ‘SpiDev_dealloc’: |
154 |
spidev_module.c:93:6: error: ‘SpiDevObject’ has no member named ‘ob_type’ |
155 |
self->ob_type->tp_free((PyObject *)self); |
156 |
^ |
157 |
spidev_module.c: At top level: |
158 |
spidev_module.c:779:2: warning: initialization makes integer from pointer without a cast [enabled by default] |
159 |
"SpiDev", /* tp_name */ |
160 |
^ |
161 |
spidev_module.c:779:2: warning: (near initialization for ‘SpiDevObjectType.tp_basicsize’) [enabled by default] |
162 |
spidev_module.c:782:2: warning: initialization from incompatible pointer type [enabled by default] |
163 |
(destructor)SpiDev_dealloc, /* tp_dealloc */ |
164 |
^ |
165 |
spidev_module.c:782:2: warning: (near initialization for ‘SpiDevObjectType.tp_print’) [enabled by default] |
166 |
spidev_module.c:797:2: warning: initialization makes pointer from integer without a cast [enabled by default] |
167 |
Py_TPFLAGS_DEFAULT, /* tp_flags */ |
168 |
^ |
169 |
spidev_module.c:797:2: warning: (near initialization for ‘SpiDevObjectType.tp_doc’) [enabled by default] |
170 |
spidev_module.c:798:2: warning: initialization from incompatible pointer type [enabled by default] |
171 |
SpiDevObjectType_doc, /* tp_doc */ |
172 |
^ |
173 |
spidev_module.c:798:2: warning: (near initialization for ‘SpiDevObjectType.tp_traverse’) [enabled by default] |
174 |
spidev_module.c:805:2: warning: initialization from incompatible pointer type [enabled by default] |
175 |
SpiDev_methods, /* tp_methods */ |
176 |
^ |
177 |
spidev_module.c:805:2: warning: (near initialization for ‘SpiDevObjectType.tp_members’) [enabled by default] |
178 |
spidev_module.c:807:2: warning: initialization from incompatible pointer type [enabled by default] |
179 |
SpiDev_getset, /* tp_getset */ |
180 |
^ |
181 |
spidev_module.c:807:2: warning: (near initialization for ‘SpiDevObjectType.tp_base’) [enabled by default] |
182 |
spidev_module.c:813:2: warning: initialization from incompatible pointer type [enabled by default] |
183 |
(initproc)SpiDev_init, /* tp_init */ |
184 |
^ |
185 |
spidev_module.c:813:2: warning: (near initialization for ‘SpiDevObjectType.tp_alloc’) [enabled by default] |
186 |
spidev_module.c:815:2: warning: initialization from incompatible pointer type [enabled by default] |
187 |
SpiDev_new, /* tp_new */ |
188 |
^ |
189 |
spidev_module.c:815:2: warning: (near initialization for ‘SpiDevObjectType.tp_free’) [enabled by default] |
190 |
spidev_module.c: In function ‘initspidev’: |
191 |
spidev_module.c:833:4: warning: assignment makes pointer from integer without a cast [enabled by default] |
192 |
m = Py_InitModule3("spidev", SpiDev_module_methods, SpiDev_module_doc); |
193 |
^ |
194 |
error: Setup script exited with error: command 'armv7a-hardfloat-linux-gnueabi-gcc' failed with exit status 1 |
195 |
[1] 7520 exit 1 sudo python setup.py install |
196 |
|
197 |
|
198 |
In the beginning there are many hits in the system headers... |
199 |
|
200 |
Is there are any way to get out of it? |
201 |
What's going wrong here? |
202 |
|
203 |
Any idea/hint/solution is very appreciated! |
204 |
Best regards, |
205 |
Meino |