Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-719

Failed build with using Qt4.8.6 in a minimalist configuration.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.3.4
    • 1.3.3, 1.3.4
    • General
    • None
    • Ubuntu 14.04
    • 83437f04cc5a98be615294eab04a8e24bfb54d69

    Description

      I build QBS for assembly stand. In this case I'm using Qt 4.8.6 in minimalist configuration:

      ./configure \
          -verbose -prefix ${dest_dir} \
          -release \
          -nomake tools -nomake examples -nomake demos -nomake docs -nomake translations \
          -optimized-qmake \
          -no-stl -no-qt3support -no-webkit -no-nis -no-cups -no-multimedia \
          -no-audio-backend -no-phonon -no-phonon-backend \
          -no-svg -no-gif -no-libtiff -no-libpng -no-libmng -no-libjpeg \
          -no-dbus -no-iconv -no-openssl \
          -no-opengl -no-openvg -no-xvideo \
          -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite_symbian -no-sql-symsql -no-sql-tds \
          -no-declarative -no-declarative-debug \
          -no-gui \
          -no-gtkstyle -no-sm -no-xshape -no-xsync -no-xinerama -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-mitshm \
          -no-fontconfig -no-xinput -no-xkb -no-glib \
      

      During compilation I get following errors:

      g++ -c -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQBS_LIBRARY -DQBS_VERSION=\"1.3.4\" -DQT_CREATOR -DQML_BUILD_STATIC_LIB -DSRCDIR=\"/home/hkarel/Archive/SystemAdjustments/qbs/src/lib/corelib\" -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/qt/4.8.6-mini/mkspecs/linux-g++ -I. -I/usr/local/qt/4.8.6-mini/include/QtCore -I/usr/local/qt/4.8.6-mini/include/QtXml -I/usr/local/qt/4.8.6-mini/include/QtScript -I/usr/local/qt/4.8.6-mini/include -I../../../src -I. -I../../lib -I. -o projectresolver.o language/projectresolver.cpp
      language/projectresolver.cpp: In member function ‘void qbs::Internal::ProjectResolver::resolveProduct(qbs::Internal::Item*, qbs::Internal::ProjectResolver::ProjectContext*)’:
      language/projectresolver.cpp:302:9: error: ‘find_if’ is not a member of ‘std’
           if (std::find_if(item->modules().begin(), item->modules().end(),
               ^
      
      g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQBS_VERSION=\"1.3.4\" -DQBS_VERSION=\"1.3.4\" -DQBS_RELATIVE_PLUGINS_PATH=\"../lib\" -DQBS_RELATIVE_SEARCH_PATH=\"..\" -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/qt/4.8.6-mini/mkspecs/linux-g++ -I. -I/usr/local/qt/4.8.6-mini/include/QtCore -I/usr/local/qt/4.8.6-mini/include/QtXml -I/usr/local/qt/4.8.6-mini/include/QtScript -I/usr/local/qt/4.8.6-mini/include -I../../lib/corelib -I. -o main.o main.cpp
      main.cpp: In function ‘int main(int, char**)’:
      main.cpp:69:20: error: ‘EXIT_FAILURE’ was not declared in this scope
                   return EXIT_FAILURE;
      

      The problem is solved by the addition of appropriate header-files. See patch in attachment (0001-Building-with-qt486_mini.patch)

      Attachments

        For Gerrit Dashboard: QBS-719
        # Subject Branch Project Status CR V

        Activity

          People

            jbornema Joerg Bornemann
            hkarel Karelin Pavel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes