hi,all:
when I compile qtopia 4.2.4,there is some errors,following are an abbreated look at error information:
--------------------------------------------------------------------------------------------------------
1.src/libraries/qtopia/qhardwaremanager.h:49: parse error before `;' token
2.qhardwaremanager.cpp:143: static member function `QStringList QHardwareManager:roviders() const' +declared with type qualifiers
3.qhardwaremanager.cpp:143: redefinition of `static QStringList QHardwareManager:roviders()'
4.qhardwaremanager.cpp:143: no `static QStringList QHardwareManager:roviders()' member function +declared in class `QHardwareManager'
5.qhardwaremanager.cpp:143: no `static QStringList QHardwareManager:roviders()' member function +declared in class `QHardwareManager'
--------------------------------------------------------------------------------------------------------
you can see all the errors is come from QHardwareManager class .so I look over the QHardwareManager.h,there is following code:
------------------------------------------------------------------------
//file:QHardwareManager.h
QStringList providers() const;
template <typename T> static QStringList providers()
{
QAbstractIpcInterfaceGroupManager man("/Hardware/Accessories");
return man.supports<T>();
}
----------------------------------------------------------------------------
well,you can see the function providers() is declare twice.I think this is a obvious error.so how to modify these error?
following is some other information:
environment: Redhat 9.0
gcc version:
package: qtopia-opensource-src-4.2.4.tar.gz
compile command: echo yes | ../qtopia/configure && make && make install
Bookmarks