Created
January 1, 2011 10:47
-
-
Save phoebebright/761674 to your computer and use it in GitHub Desktop.
Further problem installing pyqt with brew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The-Black-Book-2:Formula phoebebr$ brew install pyqt | |
==> Downloading http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.8.2.tar.gz | |
File already downloaded and cached to /Users/phoebebr/Library/Caches/Homebrew | |
==> python2.7 ./configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.8.2/bin --destdir=/usr/local/Cellar/pyqt/4.8.2/lib/python --sipdi | |
==> make | |
g++ -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/4.7.1/mkspecs/macx-g++ -I. -I/usr/local/Cellar/qt/4.7.1/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.7.1/include/QtCore -I/usr/local/Cellar/qt/4.7.1/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.7.1/include/QtGui -I/usr/local/Cellar/qt/4.7.1/lib/QtDeclarative.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.7.1/include/QtDeclarative -I/usr/local/Cellar/qt/4.7.1/include -I/usr/local/Cellar/sip/4.12/include -I/usr/local/Cellar/python/2.7.1/include/python2.7 -I../../QtDeclarative -I. -I. -F/usr/local/Cellar/qt/4.7.1/lib -o qpydeclarative_listwrapper.o qpydeclarative_listwrapper.cpp | |
g++ -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/4.7.1/mkspecs/macx-g++ -I. -I/usr/local/Cellar/qt/4.7.1/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.7.1/include/QtCore -I/usr/local/Cellar/qt/4.7.1/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.7.1/include/QtGui -I/usr/local/Cellar/qt/4.7.1/lib/QtDeclarative.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.7.1/include/QtDeclarative -I/usr/local/Cellar/qt/4.7.1/include -I/usr/local/Cellar/sip/4.12/include -I/usr/local/Cellar/python/2.7.1/include/python2.7 -I../../QtDeclarative -I. -I. -F/usr/local/Cellar/qt/4.7.1/lib -o qpydeclarative_post_init.o qpydeclarative_post_init.cpp | |
qpydeclarative_post_init.cpp:31:20: error: Python.h: No such file or directory | |
In file included from qpydeclarative_post_init.cpp:33: | |
qpydeclarativelistproperty.h:41: error: ‘PyTypeObject’ does not name a type | |
qpydeclarative_post_init.cpp:37: error: variable or field ‘qpydeclarative_post_init’ declared void | |
qpydeclarative_post_init.cpp:37: error: ‘PyObject’ was not declared in this scope | |
qpydeclarative_post_init.cpp:37: error: ‘module_dict’ was not declared in this scope | |
In file included from ../../QtDeclarative/sipAPIQtDeclarative.h:38, | |
from qpydeclarative_listwrapper.cpp:31: | |
/usr/local/Cellar/sip/4.12/include/sip.h:32:20: error: Python.h: No such file or directory | |
/usr/local/Cellar/sip/4.12/include/sip.h:50:2:make[2]: *** [qpydeclarative_post_init.o] Error 1 | |
make[2]: *** Waiting for unfinished jobs.... | |
error: #error "This version of SIP requires Python v2.3 or later" | |
In file included from ../../QtDeclarative/sipAPIQtDeclarative.h:38, | |
from qpydeclarative_listwrapper.cpp:31: | |
/usr/local/Cellar/sip/4.12/include/sip.h:315: error: ‘PyObject’ has not been declared | |
/usr/local/Cellar/sip/4.12/include/sip.h:316: error: ‘PyObject’ has not been declared | |
/usr/local/Cellar/sip/4.12/include/sip.h:316: error: ‘PyObject’ has not been declared | |
/usr/local/Cellar/sip/4.12/include/sip.h:316: error: ‘PyObject’ has not been declared | |
/usr/local/Cellar/sip/4.12/include/sip.h:316: error: ‘PyObject’ has not been declared | |
/usr/local/Cellar/sip/4.12/include/sip.h:318: error: ‘visitproc’ has not been declared | |
/usr/local/Cellar/sip/4.12/include/sip.h:324: error: typedef ‘sipBufferFunc’ is initialized (use __typeof__ instead) | |
/usr/local/Cellar/sip/4.12/include/sip.h:324: error: ‘PyObject’ was not declared in this scope | |
/usr/local/Cellar/sip/4.12/include/sip.h:324: error: expected primary-expression before ‘,’ token | |
/usr/local/Cellar/sip/4.12/include/sip.h:324: error: expected primary-expression before ‘void’ | |
/usr/local/Cellar/sip/4.12/include/sip.h:324: error: expected primary-expression before ‘int’ | |
and much more like this... | |
In file included from qpydeclarative_listwrapper.cpp:33: | |
qpydeclarative_listwrapper.h:46: error: expected ‘;’ before ‘(’ token | |
qpydeclarative_listwrapper.h:54: error: expected `)' before ‘*’ token | |
qpydeclarative_listwrapper.h:59: error: ISO C++ forbids declaration of ‘PyObject’ with no type | |
qpydeclarative_listwrapper.h:59: error: expected ‘;’ before ‘*’ token | |
qpydeclarative_listwrapper.cpp:37: error: expected `)' before ‘*’ token | |
qpydeclarative_listwrapper.cpp: In destructor ‘virtual ListWrapper::~ListWrapper()’: | |
qpydeclarative_listwrapper.cpp:47: error: ‘_py_list’ was not declared in this scope | |
qpydeclarative_listwrapper.cpp:47: error: ‘Py_DECREF’ was not declared in this scope | |
qpydeclarative_listwrapper.cpp: At global scope: | |
qpydeclarative_listwrapper.cpp:52: error: ‘ListWrapper* ListWrapper::wrapper’ is not a static member of ‘class ListWrapper’ | |
qpydeclarative_listwrapper.cpp:52: error: ‘PyObject’ was not declared in this scope | |
qpydeclarative_listwrapper.cpp:52: error: ‘py_list’ was not declared in this scope | |
qpydeclarative_listwrapper.cpp:52: error: expected primary-expression before ‘*’ token | |
qpydeclarative_listwrapper.cpp:52: error: initializer expression list treated as compound expression | |
qpydeclarative_listwrapper.cpp:53: error: expected ‘,’ or ‘;’ before ‘{’ token | |
make[2]: *** [qpydeclarative_listwrapper.o] Error 1 | |
make[1]: *** [all] Error 2 | |
make: *** [all] Error 2 | |
Exit status: 2 | |
http://github.com/mxcl/homebrew/blob/master/Library/Formula/pyqt.rb#L21 | |
==> Environment | |
HOMEBREW_VERSION: 0.7.1 | |
HEAD: 93d20c0ee4c6167adfb2445eee508a1cad31fb4d | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
HOMEBREW_REPOSITORY: /usr/local | |
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew | |
Hardware: dual-core 64-bit core2 | |
OS X: 10.6.4 | |
Kernel Architecture: i386 | |
Ruby: 1.8.7-174 | |
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby | |
Xcode: 3.2.5 | |
GCC-4.0: build 5494 | |
GCC-4.2: build 5664 | |
LLVM: build 2333 | |
MacPorts or Fink? false | |
X11 installed? true | |
==> Build Flags | |
CC: /usr/bin/cc => /usr/bin/gcc-4.2 | |
CXX: /usr/bin/c++ => /usr/bin/c++-4.2 | |
LD: /usr/bin/cc => /usr/bin/gcc-4.2 | |
CFLAGS: -O3 -march=core2 -w -pipe | |
CXXFLAGS: -O3 -march=core2 -w -pipe | |
MAKEFLAGS: -j2 | |
Error: Failure while executing: make | |
Please follow the instructions to report this bug at https://github.com/mxcl/homebrew/wiki/new-issue | |
Also try: | |
`brew doctor` to check your setup for common problems. | |
`brew missing` to check installed packages for missing deps. | |
The-Black-Book-2:~ phoebebr$ locate Python.h | |
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h | |
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wx-2.8/wx/wxPython/wxPython.h | |
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h | |
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h | |
/Developer/SDKs/MacOSX10.6.sdk/usr/include/wx-2.8/wx/wxPython/wxPython.h | |
/usr/include/wx-2.8/wx/wxPython/wxPython.h | |
/usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h | |
/usr/local/lib/wxPython-unicode-2.8.11.0/include/wx-2.8/wx/wxPython/wxPython.h | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment