Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-30547

Missed -F on Mac when compiling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 5.0.2
    • Build tools: qmake
    • None
    • OS X 10.8.2
      Xcode 4.5.2
    • macOS

    Description

      I built latest qtbase from git 6c879b9b7c5099455a29c95b24d6cb7e69baff99 on OS X 10.8.2 and Xcode 4.5.2.
      Qt5 was configured with

      ./configure -sdk macosx10.7 -release -opensource -nomake demos -nomake examples -confirm-license -no-dbus -no-sql-odbc -no-sql-psql -no-sql-mysql -nomake designer -nomake assistant -no-cups -no-nis -nomake tests -nomake docs -nomake tools -verbose
      make -j5
      sudo make install
      

      then i tried to compile simple Qt project

      mkdir simpleapp
      cd simpleapp
      
      cat > main.cpp << EOF
      #include <QCoreApplication>
      
      int main(int argc, char *argv[])
      {
          QCoreApplication app(argc, argv);
          app.exec();
          return 0;
      }
      EOF
      
      /usr/local/Qt-5.1.0/bin/qmake -project
      /usr/local/Qt-5.1.0/bin/qmake
      make
      

      I got

      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.6 -Wall -W -fPIE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/local/Qt-5.1.0/mkspecs/macx-clang -I. -I. -I/usr/local/Qt-5.1.0/include -I/usr/local/Qt-5.1.0/include/QtGui -I/usr/local/Qt-5.1.0/lib/QtGui.framework/Versions/5/Headers -I/usr/local/Qt-5.1.0/include/QtCore -I/usr/local/Qt-5.1.0/lib/QtCore.framework/Versions/5/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AGL.framework/Headers -o main.o main.cpp
      In file included from main.cpp:1:
      In file included from /usr/local/Qt-5.1.0/lib/QtCore.framework/Versions/5/Headers/QCoreApplication:1:
      /usr/local/Qt-5.1.0/lib/QtCore.framework/Versions/5/Headers/qcoreapplication.h:45:10: fatal error: 'QtCore/qglobal.h' file
            not found
      #include <QtCore/qglobal.h>
               ^
      1 error generated.
      make: *** [main.o] Error 1
      

      In compile command missed -F/usr/local/Qt-5.1.0/lib.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              buddenha Oswald Buddenhagen
              taurus Ivan Romanov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes