Mac OS X下调试iOS模拟器中的服务端API请求,想通过修改host来使用本地web.py替换远程服务器,为了让手机端的代码不需要修改,需要让web.py跑在80端口.
遇到的问题
python code.py 80
提示错误如下,但是如果把80改成别的端口就是好的
1 2 3 4 5 6 7 8 9 10 11 12 13 14
http://0.0.0.0:80/ Traceback (most recent call last): File "hello.py", line 15, in <module> app.run() File "/Library/Python/2.7/site-packages/web.py-0.37-py2.7.egg/web/application.py", line 313, in run return wsgi.runwsgi(self.wsgifunc(*middleware)) File "/Library/Python/2.7/site-packages/web.py-0.37-py2.7.egg/web/wsgi.py", line 54, in runwsgi return httpserver.runsimple(func, validip(listget(sys.argv, 1, ''))) File "/Library/Python/2.7/site-packages/web.py-0.37-py2.7.egg/web/httpserver.py", line 157, in runsimple server.start() File "/Library/Python/2.7/site-packages/web.py-0.37-py2.7.egg/web/wsgiserver/__init__.py", line 1753, in start raise socket.error(msg) socket.error: No socket could be created
Undefined symbols for architecture i386: "_OBJC_CLASS_$_FMDatabase", referenced from: objc-class-ref in DBWrapper.o ld: symbol(s) not found for architecture i386
post_install do |installer_representation| installer_representation.project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['ARCHS'] = 'armv7 armv7s' config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO' end end end
The ffmpeg H.264 decoder is LGPL. Only the encoders are GPL, and x264 does not provide a decoder. It also has the advantage over Framewave and IPP of actually being usable.