qt4 build fails with message error -
i'm trying build qt-all-opensource-src-4.5.3 sources, i'm on debian testing , build fails following error message:
g++ -c -pipe -g -fno-exceptions -o2 -wall -w -d_reentrant -dqt_no_cast_to_ascii -d_largefile64_source -d_largefile_source -dqt_no_debug -dqt_xml_lib -dqt_core_lib -dqt_shared -i../../../mkspecs/linux-g++ -i. -i../../../include/qtcore -i../../../include/qtxml -i../../../include -i.moc/release-shared -o .obj/release-shared/preprocessorcontrol.o preprocessorcontrol.cpp g++ -c -pipe -g -fno-exceptions -o2 -wall -w -d_reentrant -dqt_no_cast_to_ascii -d_largefile64_source -d_largefile_source -dqt_no_debug -dqt_xml_lib -dqt_core_lib -dqt_shared -i../../../mkspecs/linux-g++ -i. -i../../../include/qtcore -i../../../include/qtxml -i../../../include -i.moc/release-shared -o .obj/release-shared/replacetoken.o replacetoken.cpp g++ -c -pipe -g -fno-exceptions -o2 -wall -w -d_reentrant -dqt_no_cast_to_ascii -d_largefile64_source -d_largefile_source -dqt_no_debug -dqt_xml_lib -dqt_core_lib -dqt_shared -i../../../mkspecs/linux-g++ -i. -i../../../include/qtcore -i../../../include/qtxml -i../../../include -i.moc/release-shared -o .obj/release-shared/tokenreplacements.o tokenreplacements.cpp g++ -c -pipe -g -fno-exceptions -o2 -wall -w -d_reentrant -dqt_no_cast_to_ascii -d_largefile64_source -d_largefile_source -dqt_no_debug -dqt_xml_lib -dqt_core_lib -dqt_shared -i../../../mkspecs/linux-g++ -i. -i../../../include/qtcore -i../../../include/qtxml -i../../../include -i.moc/release-shared -o .obj/release-shared/textreplacement.o textreplacement.cpp g++ -c -pipe -g -fno-exceptions -o2 -wall -w -d_reentrant -dqt_no_cast_to_ascii -d_largefile64_source -d_largefile_source -dqt_no_debug -dqt_xml_lib -dqt_core_lib -dqt_shared -i../../../mkspecs/linux-g++ -i. -i../../../include/qtcore -i../../../include/qtxml -i../../../include -i.moc/release-shared -o .obj/release-shared/portingrules.o portingrules.cpp g++ -c -pipe -g -fno-exceptions -o2 -wall -w -d_reentrant -dqt_no_cast_to_ascii -d_largefile64_source -d_largefile_source -dqt_no_debug -dqt_xml_lib -dqt_core_lib -dqt_shared -i../../../mkspecs/linux-g++ -i. -i../../../include/qtcore -i../../../include/qtxml -i../../../include -i.moc/release-shared -o .obj/release-shared/qtsimplexml.o qtsimplexml.cpp g++ -c -pipe -g -fno-exceptions -o2 -wall -w -d_reentrant -dqt_no_cast_to_ascii -d_largefile64_source -d_largefile_source -dqt_no_debug -dqt_xml_lib -dqt_core_lib -dqt_shared -i../../../mkspecs/linux-g++ -i. -i../../../include/qtcore -i../../../include/qtxml -i../../../include -i.moc/release-shared -o .obj/release-shared/projectporter.o projectporter.cpp g++ -c -pipe -g -fno-exceptions -o2 -wall -w -d_reentrant -dqt_no_cast_to_ascii -d_largefile64_source -d_largefile_source -dqt_no_debug -dqt_xml_lib -dqt_core_lib -dqt_shared -i../../../mkspecs/linux-g++ -i. -i../../../include/qtcore -i../../../include/qtxml -i../../../include -i.moc/release-shared -o .obj/release-shared/proparser.o proparser.cpp in file included translationunit.h:48:0, projectporter.cpp:47: codemodel.h: in instantiation of ‘void codemodel::collection::add(collectedtype*) [with collectedtype = codemodel::type]’: codemodel.h:296:36: required here codemodel.h:99:7: error: ‘insert’ not declared in scope, , no declarations found argument-dependent lookup @ point of instantiation [-fpermissive] codemodel.h:99:7: note: declarations in dependent base ‘qmultihash’ not found unqualified lookup codemodel.h:99:7: note: use ‘this->insert’ instead g++ -c -pipe -g -fno-exceptions -o2 -wall -w -d_reentrant -dqt_no_cast_to_ascii -d_largefile64_source -d_largefile_source -dqt_no_debug -dqt_xml_lib -dqt_core_lib -dqt_shared -i../../../mkspecs/linux-g++ -i. -i../../../include/qtcore -i../../../include/qtxml -i../../../include -i.moc/release-shared -o .obj/release-shared/fileporter.o fileporter.cpp make[5]: *** [.obj/release-shared/projectporter.o] error 1 make[5]: *** waiting unfinished jobs.... make[5]: leaving directory `/home/habeeb/lab/xml/debian/3rd/qt/4.5.3/qt-all-opensource-src-4.5.3/tools/porting/src' make[4]: *** [sub-src-make_default] error 2 make[4]: leaving directory `/home/habeeb/lab/xml/debian/3rd/qt/4.5.3/qt-all-opensource-src-4.5.3/tools/porting' make[3]: *** [sub-porting-make_default-ordered] error 2 make[3]: leaving directory `/home/habeeb/lab/xml/debian/3rd/qt/4.5.3/qt-all-opensource-src-4.5.3/tools' make[2]: *** [sub-tools-make_default-ordered] error 2 make[2]: leaving directory `/home/habeeb/lab/xml/debian/3rd/qt/4.5.3/qt-all-opensource-src-4.5.3'
code in question, model.h (lines 95 100):
class collection: public qmultihash { public: void add(collectedtype *collecteditem) { insert(collecteditem->name(), collecteditem); } };
is tis related missing library ? how can fix ?
thank !
Comments
Post a Comment