Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Mac: compilation failure

    Installation and Deployment
    3
    3
    2787
    Loading More Posts
    • 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
      bovilexic last edited by

      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 Reply Quote 0
      • C
        Chuck Gao last edited by

        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 Reply Quote 0
        • G
          goetz last edited by

          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 Reply Quote 0
          • First post
            Last post