cartr / homebrew-qt4 Goto Github PK
View Code? Open in Web Editor NEWHomebrew tap for Qt4 and dependent formulae on Sierra
License: BSD 2-Clause "Simplified" License
Homebrew tap for Qt4 and dependent formulae on Sierra
License: BSD 2-Clause "Simplified" License
I suspect the solution is to package our own poppler
with the Qt 4 backend -- not sure how doable this is (has Poppler retired their Qt 4 support?)
Quick note for Travis CI users: Until this issue is fixed, you may be able to temporarily get your Travis builds working by switching to macOS Sierra with osx_image: xcode8.2
. See their docs for more details about that.
Now that Homebrew has completely pulled Qt4 support, some users want to install this tap on older OS versions. In particular, Travis CI still uses El Capitan by default โ see #7. It would be nice to have bottles for these platforms, but the only Mac I have runs Sierra, and it's impractical to dual-boot an older version.
The best solution would be to find a CI service that allows El Capitan builds and has a long timeout, as Qt4 can take over an hour to build.
Hello,
Would it be possible to provide bottles compiled with more backward compatibles options to avoid the "Illegal Instruction: 4" on old CPUs? It looks like you're building everything on recent machines
Some people says it would be better to compile with LLVM/GCC instead of CLANG to avoid such a problem, what do you think?
Maybe there's an -mmarch=core2
? It probably makes no sense to use recent arch compilation (like corei7) since Qt4 was designed and developed when these specific instructions wasn't existing :)
Thanks,
Below is the output when I try to run brew install pyqt@4 --with-python3
on OSX Sierra 10.12.6
ยป brew install pyqt@4 --with-python3
==> Installing pyqt@4 from cartr/qt4
==> Installing dependencies for cartr/qt4/pyqt@4: sip
==> Installing cartr/qt4/pyqt@4 dependency: sip
==> Downloading https://homebrew.bintray.com/bottles/sip-4.19.3_1.sierra.bottle.tar.gz
Already downloaded: /Users/johan/Library/Caches/Homebrew/sip-4.19.3_1.sierra.bottle.tar.gz
==> Pouring sip-4.19.3_1.sierra.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink lib/python3.6/site-packages/sip.pyi
Target /usr/local/lib/python3.6/site-packages/sip.pyi
already exists. You may want to remove it:
rm '/usr/local/lib/python3.6/site-packages/sip.pyi'
To force the link and overwrite all conflicting files:
brew link --overwrite sip
To list all files that would be deleted:
brew link --overwrite --dry-run sip
Possible conflicting files are:
/usr/local/lib/python3.6/site-packages/sip.pyi
/usr/local/lib/python3.6/site-packages/sip.so
/usr/local/lib/python3.6/site-packages/sipconfig.py
/usr/local/lib/python3.6/site-packages/sipdistutils.py
==> Using the sandbox
Error in sitecustomize; set PYTHONVERBOSE for traceback:
KeyError: 'PYTHONPATH'
Error in sitecustomize; set PYTHONVERBOSE for traceback:
KeyError: 'PYTHONPATH'
==> Caveats
The sip-dir for Python is /usr/local/share/sip.
==> Summary
๐บ /usr/local/Cellar/sip/4.19.3_1: 16 files, 1MB
==> Installing cartr/qt4/pyqt@4 --with-python3
==> Downloading https://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.12/PyQt4_gpl_mac-4.12.tar.gz/download
Already downloaded: /Users/johan/Library/Caches/Homebrew/[email protected]
==> python configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt@4/4.12_1/bin --destdir=/usr/local/Cellar/pyqt@4/4.12_1/lib/python2.7/site-packages --sipdir=/usr/local/Cellar/pyqt@4/4.12_1/share/
==> python configure-ng.py --confirm-license --bindir=/usr/local/Cellar/pyqt@4/4.12_1/bin --destdir=/usr/local/Cellar/pyqt@4/4.12_1/lib/python2.7/site-packages --sipdir=/usr/local/Cellar/pyqt@4/4.12_1/sha
==> make
Last 15 lines from /Users/johan/Library/Logs/Homebrew/pyqt@4/03.make:
^
^#include <sip.h>
^
1 error generated.
1 error generated.
1 error generated.
make[1]: *** [sipQtCoreQAbstractEventDispatcher.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [qpycore_post_init.o] Error 1
make[1]: *** [sipQtCoreQAbstractAnimation.o] Error 1
1 error generated.
make[1]: *** [sipQtCorecmodule.o] Error 1
make: *** [sub-QtCore-make_default-ordered] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/cartr/homebrew-qt4/issues
These open issues may also help:
pyqt@4 - WebKit is broken https://github.com/cartr/homebrew-qt4/issues/21
I just saw that bintray will soon go away, will there be another way to distribute bottles? Maybe use github binary release assets?
Also, can we contribute
https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/
skfly@skflydeMacBook-Pro ~ % brew tap-pin cartr/qt4
Error: Calling brew tap-pin user/tap is disabled! Use fully-scoped user/tap/formula naming instead.
This discrepancy causes cmake generation to fail because certain Qt cmake variables are not correctly defined by find_program(qt4). Note QT_INSTALL_PLUGINS
and QT_INSTALL_IMPORTS
point to nonexistent qt4
directories but should be correct for a keg-only install.
$ qmake -query
QT_INSTALL_PREFIX:/usr/local
QT_INSTALL_DATA:/usr/local/Cellar/qt@4/4.8.7
QT_INSTALL_DOCS:/usr/local/doc
QT_INSTALL_HEADERS:/usr/local/include
QT_INSTALL_LIBS:/usr/local/lib
QT_INSTALL_BINS:/usr/local/bin
QT_INSTALL_PLUGINS:/usr/local/lib/qt4/plugins
QT_INSTALL_IMPORTS:/usr/local/lib/qt4/imports
QT_INSTALL_TRANSLATIONS:/usr/local/Cellar/qt@4/4.8.7/translations
QT_INSTALL_CONFIGURATION:/usr/local
QT_INSTALL_EXAMPLES:/usr/local/Cellar/qt@4/4.8.7/examples
QT_INSTALL_DEMOS:/usr/local/Cellar/qt@4/4.8.7/demos
QMAKE_MKSPECS:/usr/local/Cellar/qt@4/4.8.7/mkspecs
QMAKE_VERSION:2.01a
QT_VERSION:4.8.7
I haven't identified a root cause yet but reporting in case it is obvious to someone more familiar with these Qt4 formulae.
Line 8 in aa161cd
Line 8 in aa161cd
This becomes invalid in Homebrew/brew#12259 and as a result it is no longer possible to tap this brew.
The following error is produced:
==> Tapping cartr/qt4
Cloning into '/usr/local/Homebrew/Library/Taps/cartr/homebrew-qt4'...
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/cartr/homebrew-qt4/treeline.rb
treeline: Calling bottle :unneeded is disabled! There is no replacement.
Please report this issue to the cartr/qt4 tap (not Homebrew/brew or Homebrew/core):
/usr/local/Homebrew/Library/Taps/cartr/homebrew-qt4/treeline.rb:8
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/cartr/homebrew-qt4/qbzr.rb
qbzr: Calling bottle :unneeded is disabled! There is no replacement.
Please report this issue to the cartr/qt4 tap (not Homebrew/brew or Homebrew/core):
/usr/local/Homebrew/Library/Taps/cartr/homebrew-qt4/qbzr.rb:8
Error: Cannot tap cartr/qt4: invalid syntax in tap!
Found in https://github.com/mesonbuild/meson/runs/5504514413?check_suite_focus=true#step:6:1
Found the following error message while updating brew today. I just did an upgrade of brew yesterday.
Warning: Calling 'depends_on :python3' is deprecated!
Use 'depends_on "python3"' instead.
/usr/local/Homebrew/Library/Taps/cartr/homebrew-qt4/[email protected]:8:in `<class:PyqtAT4>'
Please report this to the cartr/qt4 tap!
The qt4 source code has moved from
https://download.qt.io/official_releases/qt/4.8/4.8.7/
it is now at
https://download.qt.io/archive/qt/4.8/4.8.7/
I guess that this just needs updating in the [email protected]
file for everything to work as expected.
Thanks!
The following line causes a MethodDeprecationError
when brew upgrade
is run due to the deprecation of the method in Homebrew core.
homebrew-qt4/[email protected]
Line 129 in af62582
The relevant Pull Request in Homebrew can be seen here: Homebrew/brew#5519
I recommend you rename the Qt formula to Qt4 and change depends_on
accordingly. This is because now that Qt 4 has been removed from Homebrew in Homebrew/homebrew-core#8306 at some point in the future we'll be renaming the Qt5 formula to just Qt. I'll wait for your ๐ that you're ready before we do that to avoid screwing your tap.
Here is error log :
src/corelib/tools/qvarlengtharray.h:49:10: fatal error: 'new' file not found
El Capitan patch seems applied. Is it WIP, or no plans to support it?
After 4.8.7_4 was updated, Q_OBJECT
s weren't been recognized and lots of errors were thrown by compiler like this.
/usr/local/Cellar/qt@4/4.8.7_4/lib/QtOpenGL.framework/Versions/4/Headers/qgl.h(476): warning #161: unrecognized #pragma
Q_OBJECT
^
I use macOS High Sierra Version 10.13.5 and ICC 18.0.2 20180210.
Since support for including the Qt4 Phonon classes has been turned off when compiling on Xcode >= 8, perhaps the README.md could mention this?
As I understand it, Phonon is unsupported only because the required QTKit.framework is not available in the base SDK that comes with Xcode 8 and higher? MacOS Sierra itself DOES still have that framework (in , and would run any resulting Phonon stuff that relied on it, if only it could get compiled?
Would it be possible to do something like this and install the old MacOS 10.11 SDK, then brew Qt4 up somehow with "-phonon" to override the "-no-phonon" and somehow pointing the compile to use the 10.11 SDK instead of the its default (current) one? I think that is the "--sysroot" option, but I'm not sure if ?
This is all theoretical for me - I'm looking at an old PyQt4 video player project that uses the Phonon classes, and it would be nice to be able to play with it on a Sierra Mac, instead of my limited access to a Windows box. Would this fail for some obvious reason?
==> Downloading https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/c/cutycapt/cutycapt_0.0~svn6.orig.tar.gz
Already downloaded: /Users/carter/Library/Caches/Homebrew/cuty_capt-0.0.6.tar.gz
==> qmake CONFIG-=app_bundle
==> make
Last 15 lines from /Users/carter/Library/Logs/Homebrew/cuty_capt/02.make:
clang++ -c -pipe -stdlib=libc++ -mmacosx-version-min=10.7 -O2 -arch x86_64 -Wall -W -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SVG_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt@4/4.8.7/mkspecs/unsupported/macx-clang-libc++ -I. -I/usr/local/Cellar/qt@4/4.8.7/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7/lib/QtSvg.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7/lib/QtSvg.framework/Versions/4/Headers -I/usr/local/Cellar/[email protected]/2.3.4/include/QtWebKit -I/usr/local/include -I. -F/usr/local/lib -o moc_CutyCapt.o moc_CutyCapt.cpp
CutyCapt.cpp:502:43: error: incomplete type 'QNetworkProxy' named in nested name specifier
QNetworkProxy proxy = QNetworkProxy(QNetworkProxy::HttpProxy,
^~~~~~~~~~~~~~~
/usr/local/Cellar/[email protected]/2.3.4/include/QtWebKit/qwebpage.h:36:7: note: forward declaration of 'QNetworkProxy'
class QNetworkProxy;
^
CutyCapt.cpp:502:21: error: variable has incomplete type 'QNetworkProxy'
QNetworkProxy proxy = QNetworkProxy(QNetworkProxy::HttpProxy,
^
/usr/local/Cellar/[email protected]/2.3.4/include/QtWebKit/qwebpage.h:36:7: note: forward declaration of 'QNetworkProxy'
class QNetworkProxy;
^
2 errors generated.
make: *** [CutyCapt.o] Error 1
I try to install qt4 on my Mac(bigsur 11.4, m1) by
arch -x86_64 brew install cartr/qt4/pyqt@4"
but it failed.
Here is the output.
==> ./configure -prefix /usr/local/Cellar/qt@4/4.8.7_6 -plugindir /usr/local/Cellar/qt@4/4.8.7_6/lib/qt4/plugins -import
==> make
Last 15 lines from /Users/username/Library/Logs/Homebrew/qt@4/02.make:
20 errors generated.
20 errors generated.
make[2]: *** [obj/release/pcre_ucp_searchfuncs.o] Error 1
make[2]: *** [obj/release/pcre_compile.o] Error 1
make[2]: *** [obj/release/pcre_tables.o] Error 1
20 errors generated.
make[2]: *** [obj/release/pcre_exec.o] Error 1
20 errors generated.
make[2]: *** [obj/release/JSCallbackConstructor.o] Error 1
20 errors generated.
make[2]: *** [obj/release/JSBase.o] Error 1
20 errors generated.
make[2]: *** [obj/release/JSCallbackFunction.o] Error 1
make[1]: *** [release] Error 2
make: *** [sub-script-make_default-ordered] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/cartr/homebrew-qt4/issues
Users of the Hello World! Homebrew package frequently complain of long build times while installing qt
. It would be nice to have a pre-built bottle that speeds up the installation process.
I am getting this error when I try to install PySide 1.2 on Yosemite (Travis CI xcode6.4):
==> Installing cartr/qt4/[email protected] dependency: cartr/qt4/[email protected]
==> Downloading https://dl.bintray.com/cartr/autobottle-qt4/[email protected]_2
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "[email protected]"
Download failed: https://dl.bintray.com/cartr/autobottle-qt4/[email protected]_2.yosemite.bottle.2.tar.gz
Is this a temporary issue with bintray/akamai or are you removing bottles for Yosemite?
Thanks
This looks like it might be related to the changes in #25. When we try to run the macdeployqt
tool to bundle our app it fails because it seems to assume that the qt plugins directory exists at /usr/local/opt/qt@4/plugins
but it looks like the install path is set to /usr/local/opt/qt@4/lib/qt4/plugins
.
Adding a symlink to the plugins directory in where the macdeployqt
tool expects "fixed" it for us, but it would be nice to find a smarter solution.
At present, pyqt@4
's configure script fails to detect WebKit even when it's installed. This is strange, as both qmake
and cmake
can find it just fine.
executing command [brew install cartr/qt4/pyqt]
==> Installing pyqt from cartr/qt4
==> Downloading https://homebrew.bintray.com/bottles-qt4/pyqt-4.12.sierra.bottle
Error: Failed to download resource "pyqt"
Download failed: https://homebrew.bintray.com/bottles-qt4/pyqt-4.12.sierra.bottle.1.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading https://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.12/PyQt
Attempting to leverage cartr/qt4/qt
on a continuous-integration build system the below error occurs:
Direct link to build failure: https://travis-ci.org/LMMS/lmms/jobs/188301347#L630
Downstream script logic: https://github.com/LMMS/lmms/pull/3201/files
==> Installing qt from cartr/qt4
==> Downloading https://download.qt.io/official_releases/qt/4.8/4.8.7/qt-everywh
==> Downloading from http://qt.mirrors.tds.net/qt/official_releases/qt/4.8/4.8.7
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/480b7
==> Downloading https://raw.githubusercontent.com/cartr/homebrew-qt4/41669527a2a
==> Patching
==> Applying el-capitan.patch
patching file src/gui/painting/qpaintengine_mac.cpp
==> Applying qsetting-nulls.patch
patching file src/corelib/io/qsettings.cpp
patching file src/corelib/io/qsettings_mac.cpp
- patch unexpectedly ends in middle of line
- Hunk #2 succeeded at 276 with fuzz 1.
==> ./configure -prefix /usr/local/Cellar/qt/4.8.7_3 -release -opensource -confi
==> make
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
The build has been terminated
pyqt has been updated to 4.12.1 on 6/30/2017
Hi,
would you consider adding that patch (taken from tigerbrew) to allow building Qt4 on Leopard?
mistydemeo/tigerbrew@fbda179
also seen in https://trac.macports.org/ticket/43746
thanks again for maintaining this repo
This was working a month ago.
Logs: https://travis-ci.org/pstavirs/ostinato/jobs/220604198
I fixed the drawing performance issues on Big Sur in that MacPorts PR: macports/macports-ports#10770
I will try to make a PR here with that same change, but if anybody else has time, please do!
I imagine you will create high_sierra bottles for qt@4
and other formulae at some point. Let me know if you need any help with this.
brew install pyqt
installs PyQt4 to /usr/local/lib/python2.7/site-packages, is there a way to install it to ~/.pyenv/versions/2.7.11/lib/python2.7/site-packages?
sorry if this is a brew question, I just thought this particular issue would be more relevant here.
brew install python
will install python3 as default now.
brew install pyqt@4 --with-python3
only build python3 library
so I can't import PyQt4 in python2, there is only Python3.6/site-packages
in '/usr/local/Cellar/pyqt@4/4.12.1/lib/
directory
please fix it.
The qt@4
formula depends on openssl 1.0, but that has been removed from homebrew-core as of Homebrew/homebrew-core#46876, so the qt@4
bottles are currently broken for anything that uses the QtNetwork component. The openssl 1.0 bottle was removed as it will be end-of-life very soon.
Carter, FreeCAD is migrating to Qt5 but for licensing reasons we must use Pyside (i.e we can not use PyQt). Qt.io took over the Pyside project as of version 2 that is required for Qt 5.x and has breathed new life into the project. I have created formula for Shiboken, Pyside and Pyside-tools for the qt.io 2.0-dev branch. Long story short, I run into name conflicts when tapping your Qt4 repo and trying to install shiboken.
$ brew install --only-dependencies freecad/freecad/freecad --with-qt4
==> Installing freecad from freecad/freecad
==> Installing dependencies for freecad/freecad/freecad: cartr/qt4/shiboken, cartr/qt4/pyside, cartr/qt4/pyside-tools
==> Installing freecad/freecad/freecad dependency: cartr/qt4/shiboken
==> Downloading https://dl.bintray.com/cartr/bottle-qt4/shiboken-1.2.2.yosemite.bottle.2.tar.gz
Already downloaded: /Users/blacey/Library/Caches/Homebrew/shiboken-1.2.2.yosemite.bottle.2.tar.gz
==> Pouring shiboken-1.2.2.yosemite.bottle.2.tar.gz
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Formulae found in multiple taps:
* cartr/qt4/shiboken
* freecad/freecad/shiboken
Please use the fully-qualified name e.g. cartr/qt4/shiboken to refer the formula.
Error: Formulae found in multiple taps:
* cartr/qt4/shiboken
* freecad/freecad/shiboken
Please use the fully-qualified name e.g. cartr/qt4/shiboken to refer the formula.
VMWare-10:homebrew-freecad blacey$ vi shiboken.rb
VMWare-10:homebrew-freecad blacey$ brew link cartr/qt4/shiboken
Linking /usr/local/Cellar/shiboken/1.2.2... Error: Formulae found in multiple taps:
* cartr/qt4/shiboken
* freecad/freecad/shiboken
Please use the fully-qualified name e.g. cartr/qt4/shiboken to refer the formula.
I see several options:
Do you see any other options/solutions? If not, are you open to option 1? I'de be happy to prepare a PR with the name changes and rebottle as needed but would want to do it fairly quickly to minimize the impact of the collisions we are experiencing.
I'm trying to use this to install open rave, which complains at 99% that it can't find lQtGui.a.
I browsed the install directory of qt@4 under libs and there isn't any qtgui stuff. Is there some way to install that too?
ewabarczykowska@mac ~ % brew install ncurses
Warning: ncurses 6.2 is already installed and up-to-date.
To reinstall 6.2, run:
brew reinstall ncurses
ewabarczykowska@mac ~ % brew reinstall ncurses
==> Downloading https://ghcr.io/v2/homebrew/core/ncurses/manifests/6.2
Already downloaded: /Users/ewabarczykowska/Library/Caches/Homebrew/downloads/b365b9504480dc3ed1cc0e4c0970fb1defdb8e00a9dcd691c8dde55706880ef4--ncurses-6.2.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/ncurses/blobs/sha256:b34b4aa433f23405c6104bf810836eed2686f11c660b8668a7af86f99be2329f
Already downloaded: /Users/ewabarczykowska/Library/Caches/Homebrew/downloads/82e0a72603867eb866854cfde4fa3c215351a567f5ce2d6fdb78434aa7bfae43--ncurses--6.2.big_sur.bottle.tar.gz
==> Reinstalling ncurses
==> Pouring ncurses--6.2.big_sur.bottle.tar.gz
==> Caveats
ncurses is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.
If you need to have ncurses first in your PATH, run:
echo 'export PATH="/usr/local/opt/ncurses/bin:$PATH"' >> ~/.zshrc
For compilers to find ncurses you may need to set:
export LDFLAGS="-L/usr/local/opt/ncurses/lib"
export CPPFLAGS="-I/usr/local/opt/ncurses/include"
For pkg-config to find ncurses you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/ncurses/lib/pkgconfig"
==> Summary
๐บ /usr/local/Cellar/ncurses/6.2: 3,913 files, 8.9MB
Warning: Calling sha256 "digest" => :tag
in a bottle block is deprecated! Use brew style --fix
on the formula to update the style or use sha256 tag: "digest"
instead.
Please report this issue to the cartr/qt4 tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/cartr/homebrew-qt4/[email protected]:204
Warning: Calling sha256 "digest" => :tag
in a bottle block is deprecated! Use brew style --fix
on the formula to update the style or use sha256 tag: "digest"
instead.
Please report this issue to the cartr/qt4 tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/cartr/homebrew-qt4/[email protected]:205
Warning: Calling sha256 "digest" => :tag
in a bottle block is deprecated! Use brew style --fix
on the formula to update the style or use sha256 tag: "digest"
instead.
Please report this issue to the wix/brew tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/wix/homebrew-brew/applesimutils.rb:12
Warning: Calling sha256 "digest" => :tag
in a bottle block is deprecated! Use brew style --fix
on the formula to update the style or use sha256 tag: "digest"
instead.
Please report this issue to the wix/brew tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/wix/homebrew-brew/applesimutils.rb:13
Warning: Calling sha256 "digest" => :tag
in a bottle block is deprecated! Use brew style --fix
on the formula to update the style or use sha256 tag: "digest"
instead.
Please report this issue to the wix/brew tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/wix/homebrew-brew/applesimutils.rb:14
Warning: Calling sha256 "digest" => :tag
in a bottle block is deprecated! Use brew style --fix
on the formula to update the style or use sha256 tag: "digest"
instead.
Please report this issue to the wix/brew tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/wix/homebrew-brew/applesimutils.rb:15
Warning: Calling sha256 "digest" => :tag
in a bottle block is deprecated! Use brew style --fix
on the formula to update the style or use sha256 tag: "digest"
instead.
Please report this issue to the wix/brew tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/wix/homebrew-brew/applesimutils.rb:16
Warning: Calling sha256 "digest" => :tag
in a bottle block is deprecated! Use brew style --fix
on the formula to update the style or use sha256 tag: "digest"
instead.
Please report this issue to the wix/brew tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/wix/homebrew-brew/applesimutils.rb:17
Warning: Calling cellar
in a bottle block is deprecated! Use brew style --fix
on the formula to update the style or use sha256
with a cellar:
argument instead.
Please report this issue to the facebook/fb tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/idb-companion.rb:19
Warning: Calling sha256 "digest" => :tag
in a bottle block is deprecated! Use brew style --fix
on the formula to update the style or use sha256 tag: "digest"
instead.
Please report this issue to the facebook/fb tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/idb-companion.rb:20
Warning: Calling sha256 "digest" => :tag
in a bottle block is deprecated! Use brew style --fix
on the formula to update the style or use sha256 tag: "digest"
instead.
Please report this issue to the cartr/qt4 tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/cartr/homebrew-qt4/[email protected]:11
Warning: Calling sha256 "digest" => :tag
in a bottle block is deprecated! Use brew style --fix
on the formula to update the style or use sha256 tag: "digest"
instead.
Please report this issue to the cartr/qt4 tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/cartr/homebrew-qt4/[email protected]:12
ewabarczykowska@mac ~ %
I am trying to build pyqt4 with python3 support, however I get the following error:
Last 15 lines from /Users/al/Library/Logs/Homebrew/pyqt@4/03.make:
cd phonon/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile
clang++ -c -pipe -stdlib=libc++ -mmacosx-version-min=10.7 -fno-exceptions -O2 -arch x86_64 -Wall -W -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/etc/qt4/mkspecs/unsupported/macx-clang-libc++ -I. -I/usr/local/Cellar/qt@4/4.8.7_3/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7_3/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7_3/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7_3/lib/QtGui.framework/Versions/4/Headers -I/usr/local/include/phonon -I/usr/local/include -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/include/phonon_compat -I. -F/usr/local/lib -o sipphononcmodule.o sipphononcmodule.cpp
clang++ -c -pipe -stdlib=libc++ -mmacosx-version-min=10.7 -fno-exceptions -O2 -arch x86_64 -Wall -W -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/etc/qt4/mkspecs/unsupported/macx-clang-libc++ -I. -I/usr/local/Cellar/qt@4/4.8.7_3/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7_3/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7_3/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7_3/lib/QtGui.framework/Versions/4/Headers -I/usr/local/include/phonon -I/usr/local/include -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/include/phonon_compat -I. -F/usr/local/lib -o sipphononPhonon.o sipphononPhonon.cpp
/private/tmp/pyqt@4-20180123-86024-75t8w7/PyQt4_gpl_mac-4.12.1/sip/phonon/abstractaudiooutput.sip:28:10: fatal error: 'abstractaudiooutput.h' file not found
#include <abstractaudiooutput.h>
^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [sipphononPhonon.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/private/tmp/pyqt@4-20180123-86024-75t8w7/PyQt4_gpl_mac-4.12.1/sip/phonon/abstractaudiooutput.sip:28:10: fatal error: 'abstractaudiooutput.h' file not found
#include <abstractaudiooutput.h>
^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [sipphononcmodule.o] Error 1
make: *** [sub-phonon-make_default-ordered] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/cartr/homebrew-qt4/issues
Is there a way to disable phonon when building pyqt@4?
Thanks
Similar build failure to frescobaldi
, except it's qjson
instead of poppler
causing the issue.
This PR from Core might be helpful if we decide to restore an old qjson
to fix this.
brew install --build-bottle pyqt@4 [email protected]
in dir /var/lib/buildbot/workers/default/elcapprereqsbuilder/build (timeout 1200 secs)
watching logfiles {}
argv: [b'brew', b'install', b'--build-bottle', b'pyqt@4', b'[email protected]']
environment:
HOME=/var/lib/buildbot
HOMEBREW_CURLRC=0
HOMEBREW_MAKE_JOBS=-j16
HOMEBREW_NO_AUTO_UPDATE=1
LC_CTYPE=UTF-8
LOGNAME=buildbot
MAKEOPTS=-j16
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/var/lib/buildbot/.local/bin
PWD=/var/lib/buildbot/workers/default/elcapprereqsbuilder/build
PYTHONPATH=/usr/local/lib/python3.7/site-packages/
SHELL=/bin/bash
TMPDIR=/var/folders/27/9t409fw92vx2b6lsxcvkxfx40000gy/T/
USER=buildbot
XPC_FLAGS=0x0
XPC_SERVICE_NAME=net.sourceforge.buildbot.worker
__CF_USER_TEXT_ENCODING=0x1FE:0:0
using PTY: False
Warning: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.
==> Installing pyqt@4 from cartr/qt4
==> Downloading https://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.12.1/PyQt4_gpl_mac-4.12.1.tar.gz/download
==> Downloading from https://deac-ams.dl.sourceforge.net/project/pyqt/PyQt4/PyQt-4.12.1/PyQt4_gpl_mac-4.12.1.tar.gz
Error: Empty installation
program finished with exit code 1
elapsedTime=27.575886
I'd appreciate even a workaround.
#12 gave me an idea: what if we split qt
into multiple formulae? We could have qtcore
, qtwebkit
, qt3support
, and so on. That would likely solve our bottle building issue, since we could make a separate Travis CI job for each formula and avoid the timeout.
Ubuntu appears to do this, with packages like libqt4-qt3support
and libqtgui4
. It's worth investigating further to see if this is viable on macOS.
The GNURadio package/recipe in the core Brew doesn't include QT support. GNURadio has a GUI builder tool that let you build controls to use a software defined radio (SDR) called gnuradio-companion
. But the recipe in the mainline brew doesn't build with QT, likely since as best I can tell GNURadio doesn't work with Qt5. Without QT, many examples don't work and the WX widgets are more limited than QT ones in GNURadio. So while the homebrew-core version does "works", it's improvised since apparently GNURadio can't easily be adapted to Qt5.
The GNURadio team recommends MacPorts since it works with all features, but really don't want replace brew
and certainly don't want multiple package managers on my Mac. Anyway, found this tap, created a new version of the gnuradio.rb
recipe that uses this QT tap & enables QT build option... Seems to build/work, at least for me.
Not sure if it belong here or not, but since it did take quite a bit to figure out...below the alternative gnuradio
recipe I used with this tap to get QT working in gnuradio-companion
.
Anyway, this works for me:
class GnuradioQt4 < Formula
desc "SDK providing the signal processing runtime and processing blocks (modified by Ammo)"
homepage "https://gnuradio.org/"
url "https://gnuradio.org/releases/gnuradio/gnuradio-3.7.11.tar.gz"
sha256 "87d9ba3183858efdbb237add3f9de40f7d65f25e16904a9bc8d764a7287252d4"
revision 4
head "https://github.com/gnuradio/gnuradio.git"
bottle do
sha256 "b7659bc81db490f2f12aac8c08a8687f3b44d4e4c40adb284c32780066f42f3a" => :high_sierra
sha256 "bb9aa035ea9c23b78830f829741ede4a5592036588fb870b8b42760b38bbfb1c" => :sierra
sha256 "0d8f3e33186012db38826db7560616c43b18cee8cfbf469d2edb36499e94481d" => :el_capitan
end
option "without-python@2", "Build without python support"
deprecated_option "without-python" => "without-python@2"
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "python@2"
depends_on "boost"
depends_on "fftw"
depends_on "gsl"
depends_on "zeromq"
if build.with? "python@2"
depends_on "swig" => :build
depends_on "numpy"
end
# For documentation
depends_on "doxygen" => [:build, :recommended]
depends_on "sphinx-doc" => [:build, :recommended]
depends_on "qwt-qt4" => ['with-qwtmathml']
depends_on "cartr/qt4/pyqt@4"
depends_on "uhd" => :recommended
depends_on "sdl" => :recommended
depends_on "jack" => :optional
depends_on "portaudio" => :recommended
depends_on "wxpython" => :recommended
depends_on "pygtk" => :recommended
# Upstream PR from 17 Apr 2018 "Boost 1.67.0 compatibility"
patch do
url "https://github.com/gnuradio/gnuradio/pull/1733.patch?full_index=1"
sha256 "f02a04fb179a9b525b5e4ba8171ce5737c16d64f06f0e318ce092c6b4e19025f"
end
# cheetah starts here
resource "Markdown" do
url "https://files.pythonhosted.org/packages/1d/25/3f6d2cb31ec42ca5bd3bfbea99b63892b735d76e26f20dd2dcc34ffe4f0d/Markdown-2.6.8.tar.gz"
sha256 "0ac8a81e658167da95d063a9279c9c1b2699f37c7c4153256a458b3a43860e33"
end
resource "Cheetah" do
url "https://files.pythonhosted.org/packages/cd/b0/c2d700252fc251e91c08639ff41a8a5203b627f4e0a2ae18a6b662ab32ea/Cheetah-2.4.4.tar.gz"
sha256 "be308229f0c1e5e5af4f27d7ee06d90bb19e6af3059794e5fd536a6f29a9b550"
end
# cheetah ends here
resource "lxml" do
url "https://files.pythonhosted.org/packages/39/e8/a8e0b1fa65dd021d48fe21464f71783655f39a41f218293c1c590d54eb82/lxml-3.7.3.tar.gz"
sha256 "aa502d78a51ee7d127b4824ff96500f0181d3c7826e6ee7b800d068be79361c7"
end
resource "cppzmq" do
url "https://raw.githubusercontent.com/zeromq/cppzmq/46fc0572c5e9f09a32a23d6f22fd79b841f77e00/zmq.hpp"
sha256 "964031c0944f913933f55ad1610938105a6657a69d1ac5a6dd50e16a679104d5"
end
def install
ENV.prepend_path "PATH", "/System/Library/Frameworks/Python.framework/Versions/2.7/bin"
ENV["CHEETAH_INSTALL_WITHOUT_SETUPTOOLS"] = "1"
ENV["XML_CATALOG_FILES"] = etc/"xml/catalog"
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
["Markdown", "Cheetah"].each do |r|
resource(r).stage do
system "python", *Language::Python.setup_install_args(libexec/"vendor")
end
end
begin
# Fix "ld: file not found: /usr/lib/system/libsystem_darwin.dylib" for lxml
ENV["SDKROOT"] = MacOS.sdk_path if MacOS.version == :sierra
resource("lxml").stage do
system "python", *Language::Python.setup_install_args(libexec/"vendor")
end
ensure
ENV.delete("SDKROOT")
end
resource("cppzmq").stage include.to_s
args = std_cmake_args
args << "-DGR_PKG_CONF_DIR=#{etc}/gnuradio/conf.d"
args << "-DGR_PREFSDIR=#{etc}/gnuradio/conf.d"
args << "-DENABLE_DEFAULT=OFF"
enabled_components = %w[gr-analog gr-fft volk gr-filter gnuradio-runtime
gr-blocks gr-pager gr-noaa gr-channels gr-audio
gr-fcd gr-vocoder gr-fec gr-digital gr-dtv gr-atsc
gr-trellis gr-zeromq]
if build.with? "python@2"
enabled_components << "python"
enabled_components << "gr-utils"
enabled_components << "grc"
enabled_components << "gr-qtgui"
enabled_components << "gr-wxgui" if build.with? "wxpython"
end
enabled_components << "gr-wavelet"
enabled_components << "gr-video-sdl" if build.with? "sdl"
enabled_components << "gr-uhd" if build.with? "uhd"
enabled_components << "doxygen" if build.with? "doxygen"
enabled_components << "sphinx" if build.with? "sphinx"
enabled_components.each do |c|
args << "-DENABLE_#{c.upcase.split("-").join("_")}=ON"
end
mkdir "build" do
system "cmake", "..", *args
system "make"
system "make", "install"
end
rm bin.children.reject(&:executable?)
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
test do
assert_match version.to_s, shell_output("#{bin}/gnuradio-config-info -v")
(testpath/"test.c++").write <<~EOS
#include <gnuradio/top_block.h>
#include <gnuradio/blocks/null_source.h>
#include <gnuradio/blocks/null_sink.h>
#include <gnuradio/blocks/head.h>
#include <gnuradio/gr_complex.h>
class top_block : public gr::top_block {
public:
top_block();
private:
gr::blocks::null_source::sptr null_source;
gr::blocks::null_sink::sptr null_sink;
gr::blocks::head::sptr head;
};
top_block::top_block() : gr::top_block("Top block") {
long s = sizeof(gr_complex);
null_source = gr::blocks::null_source::make(s);
null_sink = gr::blocks::null_sink::make(s);
head = gr::blocks::head::make(s, 1024);
connect(null_source, 0, head, 0);
connect(head, 0, null_sink, 0);
}
int main(int argc, char **argv) {
top_block top;
top.run();
}
EOS
system ENV.cxx, "-L#{lib}", "-L#{Formula["boost"].opt_lib}",
"-lgnuradio-blocks", "-lgnuradio-runtime", "-lgnuradio-pmt",
"-lboost_system", testpath/"test.c++", "-o", testpath/"test"
system "./test"
if build.with? "python@2"
(testpath/"test.py").write <<~EOS
from gnuradio import blocks
from gnuradio import gr
class top_block(gr.top_block):
def __init__(self):
gr.top_block.__init__(self, "Top Block")
self.samp_rate = 32000
s = gr.sizeof_gr_complex
self.blocks_null_source_0 = blocks.null_source(s)
self.blocks_null_sink_0 = blocks.null_sink(s)
self.blocks_head_0 = blocks.head(s, 1024)
self.connect((self.blocks_head_0, 0),
(self.blocks_null_sink_0, 0))
self.connect((self.blocks_null_source_0, 0),
(self.blocks_head_0, 0))
def main(top_block_cls=top_block, options=None):
tb = top_block_cls()
tb.start()
tb.wait()
main()
EOS
system "python2.7", testpath/"test.py"
cd testpath do
system "#{bin}/gr_modtool", "newmod", "test"
cd "gr-test" do
system "#{bin}/gr_modtool", "add", "-t", "general", "test_ff", "-l",
"python", "-y", "--argument-list=''", "--add-python-qa"
end
end
end
end
end
installing [email protected] using --with-python
and no other flags results in the following failure on my machine running 10.14.4:
==> cmake -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/[email protected]/1.2.4 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -D
Last 15 lines from /Users/ryan/Library/Logs/Homebrew/[email protected]/01.cmake:
-- Checking for QPrinter in QtGui -- found
-- Checking for QPrinterInfo in QtGui -- found
-- Checking for QSessionManager in QtGui -- found
-- Checking for QSizeGrip in QtGui -- found
-- Checking for QSystemTrayIcon in QtGui -- found
-- Checking for QMacStyle in QtGui -- found
-- Checking for QSslCertificate in QtNetwork -- found
-- Checking for QSslCipher in QtNetwork -- found
-- Checking for QSslConfiguration in QtNetwork -- found
-- Checking for QSslError in QtNetwork -- found
-- Checking for QSslKey in QtNetwork -- found
-- Checking for QSslSocket in QtNetwork -- found
-- Configuring incomplete, errors occurred!
See also "/tmp/[email protected]/PySide-1.2.4/macbuild3.7/CMakeFiles/CMakeOutput.log".
See also "/tmp/[email protected]/PySide-1.2.4/macbuild3.7/CMakeFiles/CMakeError.log".
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/cartr/homebrew-qt4/issues
i tried getting the contents of those Error/Output log files but they appeared not to exist when i tried to open the paths given.
let me know if i can provide any other helpful info!
==> ./configure -prefix /usr/local/Cellar/qt/4.8.7_2 -release -opensource -confirm-license -fast -system-zlib -qt-libtiff -qt-libpng -qt-libjpeg -nomake de
==> make
Last 15 lines from /Users/baoz/Library/Logs/Homebrew/qt/02.make:
clang -c -pipe -mmacosx-version-min=10.7 -I/usr/local/opt/openssl/include -O2 -arch x86_64 -fvisibility=hidden -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/unsupported/macx-clang-libc++ -I. -I../../../../lib/QtCore.framework/Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/QtGui.framework/Versions/4/Headers -I../../../../include/QtGui -I../../../../include -I../../../gui/image -I../../../3rdparty/libtiff/libtiff -I.moc/release-shared -F/private/tmp/qt-20161215-8210-voerzl/qt-everywhere-opensource-src-4.8.7/lib -o .obj/release-shared/tif_read.o ../../../3rdparty/libtiff/libtiff/tif_read.c
clang -c -pipe -mmacosx-version-min=10.7 -I/usr/local/opt/openssl/include -O2 -arch x86_64 -fvisibility=hidden -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/unsupported/macx-clang-libc++ -I. -I../../../../lib/QtCore.framework/Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/QtGui.framework/Versions/4/Headers -I../../../../include/QtGui -I../../../../include -I../../../gui/image -I../../../3rdparty/libtiff/libtiff -I.moc/release-shared -F/private/tmp/qt-20161215-8210-voerzl/qt-everywhere-opensource-src-4.8.7/lib -o .obj/release-shared/tif_strip.o ../../../3rdparty/libtiff/libtiff/tif_strip.c
clang -c -pipe -mmacosx-version-min=10.7 -I/usr/local/opt/openssl/include -O2 -arch x86_64 -fvisibility=hidden -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/unsupported/macx-clang-libc++ -I. -I../../../../lib/QtCore.framework/Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/QtGui.framework/Versions/4/Headers -I../../../../include/QtGui -I../../../../include -I../../../gui/image -I../../../3rdparty/libtiff/libtiff -I.moc/release-shared -F/private/tmp/qt-20161215-8210-voerzl/qt-everywhere-opensource-src-4.8.7/lib -o .obj/release-shared/tif_swab.o ../../../3rdparty/libtiff/libtiff/tif_swab.c
clang -c -pipe -mmacosx-version-min=10.7 -I/usr/local/opt/openssl/include -O2 -arch x86_64 -fvisibility=hidden -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/unsupported/macx-clang-libc++ -I. -I../../../../lib/QtCore.framework/Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/QtGui.framework/Versions/4/Headers -I../../../../include/QtGui -I../../../../include -I../../../gui/image -I../../../3rdparty/libtiff/libtiff -I.moc/release-shared -F/private/tmp/qt-20161215-8210-voerzl/qt-everywhere-opensource-src-4.8.7/lib -o .obj/release-shared/tif_thunder.o ../../../3rdparty/libtiff/libtiff/tif_thunder.c
clang -c -pipe -mmacosx-version-min=10.7 -I/usr/local/opt/openssl/include -O2 -arch x86_64 -fvisibility=hidden -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/unsupported/macx-clang-libc++ -I. -I../../../../lib/QtCore.framework/Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/QtGui.framework/Versions/4/Headers -I../../../../include/QtGui -I../../../../include -I../../../gui/image -I../../../3rdparty/libtiff/libtiff -I.moc/release-shared -F/private/tmp/qt-20161215-8210-voerzl/qt-everywhere-opensource-src-4.8.7/lib -o .obj/release-shared/tif_tile.o ../../../3rdparty/libtiff/libtiff/tif_tile.c
clang -c -pipe -mmacosx-version-min=10.7 -I/usr/local/opt/openssl/include -O2 -arch x86_64 -fvisibility=hidden -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/unsupported/macx-clang-libc++ -I. -I../../../../lib/QtCore.framework/Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/QtGui.framework/Versions/4/Headers -I../../../../include/QtGui -I../../../../include -I../../../gui/image -I../../../3rdparty/libtiff/libtiff -I.moc/release-shared -F/private/tmp/qt-20161215-8210-voerzl/qt-everywhere-opensource-src-4.8.7/lib -o .obj/release-shared/tif_version.o ../../../3rdparty/libtiff/libtiff/tif_version.c
clang -c -pipe -mmacosx-version-min=10.7 -I/usr/local/opt/openssl/include -O2 -arch x86_64 -fvisibility=hidden -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/unsupported/macx-clang-libc++ -I. -I../../../../lib/QtCore.framework/Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/QtGui.framework/Versions/4/Headers -I../../../../include/QtGui -I../../../../include -I../../../gui/image -I../../../3rdparty/libtiff/libtiff -I.moc/release-shared -F/private/tmp/qt-20161215-8210-voerzl/qt-everywhere-opensource-src-4.8.7/lib -o .obj/release-shared/tif_warning.o ../../../3rdparty/libtiff/libtiff/tif_warning.c
clang -c -pipe -mmacosx-version-min=10.7 -I/usr/local/opt/openssl/include -O2 -arch x86_64 -fvisibility=hidden -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/unsupported/macx-clang-libc++ -I. -I../../../../lib/QtCore.framework/Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/QtGui.framework/Versions/4/Headers -I../../../../include/QtGui -I../../../../include -I../../../gui/image -I../../../3rdparty/libtiff/libtiff -I.moc/release-shared -F/private/tmp/qt-20161215-8210-voerzl/qt-everywhere-opensource-src-4.8.7/lib -o .obj/release-shared/tif_write.o ../../../3rdparty/libtiff/libtiff/tif_write.c
clang -c -pipe -mmacosx-version-min=10.7 -I/usr/local/opt/openssl/include -O2 -arch x86_64 -fvisibility=hidden -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/unsupported/macx-clang-libc++ -I. -I../../../../lib/QtCore.framework/Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/QtGui.framework/Versions/4/Headers -I../../../../include/QtGui -I../../../../include -I../../../gui/image -I../../../3rdparty/libtiff/libtiff -I.moc/release-shared -F/private/tmp/qt-20161215-8210-voerzl/qt-everywhere-opensource-src-4.8.7/lib -o .obj/release-shared/tif_zip.o ../../../3rdparty/libtiff/libtiff/tif_zip.c
clang -c -pipe -mmacosx-version-min=10.7 -I/usr/local/opt/openssl/include -O2 -arch x86_64 -fvisibility=hidden -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/unsupported/macx-clang-libc++ -I. -I../../../../lib/QtCore.framework/Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/QtGui.framework/Versions/4/Headers -I../../../../include/QtGui -I../../../../include -I../../../gui/image -I../../../3rdparty/libtiff/libtiff -I.moc/release-shared -F/private/tmp/qt-20161215-8210-voerzl/qt-everywhere-opensource-src-4.8.7/lib -o .obj/release-shared/tif_unix.o ../../../3rdparty/libtiff/libtiff/tif_unix.c
clang++ -c -pipe -stdlib=libc++ -mmacosx-version-min=10.7 -I/usr/local/opt/openssl/include -O2 -arch x86_64 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/unsupported/macx-clang-libc++ -I. -I../../../../lib/QtCore.framework/Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/QtGui.framework/Versions/4/Headers -I../../../../include/QtGui -I../../../../include -I../../../gui/image -I../../../3rdparty/libtiff/libtiff -I.moc/release-shared -F/private/tmp/qt-20161215-8210-voerzl/qt-everywhere-opensource-src-4.8.7/lib -o .obj/release-shared/main.o main.cpp
rm -f libqtiff.dylib
clang++ -headerpad_max_install_names -stdlib=libc++ -mmacosx-version-min=10.7 -arch x86_64 -single_module -dynamiclib -o libqtiff.dylib .obj/release-shared/qtiffhandler.o .obj/release-shared/tif_aux.o .obj/release-shared/tif_close.o .obj/release-shared/tif_codec.o .obj/release-shared/tif_color.o .obj/release-shared/tif_compress.o .obj/release-shared/tif_dir.o .obj/release-shared/tif_dirinfo.o .obj/release-shared/tif_dirread.o .obj/release-shared/tif_dirwrite.o .obj/release-shared/tif_dumpmode.o .obj/release-shared/tif_error.o .obj/release-shared/tif_extension.o .obj/release-shared/tif_fax3.o .obj/release-shared/tif_fax3sm.o .obj/release-shared/tif_flush.o .obj/release-shared/tif_getimage.o .obj/release-shared/tif_luv.o .obj/release-shared/tif_lzw.o .obj/release-shared/tif_next.o .obj/release-shared/tif_open.o .obj/release-shared/tif_packbits.o .obj/release-shared/tif_pixarlog.o .obj/release-shared/tif_predict.o .obj/release-shared/tif_print.o .obj/release-shared/tif_read.o .obj/release-shared/tif_strip.o .obj/release-shared/tif_swab.o .obj/release-shared/tif_thunder.o .obj/release-shared/tif_tile.o .obj/release-shared/tif_version.o .obj/release-shared/tif_warning.o .obj/release-shared/tif_write.o .obj/release-shared/tif_zip.o .obj/release-shared/tif_unix.o .obj/release-shared/main.o -F/private/tmp/qt-20161215-8210-voerzl/qt-everywhere-opensource-src-4.8.7/lib -L/usr/local/opt/openssl/lib -L/private/tmp/qt-20161215-8210-voerzl/qt-everywhere-opensource-src-4.8.7/lib -framework QtGui -L/usr/local/opt/openssl/lib -L/private/tmp/qt-20161215-8210-voerzl/qt-everywhere-opensource-src-4.8.7/lib -F/private/tmp/qt-20161215-8210-voerzl/qt-everywhere-opensource-src-4.8.7/lib -framework QtCore -lz
mv -f libqtiff.dylib ../../../../plugins/imageformats/
make: *** [sub-plugins-make_default-ordered] Error 2
READ THIS: https://git.io/brew-troubleshooting
These open issues may also help:
qt: migrate to boneyard https://github.com/Homebrew/homebrew-core/pull/7019
####################3
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
When compiling with clang the Q_OBJECT
macro emits an inconsistent-override-warning
. In a large project with many Q_OBJECT
s this leads to a huge number of warnings which are unrelated to the project itself.
Below is a patch which should fix the issue. I've based the changes on a stripped down version of how this is solved in Qt5.
diff --git a/src/corelib/kernel/qobjectdefs.h b/src/corelib/kernel/qobjectdefs.h
index 0e0a3be..248ed91 100644
--- a/src/corelib/kernel/qobjectdefs.h
+++ b/src/corelib/kernel/qobjectdefs.h
@@ -153,16 +153,39 @@ inline void qYouForgotTheQ_OBJECT_Macro(T1, T2) {}
#define Q_OBJECT_GETSTATICMETAOBJECT
#endif
+#ifdef Q_CC_CLANG
+# define Q_CC_CLANG_VERSION ((__clang_major__ * 100) + __clang_minor__)
+# if Q_CC_CLANG_VERSION >= 306
+# define QT_WARNING_PUSH _Pragma("clang diagnostic push")
+# define QT_WARNING_POP _Pragma("clang diagnostic pop")
+# define Q_OBJECT_NO_OVERRIDE_WARNING _Pragma("clang diagnostic ignored \"-Winconsistent-missing-override\"")
+# endif
+#elif defined(Q_CC_GNU) && !defined(Q_CC_INTEL)
+# define Q_CC_GNU_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
+# if Q_CC_GNU_VERSION >= 501
+# define QT_WARNING_PUSH _Pragma("GCC diagnostic push")
+# define QT_WARNING_POP _Pragma("GCC diagnostic pop")
+# define Q_OBJECT_NO_OVERRIDE_WARNING _Pragma("GCC diagnostic ignored \"-Wsuggest-override\"")
+# endif
+#else
+# define QT_WARNING_PUSH
+# define QT_WARNING_POP
+# define Q_OBJECT_NO_OVERRIDE_WARNING
+#endif
+
/* tmake ignore Q_OBJECT */
#define Q_OBJECT \
public: \
Q_OBJECT_CHECK \
+ QT_WARNING_PUSH \
+ Q_OBJECT_NO_OVERRIDE_WARNING \
static const QMetaObject staticMetaObject; \
Q_OBJECT_GETSTATICMETAOBJECT \
virtual const QMetaObject *metaObject() const; \
virtual void *qt_metacast(const char *); \
- QT_TR_FUNCTIONS \
virtual int qt_metacall(QMetaObject::Call, int, void **); \
+ QT_WARNING_POP \
+ QT_TR_FUNCTIONS \
private: \
Q_DECL_HIDDEN static const QMetaObjectExtraData staticMetaObjectExtraData; \
Q_DECL_HIDDEN static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);
Hi,
pyside and shiboken could be upgraded to 1.2.4 (adds a few fixes).
Here are the URLs for shiboken:
url "https://codeload.github.com/pyside/Shiboken/tar.gz/1.2.4"
mirror "https://distfiles.macports.org/py-shiboken/Shiboken-1.2.4.tar.gz"
sha256 "1536f73a3353296d97a25e24f9554edf3e6a48126886f8d21282c3645ecb96a4"
and pyside:
url "https://codeload.github.com/pyside/PySide/tar.gz/1.2.4"
mirror "https://distfiles.macports.org/py-pyside/PySide-1.2.4.tar.gz"
sha256 "90f2d736e2192ac69e5a2ac798fce2b5f7bf179269daa2ec262986d488c3b0f7"
"Essential" formulae: (high usage, long build times)
Once these are done, I'll build bottles for the remaining formulae to ensure their build times are fast too.
Just started downloading new programs for a new lab IMac with MacOs Monterey and I'm trying to install pyqt for a secondary program.
Below I've copied and pasted the error output I'm given when I run the following command: brew install cartr/qt4/pyqt
I'm relatively new to computers, so I don't quite understand what's going wrong here. If anyone can help troubleshoot this, I'd greatly appreciate it.
Thanks!
Last 15 lines from /Users/mackenzieleavitt/Library/Logs/Homebrew/[email protected]/03.make:
^
x86_64cpuid.s:273:10: error: unknown token in expression
cmpq $0,%rax
^
x86_64cpuid.s:273:10: error: invalid operand
cmpq $0,%rax
^
x86_64cpuid.s:274:9: error: unknown token in expression
cmoveq %rcx,%rax
^
x86_64cpuid.s:274:9: error: invalid operand
cmoveq %rcx,%rax
^
make[1]: *** [x86_64cpuid.o] Error 1
make: *** [build_crypto] Error 1
it seems like Qt 4.8.7 has disappeared from the Qt archives, and the mirror in the recipe isn't working either.
I did a brew edit cartr/qt4/qt@4
and replaced the mirror with https://ftp.osuosl.org/pub/blfs/conglomeration/qt4
QtCreator fails to parse QtWebKit\plugins.qmltypes. I don't need webkit, is there a way to work around it
OS: 10.13.4
Clang: Apple LLVM version 9.1.0 (clang-902.0.39.2)
I get the following error when trying to brew install cartr/qt4/qt@4
:
text/qfontengine_coretext.mm:889:20: error: qualified reference to 'QFixed' is a constructor name rather than a type in this context return QFixed::QFixed(int(CTFontGetUnitsPerEm(ctfont))); ^
QT has some info here that I used to create a patch.
(Note: the above link is wrt Qt 5, but the patch was made from the cartr/qt4/qt@4
formula.)
Is it too much trouble to enable qt3support by default in the qt4 formula and bottles?
I know qt3support it was not enabled by default when the formula was in homebrew-core.
It was however shipped in the official Qt binaries, which no longer work with macOS newer than 10.10.
Right now out Travis CI is at osx_image: xcode6.4 and pulling the official Qt .dmg to keep things running.
I guess our project is the only one still stuck with qt3support... In this case I will have to fork your formula and make bottles myself until we get rid of qt3support.
There is a bug in QSetting on 10.12 that broke several applications. Qt developers have patched it for qt5 ( qt/qtbase@764f5bf ) and other developers have successfully backported the same patch on qt4 ( mumble-voip/mumble#2638 ). Can you include this patch in this recipe? In this way, future installations of qt4 with your recipe will have this bug solved.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.