Unsolved An error build Qbs from source
-
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) -
Hi,
From the Qbs manual v1.11.0 needs at least gcc 4.9.
-
Thank you very much!