|
发表于 2005-3-1 14:38:58
|
显示全部楼层
[quote:6f8a9d6196="yunfan"][quote:6f8a9d6196="gugong"][quote:6f8a9d6196="yunfan"][quote:6f8a9d6196="gugong"][code:1]depmode=gcc3 /bin/sh ../../admin/depcomp \
/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/libeva -I/usr/include/kde -I/usr/lib/qt-3.1/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -O2 -g -pipe -march=i386 -mcpu=i686 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o evasetting.lo `test -f 'evasetting.cpp' || echo './'`evasetting.cpp
evasetting.cpp: In member function `bool EvaSetting::saveSetting(int, const
char*, bool, bool, int, unsigned int, short unsigned int, QString,
QCString)':
evasetting.cpp:107: no matching function for call to `QFile::errorString()'
make[3]: *** [evasetting.lo] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/eva-0.2.0.20050301/src/api'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/eva-0.2.0.20050301/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/eva-0.2.0.20050301'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.63390 (%build)
[/code:1][/quote]
我猜测是qt版本不同所致,这个方法是Qt本身的方法。
你可以把evasetting.cpp 的 107 行 改为
QString msg = "file open error";
然后再重新编译试一下。[/quote]
改了,现在[code:1]depfile='.deps/evasocket.Plo' tmpdepfile='.deps/evasocket.TPlo' \
depmode=gcc3 /bin/sh ../../admin/depcomp \
/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/libeva -I/usr/include/kde -I/usr/lib/qt-3.1/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -O2 -g -pipe -march=i386 -mcpu=i686 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o evasocket.lo `test -f 'evasocket.cpp' || echo './'`evasocket.cpp
evasocket.cpp: In member function `void EvaHttpProxy::parseData(int)':
evasocket.cpp:265: no matching function for call to `QString::startsWith(const
char[8], bool)'
/usr/lib/qt-3.1/include/qstring.h:640: candidates are: bool
QString::startsWith(const QString&) const
make[3]: *** [evasocket.lo] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/eva-0.2.0.20050301/src/api'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/eva-0.2.0.20050301/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/eva-0.2.0.20050301'
make: *** [all] Error 2
[/code:1]
注明:我的环境是 rhel as 3.0[/quote]
我没有用过rhel as 3.0. 不过好像你的Qt比较老啊,
尝试一下,你把evasocket.cpp:265 改为
if(replyBuffer.startsWith("HTTP/1.")){
再试试看[/quote]
[code:1]source='evaservers.cpp' object='evaservers.lo' libtool=yes \
depfile='.deps/evaservers.Plo' tmpdepfile='.deps/evaservers.TPlo' \
depmode=gcc3 /bin/sh ../../admin/depcomp \
/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/libeva -I/usr/include/kde -I/usr/lib/qt-3.1/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -O2 -g -pipe -march=i386 -mcpu=i686 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o evaservers.lo `test -f 'evaservers.cpp' || echo './'`evaservers.cpp
evaservers.cpp: In member function `void EvaServers::fetchAddress(bool)':
evaservers.cpp:67: call of overloaded `QHostAddress(QString&)' is ambiguous
/usr/lib/qt-3.1/include/qhostaddress.h:59: candidates are:
QHostAddress::QHostAddress(Q_UINT8*) <near match>
/usr/lib/qt-3.1/include/qhostaddress.h:58:
QHostAddress::QHostAddress(unsigned int) <near match>
evaservers.cpp: In member function `void EvaServers::defaultAddress()':
evaservers.cpp:138: call of overloaded `QHostAddress(const char[14])' is
ambiguous
/usr/lib/qt-3.1/include/qhostaddress.h:60: candidates are:
QHostAddress::QHostAddress(const QHostAddress&) <near match>
/usr/lib/qt-3.1/include/qhostaddress.h:59:
QHostAddress::QHostAddress(Q_UINT8*) <near match>
/usr/lib/qt-3.1/include/qhostaddress.h:58:
QHostAddress::QHostAddress(unsigned int) <near match>
evaservers.cpp:140: call of overloaded `QHostAddress(const char[14])' is
ambiguous
/usr/lib/qt-3.1/include/qhostaddress.h:60: candidates are:
QHostAddress::QHostAddress(const QHostAddress&) <near match>
/usr/lib/qt-3.1/include/qhostaddress.h:59:
QHostAddress::QHostAddress(Q_UINT8*) <near match>
/usr/lib/qt-3.1/include/qhostaddress.h:58:
QHostAddress::QHostAddress(unsigned int) <near match>
make[3]: *** [evaservers.lo] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/eva-0.2.0.20050301/src/api'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/eva-0.2.0.20050301/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/eva-0.2.0.20050301'
make: *** [all] Error 2
[/code:1]
唉,看样子,俺没这个福气 |
|