From: <tim...@co...> - 2007-04-07 06:34:41
|
Hi Smitha, Maybe your problem is QT needs gcc 3.3.5. You might want to try a buildroot version built using a similar version. ver 4.x.x acts different than 3.x.x. Tim -------------- Original message ---------------------- From: "Smitha Pisupati" <smi...@gm...> > I have built the toolchain using the latest gumstix buildroot svn. The > toolchain is built using binutils 2.17 and gcc 4.1.1 > The toolchain works. I have tested it with the sample c++ code available on > the wiki. > I set $PATH to include the binaries in > ./gumstix-buildroot/build_arm_nofpu/staging_dir/bin as the arm-linux-g++. > While trying to build Qtopia 4.2.2 for arm: > The configure statement: > ./configure -embedded arm -debug -continue > then i gave gmake. > The error i am gettting is: > In file included from kernel/qabstractitemmodel.cpp:24: > kernel/qabstractitemmodel.h:139:72: error: macro "index" passed 3 arguments, > but takes just 2 > kernel/qabstractitemmodel.h:143:48: error: macro "index" passed 3 arguments, > but takes just 2 > kernel/qabstractitemmodel.h:296:85: error: macro "index" passed 3 arguments, > but takes just 2 > kernel/qabstractitemmodel.h:316:89: error: macro "index" passed 3 arguments, > but takes just 2 > kernel/qabstractitemmodel.h:339:54: error: macro "index" passed 3 arguments, > but takes just 2 > kernel/qabstractitemmodel.h:342:43: error: macro "index" passed 3 arguments, > but takes just 2 > kernel/qabstractitemmodel.cpp:437:52: error: macro "index" passed 3 > arguments, but takes just 2 > kernel/qabstractitemmodel.cpp:508:68: error: macro "index" passed 3 > arguments, but takes just 2 > kernel/qabstractitemmodel.cpp:552:68: error: macro "index" passed 3 > arguments, but takes just 2 > kernel/qabstractitemmodel.cpp:581:68: error: macro "index" passed 3 > arguments, but takes just 2 > kernel/qabstractitemmodel.cpp:625:68: error: macro "index" passed 3 > arguments, but takes just 2 > kernel/qabstractitemmodel.cpp:1675:57: error: macro "index" passed 3 > arguments, but takes just 2 > kernel/qabstractitemmodel.cpp:1715:59: error: macro "index" passed 3 > arguments, but takes just 2 > kernel/qabstractitemmodel.cpp:1906:78: error: macro "index" passed 3 > arguments, but takes just 2 > kernel/qabstractitemmodel.cpp:2334:86: error: macro "index" passed 3 > arguments, but takes just 2 > kernel/qabstractitemmodel.cpp:2462:85: error: macro "index" passed 3 > arguments, but takes just 2 > kernel/qabstractitemmodel.cpp:2594:36: error: macro "index" requires 2 > arguments, but only 1 given > kernel/qabstractitemmodel.h:138: error: 'index' declared as a 'virtual' > field > kernel/qabstractitemmodel.h:138: error: expected ';' before 'const' > kernel/qabstractitemmodel.h: In member function 'QModelIndex > QAbstractItemModel::sibling(int, int, const QModelIndex&) const': > kernel/qabstractitemmodel.h:143: error: 'index' was not declared in this > scope > kernel/qabstractitemmodel.h: At global scope: > kernel/qabstractitemmodel.h:142: warning: unused parameter 'row' > kernel/qabstractitemmodel.h:142: warning: unused parameter 'column' > kernel/qabstractitemmodel.h:142: warning: unused parameter 'idx' > kernel/qabstractitemmodel.h:296: error: expected ';' before 'const' > kernel/qabstractitemmodel.h:316: error: expected ';' before 'const' > kernel/qabstractitemmodel.h: In member function 'QModelIndex > QModelIndex::sibling(int, int) const': > kernel/qabstractitemmodel.h:339: error: 'const class QAbstractItemModel' has > no member named 'index' > kernel/qabstractitemmodel.h: At global scope: > kernel/qabstractitemmodel.h:338: warning: unused parameter 'arow' > kernel/qabstractitemmodel.h:338: warning: unused parameter 'acolumn' > kernel/qabstractitemmodel.h: In member function 'QModelIndex > QModelIndex::child(int, int) const': > kernel/qabstractitemmodel.h:342: error: 'const class QAbstractItemModel' has > no member named 'index' > kernel/qabstractitemmodel.h: At global scope: > kernel/qabstractitemmodel.h:341: warning: unused parameter 'arow' > kernel/qabstractitemmodel.h:341: warning: unused parameter 'acolumn' > kernel/qabstractitemmodel.cpp:437: error: expected ';' before 'const' > kernel/qabstractitemmodel.cpp:438: error: expected `;' before 'QModelIndex' > kernel/qabstractitemmodel.cpp: In member function 'void > QAbstractItemModelPrivate::rowsInserted(const QModelIndex&, int, int)': > kernel/qabstractitemmodel.cpp:508: error: 'class QAbstractItemModel' has no > member named 'index' > kernel/qabstractitemmodel.cpp:503: warning: unused variable 'count' > kernel/qabstractitemmodel.cpp: At global scope: > kernel/qabstractitemmodel.cpp:500: warning: unused parameter 'parent' > kernel/qabstractitemmodel.cpp: In member function 'void > QAbstractItemModelPrivate::rowsRemoved(const QModelIndex&, int, int)': > kernel/qabstractitemmodel.cpp:552: error: 'class QAbstractItemModel' has no > member named 'index' > kernel/qabstractitemmodel.cpp:547: warning: unused variable 'count' > kernel/qabstractitemmodel.cpp: At global scope: > kernel/qabstractitemmodel.cpp:541: warning: unused parameter 'parent' > kernel/qabstractitemmodel.cpp: In member function 'void > QAbstractItemModelPrivate::columnsInserted(const QModelIndex&, int, int)': > kernel/qabstractitemmodel.cpp:581: error: 'class QAbstractItemModel' has no > member named 'index' > kernel/qabstractitemmodel.cpp:576: warning: unused variable 'count' > kernel/qabstractitemmodel.cpp: At global scope: > kernel/qabstractitemmodel.cpp:573: warning: unused parameter 'parent' > kernel/qabstractitemmodel.cpp: In member function 'void > QAbstractItemModelPrivate::columnsRemoved(const QModelIndex&, int, int)': > kernel/qabstractitemmodel.cpp:625: error: 'class QAbstractItemModel' has no > member named 'index' > kernel/qabstractitemmodel.cpp:620: warning: unused variable 'count' > kernel/qabstractitemmodel.cpp: At global scope: > kernel/qabstractitemmodel.cpp:614: warning: unused parameter 'parent' > kernel/qabstractitemmodel.cpp: In member function 'virtual QModelIndexList > QAbstractItemModel::match(const QModelIndex&, int, const QVariant&, int, > Qt::MatchFlags) const': > kernel/qabstractitemmodel.cpp:1675: error: 'index' was not declared in this > scope > kernel/qabstractitemmodel.cpp: In member function 'bool > QAbstractItemModel::decodeData(int, int, const QModelIndex&, QDataStream&)': > kernel/qabstractitemmodel.cpp:1906: error: 'index' was not declared in this > scope > kernel/qabstractitemmodel.cpp: At global scope: > kernel/qabstractitemmodel.cpp:2334: error: expected initializer before > 'const' > kernel/qabstractitemmodel.cpp:2462: error: expected initializer before > 'const' > kernel/qabstractitemmodel.cpp: In member function 'virtual bool > QAbstractTableModel::dropMimeData(const QMimeData*, Qt::DropAction, int, > int, const QModelIndex&)': > kernel/qabstractitemmodel.cpp:2544: error: invalid conversion from 'int' to > 'const char*' > kernel/qabstractitemmodel.cpp:2544: error: initializing argument 1 of > 'char* strchr(const char*, int)' > kernel/qabstractitemmodel.cpp:2544: error: no matching function for call to > 'QAbstractTableModel::setItemData(char*, const QMap<int, QVariant>&)' > kernel/qabstractitemmodel.cpp:1347: note: candidates are: virtual bool > QAbstractItemModel::setItemData(const QModelIndex&, const QMap<int, > QVariant>&) > kernel/qabstractitemmodel.cpp: In member function 'virtual bool > QAbstractListModel::dropMimeData(const QMimeData*, Qt::DropAction, int, int, > const QModelIndex&)': > kernel/qabstractitemmodel.cpp:2594: error: 'index' was not declared in this > scope > gmake[2]: *** [.obj/debug-shared-emb-arm/qabstractitemmodel.o] Error 1 > gmake[2]: Leaving directory `/home/newuser/Project/qtopia- > core-opensource-src-4.2.1/src/corelib' > gmake[1]: *** [sub-corelib-make_default] Error 2 > gmake[1]: Leaving directory `/home/newuser/Project/qtopia- > core-opensource-src-4.2.1/src' > gmake: *** [sub-src-make_default-ordered] Error 2 > > Will someone please help me? > Thanks in advance |