Skip to content

Instantly share code, notes, and snippets.

@ches
Created June 29, 2011 16:19
Show Gist options
  • Save ches/1054215 to your computer and use it in GitHub Desktop.
Save ches/1054215 to your computer and use it in GitHub Desktop.
PySide homebrew formula build failure
[ches@lupin]$ brew install pyside
Also installing dependencies: qt, apiextractor, generatorrunner, shiboken
==> Downloading https://downloads.sourceforge.net/project/machomebrew/Bottles/qt-4.7.3-bottle.tar.gz
######################################################################## 100.0%
==> Pouring qt-4.7.3.tar.gz
==> Caveats
We agreed to the Qt opensource license for you.
If this is unacceptable you should uninstall.
==> Summary
/usr/local/Cellar/qt/4.7.3: 2561 files, 292M
==> Downloading http://pyside.org/files/apiextractor-0.10.3.tar.bz2
######################################################################## 100.0%
==> cmake . -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/apiextractor/0.10.3' -DCMAKE_BUILD_TYPE=None -Wno-dev
==> make install
/usr/local/Cellar/apiextractor/0.10.3: 18 files, 1.8M, built in 6.2 minutes
==> Downloading http://pyside.org/files/generatorrunner-0.6.10.tar.bz2
######################################################################## 100.0%
==> cmake . -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/generatorrunner/0.6.10' -DCMAKE_BUILD_TYPE=None -Wno-dev
==> make install
/usr/local/Cellar/generatorrunner/0.6.10: 13 files, 532K, built in 24 seconds
==> Downloading http://pyside.org/files/shiboken-1.0.3.tar.bz2
######################################################################## 100.0%
==> cmake . -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/shiboken/1.0.3' -DCMAKE_BUILD_TYPE=None -Wno-dev -DBUILD_TESTS
==> make install
/usr/local/Cellar/shiboken/1.0.3: 22 files, 640K, built in 35 seconds
==> Downloading http://www.pyside.org/files/pyside-qt4.7+1.0.3.tar.bz2
######################################################################## 100.0%
==> cmake . -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/pyside/1.0.3' -DCMAKE_BUILD_TYPE=None -Wno-dev -DBUILD_TESTS=N
==> make install
[ 1%] [ 1%] [ 1%] Generating moc_destroylistener.cxx
Generating moc_customwidgets.cxx
Generating moc_customwidget.cxx
Scanning dependencies of target uiplugin
[ 1%] [ 1%] [ 1%] Building CXX object plugins/CMakeFiles/uiplugin.dir/customwidgets.cpp.o
Building CXX object plugins/CMakeFiles/uiplugin.dir/customwidget.cpp.o
Building CXX object plugins/CMakeFiles/uiplugin.dir/moc_customwidget.cxx.o
Scanning dependencies of target pyside
[ 1%] Building CXX object libpyside/CMakeFiles/pyside.dir/dynamicqmetaobject.cpp.o
In file included from /tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/customwidgets.cpp:23:
/tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/customwidget.h:27:33: error: In file included from /tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/customwidget.cpp:24QtDesigner/QtDesigner: No such file or directoryIn file included from /tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/moc_customwidget.cxx:10:
:
/tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/customwidget.h:27:33:
error: QtDesigner/QtDesigner: No such file or directory
/tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/customwidget.h:27:33: error: QtDesigner/QtDesigner: No such file or directory
In file included from /usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/QDesignerCustomWidgetInterface:1,
from /tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/customwidget.h:28,
from /tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/customwidgets.cpp:23:
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:45:34: In file included from /usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/QDesignerCustomWidgetInterface:1,
from /tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/customwidget.h:28error: QtDesigner/extension.h: No such file or directory
,
from /tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/customwidget.cpp:24:
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:45:34:In file included from /usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/QDesignerCustomWidgetInterface:1,
from /tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/customwidget.h:28,
from /tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/moc_customwidget.cxx:10:
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:45:34: error: QtDesigner/extension.h: No such file or directory
error: QtDesigner/extension.h: No such file or directory
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:46:26: error: QtCore/QObject: No such file or directory
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:46:26: error: /usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:46:26:QtCore/QObject: No such file or directory
error: QtCore/QObject: No such file or directory
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:47:26: error: QtCore/QString: No such file or directory
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:47:26: error: QtCore/QString: No such file or directory
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:47:26: error: QtCore/QString: No such file or directory
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:48:23: /usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:48:23:/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:48:23: error: error: QtGui/QIcon: No such file or directoryerror:
QtGui/QIcon: No such file or directory
QtGui/QIcon: No such file or directory
/tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/moc_customwidget.cxx:12:2: error: #error "The header file 'customwidget.h' doesn't include <QObject>."
In file included from /usr/local/Cellar/qt/4.7.3/lib/QtCore.framework/Headers/QtPlugin:1,
from /tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/customwidgets.h:30,
from /tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/customwidgets.cpp:24:
/usr/local/Cellar/qt/4.7.3/lib/QtCore.framework/Headers/qplugin.h:45:28: error: QtCore/qobject.h: No such file or directory
/usr/local/Cellar/qt/4.7.3/lib/QtCore.framework/Headers/qplugin.h:46:29: error: QtCore/qpointer.h: No such file or directory
In file included from /usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/QDesignerCustomWidgetInterface:1,
from /tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/customwidget.h:28,
from /tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/customwidget.cpp:24:
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:50: error: ‘QT_BEGIN_HEADER’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:62: error: ‘QString’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:63: error: ‘QString’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:64: error: ‘QString’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:65: error: ‘QString’ does not name a type
In file included from /usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/QDesignerCustomWidgetInterface:1,
from /tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/customwidget.h:28,
from /tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/moc_customwidget.cxx:10:
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:50: error: ‘QT_BEGIN_HEADER’ does not name a type/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:66: error: ‘QString’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:67: error: ‘QIcon’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:71: error: ISO C++ forbids declaration of ‘QWidget’ with no type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:71: error: ‘QWidget’ declared as a ‘virtual’ field
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:71: error: expected ‘;’ before ‘*’ token
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:76: error: ‘QString’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:82: error: ‘QString’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:62: error: ‘QString’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:63: error: ‘QString’ does not name a typeIn file included from /usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/QDesignerCustomWidgetInterface:1,
from /tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/customwidget.h:28,
from /tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/plugins/customwidgets.cpp:23:
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:50: error: ‘QT_BEGIN_HEADER’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:64: error: ‘QString’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:65: error: ‘QString’ does not name a type/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:62: error: ‘QString’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:63: error: ‘QString’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:64: error: ‘QString’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:65: error: ‘QString’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:66: error: ‘QString’ does not name a type/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:66: error: ‘QString’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:67: error: ‘QIcon’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h: In member function ‘virtual void QDesignerCustomWidgetInterface::initialize(QDesignerFormEditorInterface*)’:
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:74: error: ‘Q_UNUSED’ was not declared in this scope
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:71: error: ISO C++ forbids declaration of ‘QWidget’ with no type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h: At global scope:
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:84: error: expected identifier before string constant/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:71: error: ‘QWidget’ declared as a ‘virtual’ field
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:84: error: expected ‘,’ or ‘...’ before string constant/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:71: error: expected ‘;’ before ‘*’ token
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:87: error: expected constructor, destructor, or type conversion before ‘class’
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:67: error: ‘QIcon’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:76: error: ‘QString’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:82: error: ‘QString’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:71: error: ISO C++ forbids declaration of ‘QWidget’ with no type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:71: error: ‘QWidget’ declared as a ‘virtual’ field
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:71: error: expected ‘;’ before ‘*’ token
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:76: error: ‘QString’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:82: error: ‘QString’ does not name a type
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h: In member function ‘virtual void QDesignerCustomWidgetInterface::initialize(QDesignerFormEditorInterface*)’:
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:74: error: ‘Q_UNUSED’ was not declared in this scope
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h: At global scope:
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:84: error: expected identifier before string constant
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:84: error: expected ‘,’ or ‘...’ before string constant
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:87: error: expected constructor, destructor, or type conversion before ‘class’
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h: In member function ‘virtual void QDesignerCustomWidgetInterface::initialize(QDesignerFormEditorInterface*)’:
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:74: error: ‘Q_UNUSED’ was not declared in this scope
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h: At global scope:
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:84: error: expected identifier before string constant
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:84: error: expected ‘,’ or ‘...’ before string constant
/usr/local/Cellar/qt/4.7.3/lib/QtDesigner.framework/Headers/customwidget.h:87: error: expected constructor, destructor, or type conversion before ‘class’
make[2]: *** [plugins/CMakeFiles/uiplugin.dir/customwidget.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 1%] Building CXX object libpyside/CMakeFiles/pyside.dir/destroylistener.cpp.o
make[2]: *** [plugins/CMakeFiles/uiplugin.dir/customwidgets.cpp.o] Error 1
make[2]: *** [plugins/CMakeFiles/uiplugin.dir/moc_customwidget.cxx.o] Error 1
make[1]: *** [plugins/CMakeFiles/uiplugin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 1%] [ 2%] Building CXX object libpyside/CMakeFiles/pyside.dir/globalreceiver.cpp.o
Building CXX object libpyside/CMakeFiles/pyside.dir/signalmanager.cpp.o
[ 2%] Building CXX object libpyside/CMakeFiles/pyside.dir/pysideclassinfo.cpp.o
/tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/libpyside/dynamicqmetaobject.cpp: In member function ‘void PySide::DynamicQMetaObject::addMethod(QMetaMethod::MethodType, const char*, const char*)’:
/tmp/homebrew-pyside-1.0.3-wG0d/pyside-qt4.7+1.0.3/libpyside/dynamicqmetaobject.cpp:303: note: ‘blank.PySide::MethodData::m_mtype’ was declared here
[ 2%] Building CXX object libpyside/CMakeFiles/pyside.dir/pysidemetafunction.cpp.o
[ 2%] Building CXX object libpyside/CMakeFiles/pyside.dir/pysidesignal.cpp.o
[ 2%] Building CXX object libpyside/CMakeFiles/pyside.dir/pysideslot.cpp.o
[ 2%] Building CXX object libpyside/CMakeFiles/pyside.dir/pysideproperty.cpp.o
[ 2%] Building CXX object libpyside/CMakeFiles/pyside.dir/pysideweakref.cpp.o
[ 2%] Building CXX object libpyside/CMakeFiles/pyside.dir/pyside.cpp.o
[ 3%] Building CXX object libpyside/CMakeFiles/pyside.dir/moc_destroylistener.cxx.o
Linking CXX shared library libpyside-python2.7.dylib
[ 3%] Built target pyside
make: *** [all] Error 2
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/pyside.rb#L24
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: bfda0424f08d21cf95f4e1381fa79a58f7dd3494
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 arrandale
OS X: 10.6.7
Kernel Architecture: i386
Ruby: 1.8.7-174
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.0.2
GCC-4.0: build 5494
GCC-4.2: build 5666
LLVM: build 2335
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/c++ => /usr/bin/c++-4.2
LD: /usr/bin/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -O3 -w -pipe
CXXFLAGS: -O3 -w -pipe
MAKEFLAGS: -j4
Error: Failed executing: make install
Please report this bug: https://github.com/mxcl/homebrew/wiki/Checklist-before-filing-a-new-issue
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/#issue/4628
https://github.com/mxcl/homebrew/issues/#issue/6058
Also try:
`brew doctor` to check your setup for common problems.
`brew missing` to check installed packages for missing deps.
@ErnestJoyce
Copy link

This error is produced by a bug in cmake 2.8 for MacOS. It is fixed by setting the Cmake ALTERNATIVE_QT_INCLUDE_DIR to the value : /usr/local/Cellar/qt/4.7.3/Frameworks/

@ches
Copy link
Author

ches commented Jul 23, 2011

Thanks! Could you perhaps comment about it on the PySide pull request so that the formula author might improve his build configuration?

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