Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt fails to install on 10.9 #2

Closed
threadstone opened this issue Nov 28, 2013 · 13 comments
Closed

Qt fails to install on 10.9 #2

threadstone opened this issue Nov 28, 2013 · 13 comments

Comments

@threadstone
Copy link

trace of my attempt to install qt on OS X 10.9:

$ brew install adymo/kde/qt
Warning: No developer tools installed.
You should install the Command Line Tools.
Run xcode-select --install to install them.
==> Installing qt dependency: d-bus
==> Downloading http://dbus.freedesktop.org/releases/dbus/dbus-1.6.18.tar.gz

################################################################## 100,0%

==> ./configure --prefix=/usr/local/Cellar/d-bus/1.6.18 --localstatedir=/usr/local/var --sysc
==> make
==> make install
==> /usr/local/Cellar/d-bus/1.6.18/bin/dbus-uuidgen --ensure=/usr/local/var/lib/dbus/machine-
==> Caveats
If this is your first install, automatically load on login with:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/d-bus/1.6.18/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist

If this is an upgrade and you already have the org.freedesktop.dbus-session.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist
cp /usr/local/Cellar/d-bus/1.6.18/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist

To have launchd start d-bus at login:
ln -sfv /usr/local/opt/d-bus/*.plist ~/Library/LaunchAgents
Then to load d-bus now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.d-bus.plist
Warning: Could not link d-bus. Unlinking...
Error: The brew link step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link d-bus'

Possible conflicting files are:
==> Summary
/usr/local/Cellar/d-bus/1.6.18: 48 files, 2,3M, built in 2.7 minutes
==> Installing qt
==> Downloading http://download.qt-project.org/official_releases/qt/4.8/4.8.5/qt-everywhere-o
Already downloaded: /Library/Caches/Homebrew/qt-4.8.5.tar.gz
==> ./configure -prefix /usr/local/Cellar/qt/4.8.5 -system-zlib -confirm-license -opensource
==> make
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [../../../../../../lib/QtWebKit.framework/QtWebKit] Error 1
make[2]: *** [release] Error 2
make[1]: *** [sub-WebKit-qt-QtWebKit-pro-make_default-ordered] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2

@tlvince
Copy link
Collaborator

tlvince commented Dec 7, 2013

Many patches were needed for Qt4 on Mavericks (see qt.diff for a diff against the current HEAD (as of 20131207)).

However, since homebrew/qt has dbus and qt3support as options (brew install qt --with-qt3support --with-d-bus), this one can/should be removed. @adymo?

@adymo
Copy link
Owner

adymo commented Dec 12, 2013

I've fixed the Mac OS X Mavericks build. Just used the current Qt 4.8 branch - it has all the fixes applied now.
I think I'll consider removing my own qt.rb when 4.8.6 is released and homebrew is updated.

@adymo adymo closed this as completed Dec 12, 2013
@threadstone
Copy link
Author

Sorry, but I still getting the same issue here:

[,,,]
$ brew install adymo/kde/qt
==> Installing qt dependency: d-bus
==> Downloading http://dbus.freedesktop.org/releases/dbus/dbus-1.6.18.tar.gz
Already downloaded: /Library/Caches/Homebrew/d-bus-1.6.18.tar.gz
==> ./configure --prefix=/usr/local/Cellar/d-bus/1.6.18 --localstatedir=/usr/loc
==> make
==> make install
==> Caveats
If this is your first install, automatically load on login with:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/d-bus/1.6.18/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist

If this is an upgrade and you already have the org.freedesktop.dbus-session.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist
cp /usr/local/Cellar/d-bus/1.6.18/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist

To have launchd start d-bus at login:
ln -sfv /usr/local/opt/d-bus/*.plist ~/Library/LaunchAgents
Then to load d-bus now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.d-bus.plist
Warning: Could not link d-bus. Unlinking...
Error: The brew link step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link d-bus'

Possible conflicting files are:
==> /usr/local/Cellar/d-bus/1.6.18/bin/dbus-uuidgen --ensure=/usr/local/var/lib/
==> Summary
/usr/local/Cellar/d-bus/1.6.18: 48 files, 2,3M, built in 54 seconds
==> Installing qt
==> Downloading https://github.com/qtproject/qt/archive/4.8.tar.gz
Already downloaded: /Library/Caches/Homebrew/qt-4.8.5.tar.gz
Warning: Cannot verify integrity of qt-4.8.5.tar.gz
A checksum was not provided for this resource
For your reference the SHA1 is: 745f9ebf091696c0d5403ce691dc28c039d77b9e
==> ./configure -prefix /usr/local/Cellar/qt/4.8.5 -system-zlib -confirm-license
==> make
^[[Aclang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [../../../../../../lib/QtWebKit.framework/QtWebKit] Error 1
make[2]: *** [release] Error 2
make[1]: *** [sub-WebKit-qt-QtWebKit-pro-make_default-ordered] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2

Is there anything I can do about that?

@tlvince
Copy link
Collaborator

tlvince commented Dec 15, 2013

@threadstone, same issue here. I just settled with brew install qt --with-qt3support --with-d-bus.

@threadstone
Copy link
Author

@tlvince thanks, that made qt compile for me. Now if I'm trying to install Kate, it fails to install soprano which seams to be a kate dependency. Any ideas for that?

==> Installing kate dependency: soprano
==> Downloading http://downloads.sourceforge.net/project/soprano/Soprano/2.9.3/s
######################################################################## 100,0%
==> Patching
patching file soprano/vocabulary/rdf.h
==> cmake -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/soprano/2.9.3' -DCMAKE_BUILD
==> make install
[ 78%] Building CXX object backends/virtuoso/CMakeFiles/soprano_virtuosobackend.dir///soprano/sopranodirs.cpp.o
[ 79%] Building CXX object backends/virtuoso/CMakeFiles/soprano_virtuosobackend.dir///server/lockfile.cpp.o
Linking CXX shared module libsoprano_virtuosobackend.so
[ 79%] Built target soprano_virtuosobackend
make: *** [all] Error 2

@tlvince
Copy link
Collaborator

tlvince commented Dec 16, 2013

@threadstone, sorry, I didn't run into that one.

Can you post the full brew gist-logs --config --doctor adymo/kde/soprano output?

@threadstone
Copy link
Author

@tlvince
Copy link
Collaborator

tlvince commented Dec 16, 2013

Here's the error:

/tmp/soprano-nMOw/soprano-2.9.3/server/servercore.cpp:44:10: fatal error: 'QtDBus/QtDBus' file not found
#include <QtDBus/QtDBus>
         ^
1 error generated.

Seems to suggest QT wasn't built with dbus support(?).

What does brew info qt say?

adymo pushed a commit that referenced this issue Dec 16, 2013
…o download the tarball.

I'm not sure, but I suspect tarball caching is the core reason why #2 is still not fixed
for some people after 1c9a68d
@adymo adymo reopened this Dec 16, 2013
@adymo
Copy link
Owner

adymo commented Dec 16, 2013

@threadstone @tlvince could you please pull my latest change and try to rebuild Qt from my formula once again. Run brew with --verbose --debug and make sure it really downloads the right tarball - https://github.com/qtproject/qt/archive/4.8.tar.gz

@adymo
Copy link
Owner

adymo commented Dec 16, 2013

@tlvince last time I did brew install qt --with-qt3support --with-d-bus, it used Qt from the bottle and ignored the dbus and qt3support options. Maybe that's what happened for @threadstone as well.

@threadstone
Copy link
Author

@tlvince @adymo you were pointing in the right direction. Something was messed up with my d-bus installation. I think it was because of wrong write permissions in /usr/local/something. I took care of that, reinstalled d-bus, recompiled qt and sure enough it worked. Now I have Kate running fine, thank you so much for your work and your help!

@adymo
Copy link
Owner

adymo commented Dec 18, 2013

I've just finished recompiling homebrew-kde from scratch, with a new libc++ and with Qt from homebrew. It now compiles and runs fine for me. So closing this issue.
@tlvince thanks for your help with this and for the patches.

@adymo adymo closed this as completed Dec 18, 2013
@tlvince
Copy link
Collaborator

tlvince commented Dec 18, 2013

Good stuff! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants