嗨,我得到的錯誤說clang: error: unknown argument: '-mno-fused-madd'
當我試圖在virtualenv
命名kivyprogramming安裝kivy。得到錯誤MNO融合,MADD安裝kivy中的virtualenv在魚貝
cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -Wno-error=unused-command-line-argument-hard-error-in-future -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c /private/tmp/pip-build-UDRH26/kivy/kivy/graphics/texture.c -o build/temp.macosx-10.9-intel-2.7/private/tmp/pip-build-UDRH26/kivy/kivy/graphics/texture.o -F/Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks -arch x86_64
clang: error: unknown argument: '-mno-fused-madd'
error: command 'cc' failed with exit status 1
即使我嘗試使用:sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install kivy
了上述clang: error: unknown argument: '-mno-fused-madd'
同樣的錯誤我的gcc版本:
$gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
也得到了錯誤編譯用Cython文件
cythoning /private/var/folders/43/m1qv9zf53q19sqh6h9kg9pz80000gn/T/pip-build-Im9flX/kivy/kivy/graphics/texture.pyx to /private/var/folders/43/m1qv9zf53q19sqh6h9kg9pz80000gn/T/pip-build-Im9flX/kivy/kivy/graphics/texture.c
Error compiling Cython file:
------------------------------------------------------------
...
cpdef release(self)
cpdef get_pixel_color(self, int wx, int wy)
cdef void create_fbo(self)
cdef void delete_fbo(self)
cdef void apply(self)
^
------------------------------------------------------------
kivy/graphics/fbo.pxd:25:19: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
我應該繼續使用fish shell作爲預設t外殼烤kivy蛋糕還是我必須切換回bash
外殼,這是我的OSX小牛默認?
也許你是對的,但我想通過解決方案進入安裝。當我安裝OSx Mavericks命令行工具時,問題出現了,所以我必須在我的'〜/ .bashrc'中添加以下行,即'export ARCHFLAGS =「 - Wno-error = unused-command-line-argument-hard未來的錯誤「,然後我已經從github克隆了最新的kivy,我進入該目錄並運行'python setup.py install',它的上述錯誤信息僅作爲警告消息出現,但安裝成功。由於您也提供了makefile,因此當我嘗試執行make install時,此技術無法使用。 – 2015-02-23 14:50:11