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

qt5 fails to build on 10.9 #23480

Closed
Kelloggs opened this issue Oct 23, 2013 · 14 comments
Closed

qt5 fails to build on 10.9 #23480

Kelloggs opened this issue Oct 23, 2013 · 14 comments

Comments

@Kelloggs
Copy link
Contributor

rm -f libqsqlite.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -stdlib=libc++ -mmacosx-version-min=10.7 -single_module -dynamiclib -o libqsqlite.dylib .obj/release-shared/smain.o .obj/release-shared/qsql_sqlite.o .obj/release-shared/sqlite3.o .obj/release-shared/moc_qsql_sqlite_p.o  -F/private/tmp/qt5-3Gt0/qt-everywhere-opensource-src-5.1.1/qtbase/lib -L/opt/X11/lib -framework QtSql -framework QtCore  
mv -f libqsqlite.dylib ../../../../plugins/sqldrivers/ 
make[2]: *** [sub-plugins-make_first] Error 2
make[1]: *** [sub-src-make_first] Error 2
make: *** [module-qtbase-make_first] Error 2
@MikeMcQuaid
Copy link
Member

@sergio1990
Copy link

I have the same problem
brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew
HEAD: ebc31c3
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit ivybridge
OS X: 10.9-x86_64
Xcode: 5.0.1
GCC-4.2: build 5666
LLVM-GCC: N/A
Clang: 5.0 build 500
X11: 2.7.4 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /Users/sergey/.rvm/rubies/ruby-1.9.3-p448/bin/ruby

Sergeys-MacBook-Pro-2:Downloads sergey$ brew install qt5
==> Downloading http://download.qt-project.org/official_releases/qt/5.1/5.1.1/single/qt-everywhere-opensource-src-5.1.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/qt5-5.1.1.tar.gz
==> ./configure -prefix /usr/local/Cellar/qt5/5.1.1 -system-zlib -confirm-license -opensource -nomake examples -release -L/opt/X11/lib -I/opt/X11/include -arch x86_64
==> make
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -stdlib=libc++ -mmacosx-version-min=10.7 -single_module -dynamiclib -o libqcocoa.dylib .obj/release-shared/main.o .obj/release-shared/qcocoaintegration.o .obj/release-shared/qcocoatheme.o .obj/release-shared/qcocoabackingstore.o .obj/release-shared/qcocoawindow.o .obj/release-shared/qnsview.o .obj/release-shared/qnsviewaccessibility.o .obj/release-shared/qcocoaautoreleasepool.o .obj/release-shared/qnswindowdelegate.o .obj/release-shared/qcocoaglcontext.o .obj/release-shared/qcocoanativeinterface.o .obj/release-shared/qcocoaeventdispatcher.o .obj/release-shared/qcocoaapplicationdelegate.o .obj/release-shared/qcocoaapplication.o .obj/release-shared/qcocoamenu.o .obj/release-shared/qcocoamenuitem.o .obj/release-shared/qcocoamenubar.o .obj/release-shared/qcocoamenuloader.o .obj/release-shared/qcocoahelpers.o .obj/release-shared/qmultitouch_mac.o .obj/release-shared/qcocoaaccessibilityelement.o .obj/release-shared/qcocoaaccessibility.o .obj/release-shared/qcocoacolordialoghelper.o .obj/release-shared/qcocoafiledialoghelper.o .obj/release-shared/qcocoafontdialoghelper.o .obj/release-shared/qcocoacursor.o .obj/release-shared/qcocoaclipboard.o .obj/release-shared/qcocoadrag.o .obj/release-shared/qmacclipboard.o .obj/release-shared/qmacmime.o .obj/release-shared/qcocoasystemsettings.o .obj/release-shared/qcocoainputcontext.o .obj/release-shared/qcocoaservices.o .obj/release-shared/qcocoasystemtrayicon.o .obj/release-shared/qcocoaintrospection.o .obj/release-shared/qcocoakeymapper.o .obj/release-shared/qpaintengine_mac.o .obj/release-shared/qprintengine_mac.o .obj/release-shared/qcocoaprintersupport.o .obj/release-shared/messages.o .obj/release-shared/qrc_qcocoaresources.o .obj/release-shared/moc_qcocoanativeinterface.o .obj/release-shared/moc_qcocoaeventdispatcher.o .obj/release-shared/moc_qcocoamenubar.o .obj/release-shared/moc_qcocoainputcontext.o -F/private/tmp/qt5-NNzL/qt-everywhere-opensource-src-5.1.1/qtbase/lib -L/opt/X11/lib -framework Cocoa -framework Carbon -framework IOKit -framework QtPrintSupport -framework QtWidgets -framework QtGui -framework QtCore -L/private/tmp/qt5-NNzL/qt-everywhere-opensource-src-5.1.1/qtbase/lib -lQt5PlatformSupport -lz -framework OpenGL -framework ApplicationServices -framework AGL
mv -f libqcocoa.dylib ../../../../plugins/platforms/
make[2]: *** [sub-plugins-make_first] Error 2
make[1]: *** [sub-src-make_first] Error 2
make: *** [module-qtbase-make_first] Error 2

@mistydemeo
Copy link
Member

@sergio1990 Please post the full build logs (from ~/Library/Logs/Homebrew/qt5) to gist.github.com. It's easier to read if you don't paste verbose logs into the issue, thanks!

@sergio1990
Copy link

@sergio1990
Copy link

running xcode-select --install not solved the problem...

@Kelloggs
Copy link
Contributor Author

Running xcode-select --installdoesn't help me neither. My logs are matching those of @sergio1990.

@MikeMcQuaid
Copy link
Member

Please report this to Qt themselves.

@birarda
Copy link

birarda commented Oct 23, 2013

Same issue over here - anybody know if there's an existing ticket with Qt?

@MikeMcQuaid
Copy link
Member

Stop doing +1s. It doesn't help us resolve the issue and it just makes the thread harder to follow.

@christianurich
Copy link
Contributor

qt 5.2 beta seems to work fine, although I had to disable the linking to X11. Here are my changes if someone wants to try
christianurich@519786e

@arxpoetica
Copy link

@rafaelgonzalez
Copy link

A temporary solution has been posted here #21608 (comment)

@mfitzp
Copy link
Contributor

mfitzp commented Nov 27, 2013

@christianurich Does this Qt5.2.0-beta1 version build with libc++ for you? Looking at the mkspecs it appears as though it should be using libc++ but isn't e.g clang-mac.conf (in mkspecs/common) lists:

QMAKE_CXXFLAGS_CXX11 += -stdlib=libc++
QMAKE_LFLAGS_CXX11   += -stdlib=libc++

Any ideas? Without Qt5 building using libc++ it's currently not possible to build PyQt5.

/edit: Another update and re-install from qt5 up and it's now working fine. Apologies for the noise.

@adamv
Copy link
Contributor

adamv commented Dec 16, 2013

We updated to Qt 5.2.0 on Dec 13th; built for me locally on 10.9. Please brew update and try again.

Calling this closed for now.

@adamv adamv closed this as completed Dec 16, 2013
@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
None yet
Projects
None yet
Development

No branches or pull requests

10 participants