1
我試圖在Mac OSX 10.11.2上安裝kivy幾個小時了。 我做什麼(如下解釋:https://kivy.org/docs/installation/installation-osx.html):安裝mac:生成1錯誤(錯誤:'_GStaticAssertCompileTimeAssertion_0'聲明爲數組)
$ brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer gstreamer
$ pip install -I Cython==0.23
$ USE_OSX_FRAMEWORKS=0 pip install kivy
前兩個命令的工作完全正常。 最後一個命令給我這個錯誤:
16 warnings and 1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
當我看到上面唯一的錯誤我得到的是:
In file included from /usr/local/Cellar/glib/2.48.2/include/glib-2.0/glib/galloca.h:32:
/usr/local/Cellar/glib/2.48.2/include/glib-2.0/glib/gtypes.h:422:3: error: '_GStaticAssertCompileTimeAssertion_0' declared as an array with a negative size
G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/glib/2.48.2/include/glib-2.0/glib/gmacros.h:232:103: note: expanded from macro 'G_STATIC_ASSERT'
#define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] G_GNUC_UNUSED ^~~~~~~~~~~~~~~
你能幫助我嗎?讓我知道你是否需要更多信息。 非常感謝!