QtCreator 2.2.1 can't install on ppc mac



  • I have a PowerBook G4, running Mac OS X 10.5.7 and I tried many times to install QtCreator
    without success. I get the error

    @
    ld warning: in /usr/local/Trolltech/Qt-4.7.3/lib/QtTest.framework/QtTest, file is not of required architecture
    ld warning: in /usr/local/Trolltech/Qt-4.7.3/lib/QtCore.framework/QtCore, file is not of required architecture
    ld warning: in /usr/local/Trolltech/Qt-4.7.3/lib/QtGui.framework/QtGui, file is not of required architecture

    collect2: ld returned 1 exit status
    lipo: can't open input file: /var/folders/ju/jupZE4FcFB41e0OesxCFlU+++TQ/-Tmp-//ccZQVyBN.out (No such file or directory)
    make[5]: *** [/Users/$USER/Downloads/$INSTALLDIR/bin/Qt Creator.app/Contents/PlugIns/libBotan_debug.1.0.0.dylib] Error 1
    @

    I first thought i may have the wrong libraries (version or architecture), but I can run the examples. Then I noticed the flag -arch x86 is also up, even if this machine cannot support it.

    @
    g++ -c -pipe -mmacosx-version-min=10.5 -g -O2 -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden *-arch i386 -arch ppc *-Wall -W -fPIC -DIDE_LIBRARY_BASENAME="lib" -DWITH_TESTS -DQT_NO_CAST_TO_ASCII -DQT_TESTLIB_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.7.3/mkspecs/macx-g++
    @

    I decide to look at the pro files of QtCreator, and noticed the line in qtcreator.pri

    @
    macx {
    IDE_APP_TARGET = "Qt Creator"
    IDE_LIBRARY_PATH = $$IDE_APP_PATH/$${IDE_APP_TARGET}.app/Contents/PlugIns
    IDE_PLUGIN_PATH = $$IDE_LIBRARY_PATH
    IDE_LIBEXEC_PATH = $$IDE_APP_PATH/$${IDE_APP_TARGET}.app/Contents/Resources
    IDE_DATA_PATH = $$IDE_APP_PATH/$${IDE_APP_TARGET}.app/Contents/Resources
    IDE_DOC_PATH = $$IDE_DATA_PATH/doc
    IDE_BIN_PATH = $$IDE_APP_PATH/$${IDE_APP_TARGET}.app/Contents/MacOS
    contains(QT_CONFIG, ppc):CONFIG += ppc x86 <<<<<<<<< THIS LINE
    copydata = 1
    isEmpty(TIGER_COMPAT_MODE):TIGER_COMPAT_MODE=$$(QTC_TIGER_COMPAT)
    isEmpty(TIGER_COMPAT_MODE) {
    QMAKE_CXXFLAGS *= -mmacosx-version-min=10.5
    QMAKE_LFLAGS *= -mmacosx-version-min=10.5
    }
    @

    Should it be a difference between the mac which support both architectures and the one which are only ppc??





  • I do have Xcode and from "QtCreator supported platforms":http://doc.qt.nokia.com/qtcreator-snapshot/creator-os-supported-platforms.html no mention of Intel architecture.



  • The Qt Creator binaries from the download page only contain intel 32bit and 64bit code (i386 and x86_64). The universal binary contains no version for the PowerPC processer, what would be needed by your machine.

    Your only option is to grab the sources and compile Creator yourself.



  • Maybe more information should be given at "requirement-mac" html page like intel platform only ?
    Apple also abandons 32-bit code with Lion



  • The page http://doc.qt.nokia.com/4.7/requirements-mac.html only contains the requirements to use (a probably self compiled) Qt. It has nothing to do with Qt Creator, which is more or less only an application based on Qt. It should be mentioned on the Qt Creator download page though, that's true.



  • Just for the records: A note has been added to the download page on http://qt.nokia.com/downloads/downloads#qt-creator



  • Since you are using PPC (just like me), you built Qt from sources - and default is to build non-universal, PPC-only libraries.

    You can:

    • either edit qtcreator's .pri file manually and remove x86 from that line, since you probably don't want to build universal binary of qtcreator anyway

    or, alternatively,



  • Also, when building qtcreator, make sure that build directory (if it's separate from the source directory, as recommended by build instructions) is in the same directory as source directory, or you may get errors of ide_version.h not found.

    See this thread for details: http://lists.qt.nokia.com/pipermail/qt-creator/2010-December/008219.html


Log in to reply
 

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