chinazjf
获得 1 次赞
帮助过0人
webiopi按照说明安装完毕,运行:错误提示如下:Exception happened during processing of request from ('::ffff:192.168.1.108', 52838, 0, 0)Traceback (most recent call last): File "/usr/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock self.process_request(request, client_address) File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request self.finish_request(request, client_address) File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python2.7/SocketServer.py", line 655, in __init__ self.handle() File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle self.handle_one_request() File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request method() File "build/bdist.linux-armv7l/egg/webiopi/protocols/http.py", line 267, in do_GET self.processRequest() File "build/bdist.linux-armv7l/egg/webiopi/protocols/http.py", line 258, in processRequest except (GPIO.InvalidDirectionException, GPIO.InvalidChannelException, GPIO.SetupException) as e:NameError: global name 'GPIO' is not defined==================================================查网上说明好像是webiopi没有适配新版的树莓派,但是按照说明我修改cpuinfo.c和gpio.c文件重新编译后错误依旧,请大神帮忙解决。谢谢
我在ubuntu上安装网上的教程,下载树莓派的源码目录tools,linux,firmware,然后安装了一些依赖库,make编译,总是出现下面的错误,不知什么原因,请帮忙啊,谢谢。 $ make CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h make[1]: `include/generated/mach-types.h\' is up to date. CALL scripts/checksyscalls.sh CHK include/generated/compile.h CHK kernel/config_data.h LINK vmlinux LD vmlinux.o scripts/link-vmlinux.sh: line 44: ~/rasperberrypi/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/bin/arm-bcm2708hardfp-linux-gnueabi-ld: No such file or directory make: *** [vmlinux] Error 1