Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

qt 5.3.1 (Patched for Yosemite) #32093

Closed
wants to merge 1 commit into from
Closed

Conversation

Kelloggs
Copy link
Contributor

@Kelloggs Kelloggs commented Sep 4, 2014

Added a patch to make qt5 build on Yosemite Beta2. Could not verify this working on the current Developer Build of Yosemite. I reported the patch upstream (see comment)

@Kelloggs
Copy link
Contributor Author

Kelloggs commented Sep 4, 2014

@BrewTestBot I fixed the whitespace. Would you please?

@DomT4
Copy link
Member

DomT4 commented Sep 4, 2014

Oh, I'll test this on Yosemite for you in a bit.

@DomT4
Copy link
Member

DomT4 commented Sep 4, 2014

Yup. This fixes the QT5 compile errors on Yosemite.

==> Summary
🍺  /usr/local/Cellar/qt5/5.3.1: 5729 files, 179M, built in 97.8 minutes

This actually passed the build bot in your last commit. The failure was down to the bot, rather than anything you did. If one of the maintainers asks the test bot to re-test this PR it should pass fine 👍.

@MikeMcQuaid
Copy link
Member

@BrewTestBot test this please

@MikeMcQuaid
Copy link
Member

@Kelloggs Has this been submitted to upstream Qt code review?

@Kelloggs
Copy link
Contributor Author

Kelloggs commented Sep 4, 2014

@MikeMcQuaid Yes. The link to the ticket is given as a comment above the patch statement.

@MikeMcQuaid
Copy link
Member

@Kelloggs Sorry, to be more exact it'll need submitted to https://codereview.qt-project.org

@adamv adamv added 10.6 and removed 10.6 labels Sep 4, 2014
@Kelloggs
Copy link
Contributor Author

Kelloggs commented Sep 5, 2014

@yurci
Copy link

yurci commented Sep 6, 2014

Hello,

How should I use your fix in order to install qt with homebrew on yosemite?

Regards.

@DomT4
Copy link
Member

DomT4 commented Sep 6, 2014

brew install https://raw.githubusercontent.com/Kelloggs/homebrew/qt5yosemite/Library/Formula/qt5.rb should do the job.

@DomT4
Copy link
Member

DomT4 commented Sep 6, 2014

@Kelloggs Adam replied to the wrong PR/Issue there. He was actually replying to my Mercurial issue. No need to fret.

@yurci
Copy link

yurci commented Sep 6, 2014

@DomT4

Hi again and thanks for your response. Your direction "brew install https://raw.githubusercontent.com/Kelloggs/homebrew/qt5yosemite/Library/Formula/qt5.rb" is working.

But in the end of the installation I got this error;

==> ./configure -prefix /usr/local/Cellar/qt5/5.3.1 -system-zlib -qt-libpng -qt-libjpeg -confirm-license -opensource -nomake examples -nomake tests -re
/bin/sh: o: command not found
make: [/private/tmp/qt5-IQhMYY/qt-everywhere-opensource-src-5.3.1/qtbase/bin/qmake] Error 127 (ignored)
Running configuration tests...
Failed to process makespec for platform 'macx-clang'
Turn on verbose messaging (-v) to see the final report.

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

Do you have any ideas how can I fix it?

@DomT4
Copy link
Member

DomT4 commented Sep 6, 2014

@yurci That's odd. Can you run brew install -v --debug --config https://raw.githubusercontent.com/Kelloggs/homebrew/qt5yosemite/Library/Formula/qt5.rb and Gist the output?

Probably the easiest way to do this is to do cd ~/Downloads and then brew install -v --debug --config https://raw.githubusercontent.com/Kelloggs/homebrew/qt5yosemite/Library/Formula/qt5.rb >> gistme.txt and then copy that outputted text file into a Gist.

@yurci
Copy link

yurci commented Sep 6, 2014

@DomT4 Thank you very much for your interest!

This is the output file, I believe I have a problem with my SDK path but I don't know how to resolve that.

The output is pretty long I uploaded it to here; https://drive.google.com/file/d/0B2Xi3PfvRGyVQWw0ODdDdUZUaEU/edit?usp=sharing

@DomT4
Copy link
Member

DomT4 commented Sep 6, 2014

@yurci No problem! It looks like it's finding none of your Xcode tools at all. What does your brew config spit out?

@yurci
Copy link

yurci commented Sep 6, 2014

@DomT4

I figured out that I didn't choose my gcc version in xcode. Now I managed to install qt correctly.

Thank you very much for the assistance!

@DomT4
Copy link
Member

DomT4 commented Sep 6, 2014

@yurci Glad you managed to get it working for you. And no worries, any time.

@yurci
Copy link

yurci commented Sep 6, 2014

@DomT4

Hi again!

My problem still continues due to I try to install a program that is Qt dependent.

The program I try to install could not find its Qt dependencies. The output of the dependency check is below.

I believe I have a problem with the Qt version. When I installed Qt it generated this output;

This formula is keg-only, which means it was not symlinked into /usr/local.

Qt 5 conflicts Qt 4 (which is currently much more widely used).

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/qt5/lib
    CPPFLAGS: -I/usr/local/opt/qt5/include 

I am not sure adding this flags to my build variables, which I couldn't find where to add, will solve my problem.

My echo $PATH returns;

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

dependency output

@DomT4
Copy link
Member

DomT4 commented Sep 6, 2014

@yurci You can grab my contact details through here if it's easier.

What are you trying to install? Qt5 is keg-only, as it says, which means software won't pick it up unless you A) Install a formula through Homebrew which explicitly has depends_on 'qt5' in it, or B) You point out the qt5 path during ./configure with the flags highlighted in the caveats you saw with qt5.

Qt4 is the one that symlinks into /usr/local and allows other software to find it natively that way. Qt5 is kept to its own directory to avoid conflicts with qt4.

@MikeMcQuaid
Copy link
Member

@Kelloggs was this merged upstream?
@DomT4 Any news on your version? No rush, obviously.

Thanks everyone!

@Kelloggs
Copy link
Contributor Author

Kelloggs commented Sep 9, 2014

@MikeMcQuaid Nope. Still in review.

@DomT4
Copy link
Member

DomT4 commented Sep 9, 2014

@MikeMcQuaid Hopeful I'll get it done by the end of today. It got bogged down behind all the Lua testing these last few days.

@DomT4
Copy link
Member

DomT4 commented Sep 11, 2014

New upstream patch location by @Kelloggs here.

@Kelloggs
Copy link
Contributor Author

@MikeMcQuaid It has been merged, finally.

@MikeMcQuaid
Copy link
Member

@Kelloggs Might be an idea to use https://qt.gitorious.org/qt/qtmultimedia/commit/8d5114.diff as the patch now if possible? No worries if we can't.

@DomT4 DomT4 mentioned this pull request Sep 16, 2014
@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants