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

configure ignores QMAKE_CXX

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 5.12.0
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
      None
    • Environment:
      ubuntu
    • Platform/s:
      Linux/X11

      Description

      When building Qt with the following command

      configure -shared ... -xplatform linux-arm-gnueabi-g++ QMAKE_CC=arm-linux-gnueabihf-gcc-5 QMAKE_LINK_C=arm-linux-gnueabihf-gcc-5 QMAKE_LINK_C_SHLIB=arm-linux-gnueabihf-gcc-5 QMAKE_CXX=arm-linux-gnueabihf-g++-5 QMAKE_LINK=arm-linux-gnueabihf-g++-5 QMAKE_LINK_SHLIB=arm-linux-gnueabihf-g++-5
      

      it fails with error

      Project ERROR: Cannot run target compiler 'arm-linux-gnueabi-g++'. Output:
      ===================
      sh: 1: arm-linux-gnueabi-g++: not found
      ===================
      Maybe you forgot to setup the environment?
      

      why is arm-linux-gnueabi-g++ used instead of arm-linux-gnueabihf-g++-5 ?

      Full log is below:

      + cd qtbase
      + /home/conan/.conan/data/qt/5.12.0/bincrafters/testing/source/qt5/qtbase/configure -top-level -shared -confirm-license -nomake examples -nomake tests -prefix /home/conan/.conan/data/qt/5.12.0/bincrafters/testing/package/c07f47431bf487250c9b18db033b0dda093a659c -opensource -release -skip qtsvg -skip qtdeclarative -skip qtactiveqt -skip qtscript -skip qtmultimedia -skip qttools -skip qtxmlpatterns -skip qttranslations -skip qtdoc -skip qtlocation -skip qtsensors -skip qtconnectivity -skip qtwayland -skip qt3d -skip qtimageformats -skip qtgraphicaleffects -skip qtquickcontrols -skip qtserialbus -skip qtserialport -skip qtx11extras -skip qtmacextras -skip qtwinextras -skip qtandroidextras -skip qtwebsockets -skip qtwebchannel -skip qtwebengine -skip qtcanvas3d -skip qtwebview -skip qtquickcontrols2 -skip qtpurchasing -skip qtcharts -skip qtdatavis3d -skip qtvirtualkeyboard -skip qtgamepad -skip qtscxml -skip qtspeech -skip qtnetworkauth -skip qtremoteobjects -skip qtwebglplugin -opengl desktop -openssl --pcre=system --sql-psql=yes --sql-odbc=yes -system-doubleconversion -system-freetype -system-harfbuzz -system-libjpeg -system-libpng -system-sqlite ZLIB_INCDIR=/home/conan/.conan/data/zlib/1.2.11/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/include ZLIB_LIBDIR=/home/conan/.conan/data/zlib/1.2.11/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib ZLIB_LIBS=-lz OPENSSL_INCDIR=/home/conan/.conan/data/OpenSSL/1.1.1a/conan/stable/package/dc4c2a6ef5e9dba49003d9fe76786b62ef9af24c/include OPENSSL_LIBDIR=/home/conan/.conan/data/OpenSSL/1.1.1a/conan/stable/package/dc4c2a6ef5e9dba49003d9fe76786b62ef9af24c/lib OPENSSL_LIBS=-lssl -lcrypto -ldl -lpthread -L/home/conan/.conan/data/zlib/1.2.11/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib -lz PCRE2_INCDIR=/home/conan/.conan/data/pcre2/10.32/bincrafters/stable/package/b650127b407a7ea9a721cbc3694a07b9859bc788/include PCRE2_LIBDIR=/home/conan/.conan/data/pcre2/10.32/bincrafters/stable/package/b650127b407a7ea9a721cbc3694a07b9859bc788/lib -D PCRE2_STATIC PCRE2_LIBS=-lpcre2-32 -lpcre2-16 -lpcre2-8 -lpcre2-posix -L/home/conan/.conan/data/zlib/1.2.11/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib -lz -L/home/conan/.conan/data/bzip2/1.0.6/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib -lbz2 DOUBLECONVERSION_INCDIR=/home/conan/.conan/data/double-conversion/3.1.1/bincrafters/stable/package/c2c9082592d0cb2e64f38f8b595959e3686d2a13/include DOUBLECONVERSION_LIBDIR=/home/conan/.conan/data/double-conversion/3.1.1/bincrafters/stable/package/c2c9082592d0cb2e64f38f8b595959e3686d2a13/lib DOUBLECONVERSION_LIBS=-ldouble-conversion FREETYPE_INCDIR=/home/conan/.conan/data/freetype/2.9.0/bincrafters/stable/package/437413314b99a06a5aaeafd4c41eb3c6f52b1c02/include/freetype2 FREETYPE_LIBDIR=/home/conan/.conan/data/freetype/2.9.0/bincrafters/stable/package/437413314b99a06a5aaeafd4c41eb3c6f52b1c02/lib FREETYPE_LIBS=-lfreetype -lm -L/home/conan/.conan/data/libpng/1.6.34/bincrafters/stable/package/d050ec9a1210ca731e091398ed498b31dfa6e8e8/lib -lpng16 -lm -L/home/conan/.conan/data/zlib/1.2.11/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib -lz -L/home/conan/.conan/data/zlib/1.2.11/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib -lz -L/home/conan/.conan/data/bzip2/1.0.6/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib -lbz2 HARFBUZZ_INCDIR=/home/conan/.conan/data/harfbuzz/2.3.0/bincrafters/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/include HARFBUZZ_LIBDIR=/home/conan/.conan/data/harfbuzz/2.3.0/bincrafters/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib HARFBUZZ_LIBS=-lharfbuzz -lm LIBJPEG_INCDIR=/home/conan/.conan/data/libjpeg/9c/bincrafters/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/include LIBJPEG_LIBDIR=/home/conan/.conan/data/libjpeg/9c/bincrafters/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib LIBJPEG_LIBS=-ljpeg LIBPNG_INCDIR=/home/conan/.conan/data/libpng/1.6.34/bincrafters/stable/package/d050ec9a1210ca731e091398ed498b31dfa6e8e8/include LIBPNG_LIBDIR=/home/conan/.conan/data/libpng/1.6.34/bincrafters/stable/package/d050ec9a1210ca731e091398ed498b31dfa6e8e8/lib LIBPNG_LIBS=-lpng16 -lm -L/home/conan/.conan/data/zlib/1.2.11/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib -lz SQLITE_INCDIR=/home/conan/.conan/data/sqlite3/3.26.0/bincrafters/stable/package/fcc7aefa6fb365781209e3c919ee93fec2c3412b/include SQLITE_LIBDIR=/home/conan/.conan/data/sqlite3/3.26.0/bincrafters/stable/package/fcc7aefa6fb365781209e3c919ee93fec2c3412b/lib SQLITE_LIBS=-lsqlite3 -lpthread -ldl PSQL_INCDIR=/home/conan/.conan/data/libpq/9.6.9/bincrafters/stable/package/a7eefc7b7ba116d3a53d4409bf950e84eeeab77f/include PSQL_LIBDIR=/home/conan/.conan/data/libpq/9.6.9/bincrafters/stable/package/a7eefc7b7ba116d3a53d4409bf950e84eeeab77f/lib PSQL_LIBS=-lpq -lpgcommon -lpthread -L/home/conan/.conan/data/zlib/1.2.11/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib -lz ODBC_INCDIR=/home/conan/.conan/data/odbc/2.3.7/bincrafters/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/include ODBC_LIBDIR=/home/conan/.conan/data/odbc/2.3.7/bincrafters/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib ODBC_LIBS=-lodbc -lodbccr -lodbcinst -lltdl -ldl -qt-xcb -xplatform linux-arm-gnueabi-g++ QMAKE_CC=arm-linux-gnueabihf-gcc-5 QMAKE_LINK_C=arm-linux-gnueabihf-gcc-5 QMAKE_LINK_C_SHLIB=arm-linux-gnueabihf-gcc-5 QMAKE_CXX=arm-linux-gnueabihf-g++-5 QMAKE_LINK=arm-linux-gnueabihf-g++-5 QMAKE_LINK_SHLIB=arm-linux-gnueabihf-g++-5 -v
      Performing shadow build...
      Preparing build tree...
      Creating qmake...
      Info: creating super cache file /home/conan/.conan/data/qt/5.12.0/bincrafters/testing/build/c07f47431bf487250c9b18db033b0dda093a659c/.qmake.super
      Info: creating cache file /home/conan/.conan/data/qt/5.12.0/bincrafters/testing/build/c07f47431bf487250c9b18db033b0dda093a659c/.qmake.cache
      Command line: -shared -confirm-license -nomake examples -nomake tests -prefix /home/conan/.conan/data/qt/5.12.0/bincrafters/testing/package/c07f47431bf487250c9b18db033b0dda093a659c -opensource -release -skip qtsvg -skip qtdeclarative -skip qtactiveqt -skip qtscript -skip qtmultimedia -skip qttools -skip qtxmlpatterns -skip qttranslations -skip qtdoc -skip qtlocation -skip qtsensors -skip qtconnectivity -skip qtwayland -skip qt3d -skip qtimageformats -skip qtgraphicaleffects -skip qtquickcontrols -skip qtserialbus -skip qtserialport -skip qtx11extras -skip qtmacextras -skip qtwinextras -skip qtandroidextras -skip qtwebsockets -skip qtwebchannel -skip qtwebengine -skip qtcanvas3d -skip qtwebview -skip qtquickcontrols2 -skip qtpurchasing -skip qtcharts -skip qtdatavis3d -skip qtvirtualkeyboard -skip qtgamepad -skip qtscxml -skip qtspeech -skip qtnetworkauth -skip qtremoteobjects -skip qtwebglplugin -opengl desktop -openssl --pcre=system --sql-psql=yes --sql-odbc=yes -system-doubleconversion -system-freetype -system-harfbuzz -system-libjpeg -system-libpng -system-sqlite ZLIB_INCDIR=/home/conan/.conan/data/zlib/1.2.11/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/include ZLIB_LIBDIR=/home/conan/.conan/data/zlib/1.2.11/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib ZLIB_LIBS=-lz OPENSSL_INCDIR=/home/conan/.conan/data/OpenSSL/1.1.1a/conan/stable/package/dc4c2a6ef5e9dba49003d9fe76786b62ef9af24c/include OPENSSL_LIBDIR=/home/conan/.conan/data/OpenSSL/1.1.1a/conan/stable/package/dc4c2a6ef5e9dba49003d9fe76786b62ef9af24c/lib 'OPENSSL_LIBS=-lssl -lcrypto -ldl -lpthread -L/home/conan/.conan/data/zlib/1.2.11/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib -lz' PCRE2_INCDIR=/home/conan/.conan/data/pcre2/10.32/bincrafters/stable/package/b650127b407a7ea9a721cbc3694a07b9859bc788/include PCRE2_LIBDIR=/home/conan/.conan/data/pcre2/10.32/bincrafters/stable/package/b650127b407a7ea9a721cbc3694a07b9859bc788/lib -D PCRE2_STATIC 'PCRE2_LIBS=-lpcre2-32 -lpcre2-16 -lpcre2-8 -lpcre2-posix -L/home/conan/.conan/data/zlib/1.2.11/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib -lz -L/home/conan/.conan/data/bzip2/1.0.6/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib -lbz2' DOUBLECONVERSION_INCDIR=/home/conan/.conan/data/double-conversion/3.1.1/bincrafters/stable/package/c2c9082592d0cb2e64f38f8b595959e3686d2a13/include DOUBLECONVERSION_LIBDIR=/home/conan/.conan/data/double-conversion/3.1.1/bincrafters/stable/package/c2c9082592d0cb2e64f38f8b595959e3686d2a13/lib DOUBLECONVERSION_LIBS=-ldouble-conversion FREETYPE_INCDIR=/home/conan/.conan/data/freetype/2.9.0/bincrafters/stable/package/437413314b99a06a5aaeafd4c41eb3c6f52b1c02/include/freetype2 FREETYPE_LIBDIR=/home/conan/.conan/data/freetype/2.9.0/bincrafters/stable/package/437413314b99a06a5aaeafd4c41eb3c6f52b1c02/lib 'FREETYPE_LIBS=-lfreetype -lm -L/home/conan/.conan/data/libpng/1.6.34/bincrafters/stable/package/d050ec9a1210ca731e091398ed498b31dfa6e8e8/lib -lpng16 -lm -L/home/conan/.conan/data/zlib/1.2.11/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib -lz -L/home/conan/.conan/data/zlib/1.2.11/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib -lz -L/home/conan/.conan/data/bzip2/1.0.6/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib -lbz2' HARFBUZZ_INCDIR=/home/conan/.conan/data/harfbuzz/2.3.0/bincrafters/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/include HARFBUZZ_LIBDIR=/home/conan/.conan/data/harfbuzz/2.3.0/bincrafters/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib 'HARFBUZZ_LIBS=-lharfbuzz -lm' LIBJPEG_INCDIR=/home/conan/.conan/data/libjpeg/9c/bincrafters/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/include LIBJPEG_LIBDIR=/home/conan/.conan/data/libjpeg/9c/bincrafters/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib LIBJPEG_LIBS=-ljpeg LIBPNG_INCDIR=/home/conan/.conan/data/libpng/1.6.34/bincrafters/stable/package/d050ec9a1210ca731e091398ed498b31dfa6e8e8/include LIBPNG_LIBDIR=/home/conan/.conan/data/libpng/1.6.34/bincrafters/stable/package/d050ec9a1210ca731e091398ed498b31dfa6e8e8/lib 'LIBPNG_LIBS=-lpng16 -lm -L/home/conan/.conan/data/zlib/1.2.11/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib -lz' SQLITE_INCDIR=/home/conan/.conan/data/sqlite3/3.26.0/bincrafters/stable/package/fcc7aefa6fb365781209e3c919ee93fec2c3412b/include SQLITE_LIBDIR=/home/conan/.conan/data/sqlite3/3.26.0/bincrafters/stable/package/fcc7aefa6fb365781209e3c919ee93fec2c3412b/lib 'SQLITE_LIBS=-lsqlite3 -lpthread -ldl' PSQL_INCDIR=/home/conan/.conan/data/libpq/9.6.9/bincrafters/stable/package/a7eefc7b7ba116d3a53d4409bf950e84eeeab77f/include PSQL_LIBDIR=/home/conan/.conan/data/libpq/9.6.9/bincrafters/stable/package/a7eefc7b7ba116d3a53d4409bf950e84eeeab77f/lib 'PSQL_LIBS=-lpq -lpgcommon -lpthread -L/home/conan/.conan/data/zlib/1.2.11/conan/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib -lz' ODBC_INCDIR=/home/conan/.conan/data/odbc/2.3.7/bincrafters/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/include ODBC_LIBDIR=/home/conan/.conan/data/odbc/2.3.7/bincrafters/stable/package/847d2e3bc2a3c237a5944e69792e0b145bbab6fc/lib 'ODBC_LIBS=-lodbc -lodbccr -lodbcinst -lltdl -ldl' -qt-xcb -xplatform linux-arm-gnueabi-g++ QMAKE_CC=arm-linux-gnueabihf-gcc-5 QMAKE_LINK_C=arm-linux-gnueabihf-gcc-5 QMAKE_LINK_C_SHLIB=arm-linux-gnueabihf-gcc-5 QMAKE_CXX=arm-linux-gnueabihf-g++-5 QMAKE_LINK=arm-linux-gnueabihf-g++-5 QMAKE_LINK_SHLIB=arm-linux-gnueabihf-g++-5 -v
      Project ERROR: Cannot run target compiler 'arm-linux-gnueabi-g++'. Output:
      ===================
      sh: 1: arm-linux-gnueabi-g++: not found
      ===================
      Maybe you forgot to setup the environment?
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qtbuildsystem Qt Build System Team
              Reporter:
              ericlemanissier Eric Lemanissier
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes