Skip to content

Instantly share code, notes, and snippets.

@dkvdm
Created December 17, 2011 20:27
Show Gist options
  • Save dkvdm/1491273 to your computer and use it in GitHub Desktop.
Save dkvdm/1491273 to your computer and use it in GitHub Desktop.
pyQt installation problems
==> Downloading http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.8.6.tar.gz
File already downloaded in /Users/FLX/Library/Caches/Homebrew
/usr/bin/tar xf /Users/FLX/Library/Caches/Homebrew/pyqt-4.8.6.tar.gz
==> python ./configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.8.6/bin --destdir=/usr/local/Cellar/pyqt/4.8.6/lib/python --sipdir=/usr/local/Cellar/pyqt/4.8.6/share/sip
python ./configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.8.6/bin --destdir=/usr/local/Cellar/pyqt/4.8.6/lib/python --sipdir=/usr/local/Cellar/pyqt/4.8.6/share/sip
Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.8.6 (licensed under the GNU General Public
License) for Python 2.7.2 on darwin.
Found the license file pyqt-gpl.sip.
Checking to see if the QtGui module should be built...
Checking to see if the QtHelp module should be built...
Checking to see if the QtMultimedia module should be built...
Checking to see if the QtNetwork module should be built...
Checking to see if the QtDeclarative module should be built...
Checking to see if the QtOpenGL module should be built...
Checking to see if the QtScript module should be built...
Checking to see if the QtScriptTools module should be built...
Checking to see if the QtSql module should be built...
Checking to see if the QtSvg module should be built...
Checking to see if the QtTest module should be built...
Checking to see if the QtWebKit module should be built...
Checking to see if the QtXml module should be built...
Checking to see if the QtXmlPatterns module should be built...
Checking to see if the phonon module should be built...
Checking to see if the QtAssistant module should be built...
Checking to see if the QtDesigner module should be built...
Qt v4.8.0 free edition is being used.
Qt is built as a framework.
SIP 4.12.4 is being used.
The Qt header files are in /usr/local/Cellar/qt/4.8.0/include.
The shared Qt libraries are in /usr/local/Cellar/qt/4.8.0/lib.
The Qt binaries are in /usr/local/Cellar/qt/4.8.0/bin.
The Qt mkspecs directory is in /usr/local/Cellar/qt/4.8.0.
These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia,
QtNetwork, QtDeclarative, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg,
QtTest, QtWebKit, QtXml, QtXmlPatterns, phonon, QtDesigner.
The PyQt Python package will be installed in
/usr/local/Cellar/pyqt/4.8.6/lib/python.
PyQt is being built with generated docstrings.
PyQt is being built with 'protected' redefined as 'public'.
The Designer plugin will be installed in
/usr/local/Cellar/qt/4.8.0/plugins/designer.
The PyQt .sip files will be installed in
/usr/local/Cellar/pyqt/4.8.6/share/sip.
pyuic4, pyrcc4 and pylupdate4 will be installed in
/usr/local/Cellar/pyqt/4.8.6/bin.
Generating the C++ source for the QtCore module...
Creating the Makefile for the QtCore module...
Generating the C++ source for the QtDeclarative module...
Creating the Makefile for the QtDeclarative module...
Generating the C++ source for the QtGui module...
Creating the Makefile for the QtGui module...
Generating the C++ source for the QtHelp module...
Creating the Makefile for the QtHelp module...
Generating the C++ source for the QtMultimedia module...
Creating the Makefile for the QtMultimedia module...
Generating the C++ source for the QtNetwork module...
Creating the Makefile for the QtNetwork module...
Determining the OpenGL data types...
Generating the C++ source for the QtOpenGL module...
Creating the Makefile for the QtOpenGL module...
Generating the C++ source for the QtScript module...
Creating the Makefile for the QtScript module...
Generating the C++ source for the QtScriptTools module...
Creating the Makefile for the QtScriptTools module...
Generating the C++ source for the QtSql module...
Creating the Makefile for the QtSql module...
Generating the C++ source for the QtSvg module...
Creating the Makefile for the QtSvg module...
Generating the C++ source for the QtTest module...
Creating the Makefile for the QtTest module...
Generating the C++ source for the QtWebKit module...
Creating the Makefile for the QtWebKit module...
Generating the C++ source for the QtXml module...
Creating the Makefile for the QtXml module...
Generating the C++ source for the QtXmlPatterns module...
Creating the Makefile for the QtXmlPatterns module...
Generating the C++ source for the phonon module...
Creating the Makefile for the phonon module...
Generating the C++ source for the QtDesigner module...
Creating the Makefile for the QtDesigner module...
Generating the C++ source for the Qt module...
Creating the Makefile for the Qt module...
Creating QScintilla API file...
Creating top level Makefile...
Creating QPy support library for QtOpenGL Makefile...
Creating QPy support library for QtDeclarative Makefile...
Creating QPy support library for QtCore Makefile...
Creating QPy support library for QtGui Makefile...
Creating QPy support library for QtDesigner Makefile...
Creating QPy support libraries Makefile...
Creating pyuic4 wrapper...
Creating pyuic4 Makefile...
Creating pylupdate4 Makefile...
Creating pyrcc4 Makefile...
Creating Qt Designer plugin Makefile...
Creating pyqtconfig.py...
==> make
make
g++ -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/4.8.0/mkspecs/macx-g++ -I. -I/usr/local/Cellar/qt/4.8.0/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtOpenGL.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtOpenGL.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/include -I/usr/local/Cellar/sip/4.12.4/include -I/usr/local/Cellar/python/2.7.2/include/python2.7 -I../../QtOpenGL -I. -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I. -F/usr/local/Cellar/qt/4.8.0/lib -o qpyopengl_attribute_array.o qpyopengl_attribute_array.cpp
In file included from /usr/include/c++/4.2.1/ios:47,
from /usr/include/c++/4.2.1/ostream:45,
from /usr/include/c++/4.2.1/iterator:70,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qlist.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qobject.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtGui/qwidget.h:46,
from /usr/local/Cellar/qt/4.8.0/lib/QtOpenGL.framework/Versions/4/Headers/qgl.h:45,
from qpyopengl_attribute_array.cpp:33:
/usr/include/c++/4.2.1/bits/localefwd.h:58:34: error: macro "isspace" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/localefwd.h:70:34: error: macro "isupper" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/localefwd.h:74:34: error: macro "islower" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/localefwd.h:78:34: error: macro "isalpha" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/localefwd.h:94:34: error: macro "isalnum" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/localefwd.h:102:34: error: macro "toupper" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/localefwd.h:106:34: error: macro "tolower" passed 2 arguments, but takes just 1
In file included from /usr/include/c++/4.2.1/bits/basic_ios.h:44,
from /usr/include/c++/4.2.1/ios:50,
from /usr/include/c++/4.2.1/ostream:45,
from /usr/include/c++/4.2.1/iterator:70,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qlist.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qobject.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtGui/qwidget.h:46,
from /usr/local/Cellar/qt/4.8.0/lib/QtOpenGL.framework/Versions/4/Headers/qgl.h:45,
from qpyopengl_attribute_array.cpp:33:
/usr/include/c++/4.2.1/bits/locale_facets.h:245:53: error: macro "toupper" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:274:53: error: macro "tolower" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:817:53: error: macro "toupper" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:850:53: error: macro "tolower" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:4614:44: error: macro "isspace" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:4632:44: error: macro "isupper" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:4638:44: error: macro "islower" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:4644:44: error: macro "isalpha" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:4668:44: error: macro "isalnum" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:4680:44: error: macro "toupper" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:4686:44: error: macro "tolower" passed 2 arguments, but takes just 1
In file included from /usr/local/Cellar/python/2.7.2/include/python2.7/Python.h:126,
from qpyopengl_attribute_array.cpp:30:
/usr/local/Cellar/python/2.7.2/include/python2.7/modsupport.h:27: warning: ‘PyArg_ParseTuple’ is an unrecognized format function type
In file included from /usr/include/c++/4.2.1/ios:47,
from /usr/include/c++/4.2.1/ostream:45,
from /usr/include/c++/4.2.1/iterator:70,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qlist.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qobject.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtGui/qwidget.h:46,
from /usr/local/Cellar/qt/4.8.0/lib/QtOpenGL.framework/Versions/4/Headers/qgl.h:45,
from qpyopengl_attribute_array.cpp:33:
/usr/include/c++/4.2.1/bits/localefwd.h:58: error: ‘std::isspace’ declared as an ‘inline’ variable
/usr/include/c++/4.2.1/bits/localefwd.h:58: error: template declaration of ‘bool std::isspace’
/usr/include/c++/4.2.1/bits/localefwd.h:70: error: ‘std::isupper’ declared as an ‘inline’ variable
/usr/include/c++/4.2.1/bits/localefwd.h:70: error: template declaration of ‘bool std::isupper’
/usr/include/c++/4.2.1/bits/localefwd.h:74: error: ‘std::islower’ declared as an ‘inline’ variable
/usr/include/c++/4.2.1/bits/localefwd.h:74: error: template declaration of ‘bool std::islower’
/usr/include/c++/4.2.1/bits/localefwd.h:78: error: ‘std::isalpha’ declared as an ‘inline’ variable
/usr/include/c++/4.2.1/bits/localefwd.h:78: error: template declaration of ‘bool std::isalpha’
/usr/include/c++/4.2.1/bits/localefwd.h:94: error: ‘std::isalnum’ declared as an ‘inline’ variable
/usr/include/c++/4.2.1/bits/localefwd.h:94: error: template declaration of ‘bool std::isalnum’
/usr/include/c++/4.2.1/bits/localefwd.h:102: error: ‘std::toupper’ declared as an ‘inline’ variable
/usr/include/c++/4.2.1/bits/localefwd.h:102: error: template declaration of ‘_CharT std::toupper’
/usr/include/c++/4.2.1/bits/localefwd.h:106: error: ‘std::tolower’ declared as an ‘inline’ variable
/usr/include/c++/4.2.1/bits/localefwd.h:106: error: template declaration of ‘_CharT std::tolower’
In file included from /usr/include/c++/4.2.1/bits/basic_ios.h:44,
from /usr/include/c++/4.2.1/ios:50,
from /usr/include/c++/4.2.1/ostream:45,
from /usr/include/c++/4.2.1/iterator:70,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qlist.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qobject.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtGui/qwidget.h:46,
from /usr/local/Cellar/qt/4.8.0/lib/QtOpenGL.framework/Versions/4/Headers/qgl.h:45,
from qpyopengl_attribute_array.cpp:33:
/usr/include/c++/4.2.1/bits/locale_facets.h:230: error: ‘btowc’ is not a type
/usr/include/c++/4.2.1/bits/locale_facets.h:245: error: expected ‘;’ before ‘const’
/usr/include/c++/4.2.1/bits/locale_facets.h:258: error: expected `;' before ‘char_type’
/usr/include/c++/4.2.1/bits/locale_facets.h:259: error: ‘btowc’ is not a type
/usr/include/c++/4.2.1/bits/locale_facets.h:274: error: expected ‘;’ before ‘const’
/usr/include/c++/4.2.1/bits/locale_facets.h:290: error: expected `;' before ‘char_type’
/usr/include/c++/4.2.1/bits/locale_facets.h: In member function ‘_CharT std::__ctype_abstract_base<_CharT>::towupper(int (*)(_CharT)) const’:
/usr/include/c++/4.2.1/bits/locale_facets.h:231: error: ‘__c’ was not declared in this scope
/usr/include/c++/4.2.1/bits/locale_facets.h: In member function ‘_CharT std::__ctype_abstract_base<_CharT>::towlower(int (*)(_CharT)) const’:
/usr/include/c++/4.2.1/bits/locale_facets.h:260: error: ‘__c’ was not declared in this scope
/usr/include/c++/4.2.1/bits/locale_facets.h: At global scope:
/usr/include/c++/4.2.1/bits/locale_facets.h:800: error: ‘btowc’ is not a type
/usr/include/c++/4.2.1/bits/locale_facets.h:817: error: expected ‘;’ before ‘const’
/usr/include/c++/4.2.1/bits/locale_facets.h:832: error: expected `;' before ‘char_type’
/usr/include/c++/4.2.1/bits/locale_facets.h:833: error: ‘btowc’ is not a type
/usr/include/c++/4.2.1/bits/locale_facets.h:850: error: expected ‘;’ before ‘const’
/usr/include/c++/4.2.1/bits/locale_facets.h:869: error: expected `;' before ‘char_type’
/usr/include/c++/4.2.1/bits/locale_facets.h: In member function ‘char std::ctype<char>::towupper(int (*)(char)) const’:
/usr/include/c++/4.2.1/bits/locale_facets.h:801: error: ‘__c’ was not declared in this scope
/usr/include/c++/4.2.1/bits/locale_facets.h: In member function ‘char std::ctype<char>::towlower(int (*)(char)) const’:
/usr/include/c++/4.2.1/bits/locale_facets.h:834: error: ‘__c’ was not declared in this scope
In file included from /usr/include/c++/4.2.1/bits/basic_ios.h:44,
from /usr/include/c++/4.2.1/ios:50,
from /usr/include/c++/4.2.1/ostream:45,
from /usr/include/c++/4.2.1/iterator:70,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qlist.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qobject.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtGui/qwidget.h:46,
from /usr/local/Cellar/qt/4.8.0/lib/QtOpenGL.framework/Versions/4/Headers/qgl.h:45,
from qpyopengl_attribute_array.cpp:33:
/usr/include/c++/4.2.1/bits/locale_facets.h: At global scope:
/usr/include/c++/4.2.1/bits/locale_facets.h:4614: error: function definition does not declare parameters
/usr/include/c++/4.2.1/bits/locale_facets.h:4632: error: function definition does not declare parameters
/usr/include/c++/4.2.1/bits/locale_facets.h:4638: error: function definition does not declare parameters
/usr/include/c++/4.2.1/bits/locale_facets.h:4644: error: function definition does not declare parameters
/usr/include/c++/4.2.1/bits/locale_facets.h:4668: error: function definition does not declare parameters
/usr/include/c++/4.2.1/bits/locale_facets.h:4680: error: function definition does not declare parameters
/usr/include/c++/4.2.1/bits/locale_facets.h:4686: error: function definition does not declare parameters
make[2]: *** [qpyopengl_attribute_array.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.8
HEAD: 3b03b14c21c12e06e66baecc80f28797313fb194
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: quad-core 64-bit nehalem
OS X: 10.7.2
Kernel Architecture: x86_64
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.2
GCC-4.0: N/A
GCC-4.2: N/A
LLVM: build 2336
Clang: 3.0-211.10.1
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/llvm-g++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -O3 -w -pipe -march=core2 -msse4
CXXFLAGS: -O3 -w -pipe -march=core2 -msse4
MAKEFLAGS: -j4
Error: Failed executing: make
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/8182
Otherwise, please report the bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
@ZoomQuiet
Copy link

same in mac 10.7.2
https://gist.github.com/1513373

@dkvdm
Copy link
Author

dkvdm commented Dec 29, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment