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. Mac: compilation failure
Forum Updated to NodeBB v4.3 + New Features

Mac: compilation failure

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 3.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.
  • B Offline
    B Offline
    bovilexic
    wrote on last edited by
    #1

    Context: building Qt from qt-everywhere-opensource-src-4.7.3

    Configuration: ./configure -arch i386 -release

    The configuration phase works without issues. But, when I type "make", I get this:

    cd src/tools/rcc/ && make -f Makefile
    g++ -c -pipe -Xarch_i386 -mmacosx-version-min=10.4 -O2 -arch i386 -Wall -W -DQT_RCC -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_TEXTCODEC -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_SYSTEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../mkspecs/macx-g++ -I. -I. -I. -I../../../include -I../../../include/QtCore -I../../../include/QtXml -I../../xml -o .obj/release-shared/rcc.o rcc.cpp
    g++ -c -pipe -Xarch_i386 -mmacosx-version-min=10.4 -O2 -arch i386 -Wall -W -DQT_RCC -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_TEXTCODEC -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_SYSTEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../mkspecs/macx-g++ -I. -I. -I. -I../../../include -I../../../include/QtCore -I../../../include/QtXml -I../../xml -o .obj/release-shared/main.o main.cpp
    g++ -headerpad_max_install_names -arch i386 -Xarch_i386 -mmacosx-version-min=10.4 -o ../../../bin/rcc .obj/release-shared/rcc.o .obj/release-shared/main.o -L/Users/pjs/Applications/qt-everywhere-opensource-src-4.7.3/src/tools/bootstrap -lbootstrap -framework CoreServices -lz -lz
    ld: can't write output file: ../../../bin/rcc for architecture i386
    collect2: ld returned 1 exit status
    make[1]: *** [../../../bin/rcc] Error 1
    make: *** [sub-rcc-make_default-ordered] Error 2

    I can get around this issue if I instead do "sudo make". But that seems like it's just working around a small bug in the build system.

    Any ideas? Am I doing something wrong?

    Thanks!

    -- Philip

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chuck Gao
      wrote on last edited by
      #2

      sudo make is needed.
      @ld: can’t write output file: ../../../bin/rcc for architecture i386@
      It shows the permission issue

      Chuck

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

        sudo is usually not needed for just compiling Qt on a Mac, only for "make install". Just make sure, all the files and directories of the source tree are owned by the user executing make. How did you extract the tarball?

        http://www.catb.org/~esr/faqs/smart-questions.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