Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QtCreator 2.2.1 can't install on ppc mac
Forum Updated to NodeBB v4.3 + New Features

QtCreator 2.2.1 can't install on ppc mac

Scheduled Pinned Locked Moved Installation and Deployment
9 Posts 4 Posters 5.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aureshinite
    wrote on last edited by
    #1

    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??

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gedd
      wrote on last edited by
      #2
      • Xcode seems to be required, see "here":http://doc.qt.nokia.com/latest/requirements-mac.html
      • maybe intel archi is required ?

      Gedd

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aureshinite
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          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.

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • G Offline
            G Offline
            gedd
            wrote on last edited by
            #5

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

            Gedd

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goetz
              wrote on last edited by
              #6

              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.

              http://www.catb.org/~esr/faqs/smart-questions.html

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #7

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

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  RCL_
                  wrote on last edited by
                  #8

                  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,

                  • rebuild Qt with x86 support, as specified here: http://doc.qt.nokia.com/latest/platform-notes-mac.html#mac-os-x-on-intel-hardware (i.e., add -universal -sdk /Developer/SDKs/MacOSX10.4u.sdk and/or edit .pro files)
                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    RCL_
                    wrote on last edited by
                    #9

                    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

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved