Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. An error build Qbs from source
Forum Updated to NodeBB v4.3 + New Features

An error build Qbs from source

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 560 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.
  • _ Offline
    _ Offline
    _dmp
    wrote on last edited by
    #1

    Hello. I try build Qbs 1.11.0 from source.
    I have x86_32 mashine 6 cores, Qt 5.9.2 build from source.

    Out error:
    c -pipe -O2 -std=gnu++11 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQBS_LIBRARY -DQT_NO_CAST_FROM_ASCII -DQT_NO_PROCESS_COMBINED_ARGUMENT_START -DQBS_VERSION="1.11.0" -DQBS_RELATIVE_LIBEXEC_PATH="../libexec/qbs" -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I../../../src -I. -I../../lib -I../../../../Qt5.9.2/include/QtCore/5.9.2 -I../../../../Qt5.9.2/include/QtCore/5.9.2/QtCore -I../../../../Qt5.9.2/include -I../../../../Qt5.9.2/include/QtNetwork -I../../../../Qt5.9.2/include/QtScript -I../../../../Qt5.9.2/include/QtXml -I../../../../Qt5.9.2/include/QtCore -I. -I../../../../Qt5.9.2/mkspecs/linux-g++ -o jscommandexecutor.o buildgraph/jscommandexecutor.cpp
    buildgraph/jscommandexecutor.cpp: In member function ‘void qbs::Internal::JsCommandExecutorThreadObject::doStart(const qbs::Internal::JavaScriptCommand*, qbs::Internal::Transformer*)’:
    buildgraph/jscommandexecutor.cpp:152:87: error: no matching function for call to ‘std::vector<QString>::insert(std::vector<QString>::const_iterator, std::vector<QString>::const_iterator, std::vector<QString>::const_iterator)’
    importFilesUsedInCommand.cbegin(), importFilesUsedInCommand.cend());
    ^
    buildgraph/jscommandexecutor.cpp:152:87: note: candidates are:
    In file included from /usr/include/c++/4.8/vector:69:0,
    from /usr/include/c++/4.8/bits/random.h:34,
    from /usr/include/c++/4.8/random:50,
    from /usr/include/c++/4.8/bits/stl_algo.h:65,
    from /usr/include/c++/4.8/algorithm:62,
    from ../../../../Qt5.9.2/include/QtCore/qglobal.h:109,
    from ../../../../Qt5.9.2/include/QtCore/qchar.h:43,
    from ../../../../Qt5.9.2/include/QtCore/qstring.h:48,
    from ./logging/ilogsink.h:44,
    from ./logging/logger.h:43,
    from buildgraph/abstractcommandexecutor.h:43,
    from buildgraph/jscommandexecutor.h:43,
    from buildgraph/jscommandexecutor.cpp:40:
    /usr/include/c++/4.8/bits/vector.tcc:107:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, const value_type&) [with _Tp = QString; _Alloc = std::allocator<QString>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<QString*, std::vector<QString> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = QString*; std::vector<_Tp, _Alloc>::value_type = QString]
    vector<_Tp, _Alloc>::
    ^
    /usr/include/c++/4.8/bits/vector.tcc:107:5: note: candidate expects 2 arguments, 3 provided
    In file included from /usr/include/c++/4.8/vector:64:0,
    from /usr/include/c++/4.8/bits/random.h:34,
    from /usr/include/c++/4.8/random:50,
    from /usr/include/c++/4.8/bits/stl_algo.h:65,
    from /usr/include/c++/4.8/algorithm:62,
    from ../../../../Qt5.9.2/include/QtCore/qglobal.h:109,
    from ../../../../Qt5.9.2/include/QtCore/qchar.h:43,
    from ../../../../Qt5.9.2/include/QtCore/qstring.h:48,
    from ./logging/ilogsink.h:44,
    from ./logging/logger.h:43,
    from buildgraph/abstractcommandexecutor.h:43,
    from buildgraph/jscommandexecutor.h:43,
    from buildgraph/jscommandexecutor.cpp:40:
    /usr/include/c++/4.8/bits/stl_vector.h:988:7: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = QString; _Alloc = std::allocator<QString>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<QString*, std::vector<QString> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = QString*; std::vector<_Tp, _Alloc>::value_type = QString]
    insert(iterator __position, value_type&& __x)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From the Qbs manual v1.11.0 needs at least gcc 4.9.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • _ Offline
        _ Offline
        _dmp
        wrote on last edited by
        #3

        Thank you very much!

        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