0

我正在尝试在 Qt4.6.3 上构建 QSsh 并出现以下错误:

/usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:441:从 'QSharedPointer' ../../../../QSsh-master/src/libs/ssh/sftpoperation_p.h 实例化: 92:从此处实例化 /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:405:警告:降低 'QSharedPointer QtSharedPointer::copyAndSetPointer(X*, const QSharedPointer&) 的可见性 [with X = X, Y = Y, T = QSsh::Internal::SftpUploadDir]' 以匹配其类型 /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:在 'QtSharedPointer::ExternalRefCount' 的实例化中:/usr/local/qt463 /qt/include/QtCore/qsharedpointer_impl.h:441:从'QSharedPointer'实例化../../../../QSsh-master/src/libs/ssh/sftpoperation_p.h:167:从这里实例化/ usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:405:警告:降低 'QSharedPointer QtSharedPointer::copyAndSetPointer(X*, const QSharedPointer&) [with X = X, Y = Y, T = QSsh::Internal::SftpDownloadDir]' 的可见性以匹配其类型 /usr/local/qt463/qt/ include/QtCore/qsharedpointer_impl.h:在“QtSharedPointer::ExternalRefCount”的实例化中:/usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:441:从“QSharedPointer”实例化../../.. /../QSsh-master/src/libs/ssh/sftpoperation_p.h:193:从这里实例化/usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:405:警告:降低'QSharedPointer QtSharedPointer的可见性::copyAndSetPointer(X*, const QSharedPointer&) [with X = X, Y = Y, T = QFile]' 以匹配其类型 /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h: 在 ' 的实例化中QtSharedPointer::ExternalRefCount':/usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:441:从'QSharedPointer'实例化../../../../QSsh-master/src/libs/ssh/sftpchannel.cpp :156: 从这里实例化 /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:405: 警告:降低 'QSharedPointer QtSharedPointer::copyAndSetPointer(X*, const QSharedPointer&) 的可见性 [with X = X, Y = Y, T = QSsh::Internal::SftpStatFile]' 以匹配其类型 /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:在 'QtSharedPointer::ExternalRefCount' 的实例化中:/usr/local/ qt463/qt/include/QtCore/qsharedpointer_impl.h:441:从'QSharedPointer'实例化../../../../QSsh-master/src/libs/ssh/sftpchannel.cpp:156:从这里实例化/usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:405:警告:降低 'QSharedPointer QtSharedPointer::copyAndSetPointer(X*, const QSharedPointer&) [with X = X, Y = Y, T = QSsh::Internal::AbstractSftpOperation]' 的可见性以匹配其类型 /usr/local/qt463/qt/ include/QtCore/qsharedpointer_impl.h:在“QtSharedPointer::ExternalRefCount”的实例化中:/usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:441:从“QSharedPointer”实例化../../.. /../QSsh-master/src/libs/ssh/sftpchannel.cpp:162:从这里实例化/usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:405:警告:降低'QSharedPointer QtSharedPointer的可见性::copyAndSetPointer(X*, const QSharedPointer&) [with X = X, Y = Y, T = QSsh::Internal::SftpListDir]' 以匹配其类型 /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl。 h:在 ' 的实例化中QtSharedPointer::ExternalRefCount': /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:441: 从'QSharedPointer' ../../../../QSsh-master/src/libs/ 实例化ssh/sftpchannel.cpp:168:从此处实例化 /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:405:警告:降低 'QSharedPointer QtSharedPointer::copyAndSetPointer(X*, const QSharedPointer&) 的可见性 [with X = X,Y = Y,T = QSsh::Internal::SftpMakeDir]' 以匹配其类型 /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:在 'QtSharedPointer::ExternalRefCount' 的实例化中: /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:441:从 'QSharedPointer' ../../../../QSsh-master/src/libs/ssh/sftpchannel.cpp 实例化: 174:从这里实例化/usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:405:警告:降低 'QSharedPointer QtSharedPointer::copyAndSetPointer(X*, const QSharedPointer&) [with X = X, Y = Y, T = QSsh::Internal::SftpRmDir]' 的可见性以匹配其类型 /usr/local/qt463/ qt/include/QtCore/qsharedpointer_impl.h:在“QtSharedPointer::ExternalRefCount”的实例化中:/usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:441:从“QSharedPointer”实例化../../ ../../QSsh-master/src/libs/ssh/sftpchannel.cpp:180:从这里实例化/usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:405:警告:降低'的可见性QSharedPointer QtSharedPointer::copyAndSetPointer(X*, const QSharedPointer&) [with X = X, Y = Y, T = QSsh::Internal::SftpRm]' 匹配其类型 /usr/local/qt463/qt/include/QtCore/ qsharedpointer_impl.h:在 'QtSharedPointer:: 的实例化中ExternalRefCount':/usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:441:从'QSharedPointer'实例化../../../../QSsh-master/src/libs/ssh/sftpchannel .cpp:187:从此处实例化 /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:405:警告:降低 'QSharedPointer QtSharedPointer::copyAndSetPointer(X*, const QSharedPointer&) 的可见性 [with X = X , Y = Y, T = QSsh::Internal::SftpRename]' 以匹配其类型 /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h: 在 'QtSharedPointer::ExternalRefCount' 的实例化中: /usr/ local/qt463/qt/include/QtCore/qsharedpointer_impl.h:441:从“QSharedPointer”实例化../../../../QSsh-master/src/libs/ssh/sftpchannel.cpp:193:实例化从这里/usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:405:警告:降低 'QSharedPointer QtSharedPointer::copyAndSetPointer(X*, const QSharedPointer&) [with X = X, Y = Y, T = QSsh::Internal::SftpCreateLink]' 的可见性以匹配其类型 /usr/local/qt463/qt/ include/QtCore/qsharedpointer_impl.h:在“QtSharedPointer::ExternalRefCount”的实例化中:/usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:441:从“QSharedPointer”实例化../../.. /../QSsh-master/src/libs/ssh/sftpchannel.cpp:199:从这里实例化/usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:405:警告:降低'QSharedPointer QtSharedPointer的可见性::copyAndSetPointer(X*, const QSharedPointer&) [with X = X, Y = Y, T = QSsh::Internal::SftpCreateFile]' 以匹配其类型 /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl。 h:在 'QtSharedPointer 的实例化中::ExternalRefCount': /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:441: 从'QSharedPointer' ../../../../QSsh-master/src/libs/ssh/ 实例化sftpchannel.cpp:209:从此处实例化 /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:405:警告:降低 'QSharedPointer QtSharedPointer::copyAndSetPointer(X*, const QSharedPointer&) [with X = X, Y = Y, T = QSsh::Internal::SftpUploadFile]' 以匹配其类型 /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:在 'QtSharedPointer::ExternalRefCount' 的实例化中:/usr /local/qt463/qt/include/QtCore/qsharedpointer_impl.h:441:从'QSharedPointer'实例化../../../../QSsh-master/src/libs/ssh/sftpchannel.cpp:217:从这里/usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:405 实例化:警告:降低 'QSharedPointer QtSharedPointer::copyAndSetPointer(X*, const QSharedPointer&) [with X = X, Y = Y, T = QSsh::Internal::SftpDownload]' 的可见性以匹配其类型 /usr/local/qt463/qt/ include/QtCore/qsharedpointer_impl.h:在“QtSharedPointer::ExternalRefCount”的实例化中:/usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:441:从“QSharedPointer”实例化../../.. /../QSsh-master/src/libs/ssh/sftpchannel.cpp:402:从这里实例化/usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:405:警告:降低'QSharedPointer QtSharedPointer的可见性::copyAndSetPointer(X*, const QSharedPointer&) [with X = X, Y = Y, T = QSsh::Internal::AbstractSftpOperationWithHandle]' 以匹配其类型 /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl。 h:在 ' 的实例化中QtSharedPointer::ExternalRefCount': /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:441: 从'QSharedPointer' ../../../../QSsh-master/src/libs/ 实例化ssh/sftpchannel.cpp:459:从此处实例化 /usr/local/qt463/qt/include/QtCore/qsharedpointer_impl.h:405:警告:降低 'QSharedPointer QtSharedPointer::copyAndSetPointer(X*, const QSharedPointer&) 的可见性 [with X = X, Y = Y, T = QSsh::Internal::AbstractSftpTransfer]' 以匹配其类型 /usr/local/qt463/qt/include/QtCore/qmap.h:在函数 'bool qMapLessThanKey(const Key&, const Key&) [with Key = QSharedPointer]': /usr/local/qt463/qt/include/QtCore/qmap.h:701: 从'typename QMap::iterator QMap::erase(QMap::iterator) [with Key = QSharedPointer, T = QSsh::Internal::SftpUploadDir::Dir]' ../../../../QSsh-master/src/libs/ssh/sftpchannel.cpp:575:从这里实例化 /usr/local/qt463/qt/include/QtCore/qmap.h:107:错误:'operator<' in '不匹配key1 < key2' /usr/local/qt463/qt/include/QtCore/qchar.h:385:注意:候选者是:bool operator<(QChar, QChar) /usr/local/qt463/qt/include/QtCore/qbytearray .h:520: 注意:布尔运算符<(const QByteArray&, const QByteArray&) /usr/local/qt463/qt/include/QtCore/qbytearray.h:522: 注意:布尔运算符<(const QByteArray&, const char*) / usr/local/qt463/qt/include/QtCore/qbytearray.h:524: 注意: bool operator<(const char*, const QByteArray&) /usr/local/qt463/qt/include/QtCore/qstring.h:927:注意:布尔运算符<(const char*, const QString&) /usr/local/qt463/qt/include/QtCore/qstring.h:940:注意:bool 运算符<(const char*,const QLatin1String&)/usr/local/qt463/qt/include/QtCore/qstring.h:953:注意:bool 运算符<(const QLatin1String&,const QLatin1String&)/usr/local /qt463/qt/include/QtCore/qstring.h:1181: 注意: bool operator<(const QStringRef&, const QStringRef&) /usr/local/qt463/qt/include/QtCore/qmap.h: 在函数'bool qMapLessThanKey( const Key&, const Key&) [with Key = QSharedPointer]': /usr/local/qt463/qt/include/QtCore/qmap.h:646: 从'int QMap::remove(const Key&) [with Key = QSharedPointer , T = QSsh::Internal::SftpDownloadDir::Dir]' ../../../../QSsh-master/src/libs/ssh/sftpchannel.cpp:623: 从这里实例化 /usr/local /qt463/qt/include/QtCore/qmap.h:107: 错误: 'operator< 不匹配' in 'key1 < key2' /usr/local/qt463/qt/include/QtCore/qchar.h:385: 注意:候选者是:bool operator<(QChar, QChar) /usr/local/qt463/qt/include/ QtCore/qbytearray.h:520: 注意: bool operator<(const QByteArray&, const QByteArray&) /usr/local/qt463/qt/include/QtCore/qbytearray.h:522: 注意: bool operator<(const QByteArray&, const char *) /usr/local/qt463/qt/include/QtCore/qbytearray.h:524: 注意:bool operator<(const char*, const QByteArray&) /usr/local/qt463/qt/include/QtCore/qstring.h :927: 注意: bool operator<(const char*, const QString&) /usr/local/qt463/qt/include/QtCore/qstring.h:940: 注意: bool operator<(const char*, const QLatin1String&) /usr /local/qt463/qt/include/QtCore/qstring.h:953:注意:bool operator<(const QStringRef&, const QStringRef&) /usr/local/qt463/qt/include/QtCore/qstring.h:1181: 注意: bool operator<(const QStringRef&, const QStringRef&) make[3]: 离开目录/local_home/root/workspace/SecureUploader/qssh-build-desktop/src/libs/ssh' make[3]: *** [.obj/debug-shared/sftpchannel.o] Error 1 make[2]: Leaving directory/local_home/root/workspace/SecureUploader/qssh-build-desktop/src/libs' make[2]: * [sub-ssh-make_default-ordered] 错误 2 make[1]: 离开目录/local_home/root/workspace/SecureUploader/qssh-build-desktop/src' make[1]: *** [sub-libs-make_default-ordered] Error 2 make: Leaving directory/local_home/root/workspace/ SecureUploader/qssh-build-desktop' make: * [sub-src-make_default-ordered] 错误 2 进程“/usr/bin/make”以代码 %2 退出。构建项目 qssh 时出错(目标:桌面)

请让我知道如何解决它

4

0 回答 0