Building qt 5.6 from git



  • I build qt by doing the following

    ./configure -confirm-license -commercial -platform macx-clang-32 -developer-build
    make

    I get the following error

    /Users/Peregrine58/gitQt/qt5/qtbase/bin/qmake -o Makefile tst.pro
    /Users/Peregrine58/gitQt/qt5/qtbase/bin/moc -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_DISABLE_DEPRECATED_BEFORE=0 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/Users/Peregrine58/gitQt/qt5/qtbase/tests/auto/corelib/plugin/qpluginloader/tst"' -D__APPLE__ -D__GNUC__=4 -D__APPLE_CC__ -I/Users/Peregrine58/gitQt/qt5/qtbase/mkspecs/macx-clang-32 -I/Users/Peregrine58/gitQt/qt5/qtbase/tests/auto/corelib/plugin/qpluginloader/tst -I/Users/Peregrine58/gitQt/qt5/qtbase/include -I/Users/Peregrine58/gitQt/qt5/qtbase/include/QtTest -I/Users/Peregrine58/gitQt/qt5/qtbase/include/QtCore/5.6.2 -I/Users/Peregrine58/gitQt/qt5/qtbase/include/QtCore/5.6.2/QtCore -I/Users/Peregrine58/gitQt/qt5/qtbase/include/QtCore -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/7.3.0/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include -F/Users/Peregrine58/gitQt/qt5/qtbase/lib ../tst_qpluginloader.cpp -o .moc/tst_qpluginloader.moc
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -arch i386 -g -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -Wall -W -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_DISABLE_DEPRECATED_BEFORE=0 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/Users/Peregrine58/gitQt/qt5/qtbase/tests/auto/corelib/plugin/qpluginloader/tst"' -I. -I../../../../../../include -I../../../../../../include/QtTest -I../../../../../../include/QtCore/5.6.2 -I../../../../../../include/QtCore/5.6.2/QtCore -I../../../../../../include/QtCore -I.moc -I../../../../../../mkspecs/macx-clang-32 -F/Users/Peregrine58/gitQt/qt5/qtbase/lib -o .obj/tst_qpluginloader.o ../tst_qpluginloader.cpp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -arch i386 -g -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -Wall -W -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_DISABLE_DEPRECATED_BEFORE=0 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/Users/Peregrine58/gitQt/qt5/qtbase/tests/auto/corelib/plugin/qpluginloader/tst"' -I. -I../../../../../../include -I../../../../../../include/QtTest -I../../../../../../include/QtCore/5.6.2 -I../../../../../../include/QtCore/5.6.2/QtCore -I../../../../../../include/QtCore -I.moc -I../../../../../../mkspecs/macx-clang-32 -F/Users/Peregrine58/gitQt/qt5/qtbase/lib -o .obj/fakeplugin.o ../fakeplugin.cpp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -stdlib=libc++ -arch i386 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -weak_framework XCTest -Wl,-rpath,/Users/Peregrine58/gitQt/qt5/qtbase/lib -o ../tst_qpluginloader .obj/tst_qpluginloader.o .obj/fakeplugin.o -F/Users/Peregrine58/gitQt/qt5/qtbase/lib -framework QtTest -framework Security -framework ApplicationServices -framework IOKit -framework Foundation -framework QtCore -framework DiskArbitration
    cd machtest/ && ( test -e Makefile || /Users/Peregrine58/gitQt/qt5/qtbase/bin/qmake /Users/Peregrine58/gitQt/qt5/qtbase/tests/auto/corelib/plugin/qpluginloader/machtest/machtest.pro -o Makefile ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile
    /Users/Peregrine58/gitQt/qt5/qtbase/bin/qmake -o Makefile machtest.pro
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -pipe -stdlib=libc++ -arch i386 -g -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -fno-exceptions -Wall -W -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -shared -arch i386 -o good.i386.dylib -I-I. -I../../../../../../include -I../../../../../../include/QtGui -I../../../../../../include/QtCore -I/Users/Peregrine58/gitQt/qt5/qtbase/tests/auto/corelib/plugin/qpluginloader/machtest/.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I../../../../../../mkspecs/macx-clang-32 -F/Users/Peregrine58/gitQt/qt5/qtbase/lib /Users/Peregrine58/gitQt/qt5/qtbase/tests/auto/corelib/plugin/qpluginloader/machtest/../fakeplugin.cpp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -pipe -stdlib=libc++ -arch i386 -g -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -fno-exceptions -Wall -W -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -shared -arch x86_64 -o good.x86_64.dylib -I-I. -I../../../../../../include -I../../../../../../include/QtGui -I../../../../../../include/QtCore -I/Users/Peregrine58/gitQt/qt5/qtbase/tests/auto/corelib/plugin/qpluginloader/machtest/.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I../../../../../../mkspecs/macx-clang-32 -F/Users/Peregrine58/gitQt/qt5/qtbase/lib /Users/Peregrine58/gitQt/qt5/qtbase/tests/auto/corelib/plugin/qpluginloader/machtest/../fakeplugin.cpp
    /Users/Peregrine58/gitQt/qt5/qtbase/tests/auto/corelib/plugin/qpluginloader/machtest/ppcconverter.pl good.x86_64.dylib good.ppc64.dylib
    Invalid input. Unknown magic CA FE BA BE
    make[7]: *** [good.ppc64.dylib] Error 255
    make[6]: *** [sub-machtest-make_first-ordered] Error 2
    make[5]: *** [sub-qpluginloader-make_first] Error 2
    make[4]: *** [sub-plugin-make_first] Error 2
    make[3]: *** [sub-corelib-make_first] Error 2
    make[2]: *** [sub-auto-make_first] Error 2
    make[1]: *** [sub-tests-make_first] Error 2
    make: *** [module-qtbase-make_first] Error 2

    I have to have a version of qt that supports 32 bit for a compatibility reason with another app. Any thoughts

    I could actually get away with a lot less, no graphics, no ui, no sql, just need xml and socket support.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    That's a test failing and this one's looks like 64bit only (I may be wrong though). You should add -no-make tests -no-make examples to your configure line.

    Out of curiosity, since you are passing the -developer-build option are you planning to work on Qt ? If not, then you should remove it.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.