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

Build-qt.sh fixes and updates #32

Merged
merged 8 commits into from Aug 17, 2017
Merged

Build-qt.sh fixes and updates #32

merged 8 commits into from Aug 17, 2017

Conversation

msmolens
Copy link

@msmolens msmolens commented Jul 7, 2017

  • Fix installation directory option
  • Fix and enhance OS X sysroot option
  • Exit when a command fails
  • Avoid redownloading libraries when running multiple times, such as during testing
  • Make output quieter so that errors are more apparent
  • Disable phonon to support building with OS X 10.12 SDK
  • Move library versions to configuration variables

Before, the script overwrote the user-specified installation directory with
qt-everywhere-opensource-build-4.8.7. Now, respect the user-specified option and
default to qt-everywhere-option-build-4.8.7.
Fix a bug where the default sysroot was not applied because it was assigned to a
wrongly named variable.

Additionally, attempt to use xcrun to determine the default SDK path before
falling back to the fixed value.
Avoid redownloading libraries if the archives already exist locally.
Don't extract archives verbosely and build Qt with less output. This reduces the
output to the console, which is valuable especially when running the script on a
remote system.
Disable phonon to fix the following build error when building with the OSX 10.12
SDK:

    ../../../3rdparty/phonon/qt7/quicktimevideoplayer.h:23:9: fatal error: 'QTKit/QTDataReference.h' file not found

To keep the script simple and builds consistent, always disable phonon without
regard for the platform or SDK version.
@msmolens
Copy link
Author

@fbudin69500 Could you review this?

@fbudin69500
Copy link

@msmolens Looks good to me. Did you run it on travis CI?

@msmolens
Copy link
Author

Thanks. How do I run it on TravisCI? (Shouldn't that happen automatically?)

@fbudin69500
Copy link

I am not sure if there is a hook. If there isn't, you can also add the hook on your personal repo of qt-easy-build, or even run it manually from travisCI

@msmolens
Copy link
Author

It seems there are some problems with the TravisCI configuration: https://travis-ci.org/msmolens/qt-easy-build/jobs/254929715

@fbudin69500
Copy link

Indeed. I had updated this repo a while back so that it would work on travisCI, but clearly it is not up to date anymore :(
Anyway, your patch looks good to me. @jcfr , do you think travis.yml should be updated now?

@jcfr jcfr merged commit 1e73921 into jcfr:4.8.7 Aug 17, 2017
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

Successfully merging this pull request may close these issues.

None yet

3 participants