도와주세요!!
글 수 15,339
2009.06.26 07:06:48 (*.110.136.127)
12817
make[1]: Entering directory `/qt/qtx'
cd src/moc; make
make[2]: Entering directory `/qt/qtx/src/moc'
make[2]: `all'를 위해 할 일이 없습니다
make[2]: Leaving directory `/qt/qtx/src/moc'
rm -f bin/moc
cp src/moc/moc bin/moc
make -f src-mt.mk
make[2]: Entering directory `/qt/qtx'
(not building threaded Qt)
make[2]: Leaving directory `/qt/qtx'
cd src; make
make[2]: Entering directory `/qt/qtx/src'
g++ -c -I/usr/X11R6/include -I/qt/qtx/include -I/usr/X11R6/include -pipe -O2 -Wall -W -fPIC -DQT_BUILTIN_GIF_READER=0 -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_MNG -DQT_NO_SM_SUPPORT -DQT_XFT -I/qt/qtx/src/3rdparty/zlib -I/qt/qtx/src/3rdparty/libpng -o xml/qxml.o xml/qxml.cpp
xml/qxml.h:214: warning: ‘class QXmlReader’ has virtual functions but non-virtual destructor
xml/qxml.h:402: warning: ‘class QXmlContentHandler’ has virtual functions but non-virtual destructor
xml/qxml.h:419: warning: ‘class QXmlErrorHandler’ has virtual functions but non-virtual destructor
xml/qxml.h:428: warning: ‘class QXmlDTDHandler’ has virtual functions but non-virtual destructor
xml/qxml.h:436: warning: ‘class QXmlEntityResolver’ has virtual functions but non-virtual destructor
xml/qxml.h:443: warning: ‘class QXmlLexicalHandler’ has virtual functions but non-virtual destructor
xml/qxml.h:456: warning: ‘class QXmlDeclHandler’ has virtual functions but non-virtual destructor
xml/qxml.cpp:1518: warning: unused parameter ‘ret’
/qt/qtx/include/qvaluestack.h: In member function ‘T QValueStack<T>::pop() [with T = QMap<QString, QString>]’:
xml/qxml.cpp:513: instantiated from here
/qt/qtx/include/qvaluestack.h:57: error: cannot convert ‘QValueListIterator<QMap<QString, QString> >’ to ‘const char*’ for argument ‘1’ to ‘int remove(const char*)’
/qt/qtx/include/qvaluestack.h: In member function ‘T QValueStack<T>::pop() [with T = QString]’:
xml/qxml.cpp:2502: instantiated from here
/qt/qtx/include/qvaluestack.h:57: error: cannot convert ‘QValueListIterator<QString>’ to ‘const char*’ for argument ‘1’ to ‘int remove(const char*)’
make[2]: *** [xml/qxml.o] 오류 1
make[2]: Leaving directory `/qt/qtx/src'
make[1]: *** [sub-src] 오류 2
make[1]: Leaving directory `/qt/qtx'
make: *** [init] 오류 2
cd src/moc; make
make[2]: Entering directory `/qt/qtx/src/moc'
make[2]: `all'를 위해 할 일이 없습니다
make[2]: Leaving directory `/qt/qtx/src/moc'
rm -f bin/moc
cp src/moc/moc bin/moc
make -f src-mt.mk
make[2]: Entering directory `/qt/qtx'
(not building threaded Qt)
make[2]: Leaving directory `/qt/qtx'
cd src; make
make[2]: Entering directory `/qt/qtx/src'
g++ -c -I/usr/X11R6/include -I/qt/qtx/include -I/usr/X11R6/include -pipe -O2 -Wall -W -fPIC -DQT_BUILTIN_GIF_READER=0 -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_MNG -DQT_NO_SM_SUPPORT -DQT_XFT -I/qt/qtx/src/3rdparty/zlib -I/qt/qtx/src/3rdparty/libpng -o xml/qxml.o xml/qxml.cpp
xml/qxml.h:214: warning: ‘class QXmlReader’ has virtual functions but non-virtual destructor
xml/qxml.h:402: warning: ‘class QXmlContentHandler’ has virtual functions but non-virtual destructor
xml/qxml.h:419: warning: ‘class QXmlErrorHandler’ has virtual functions but non-virtual destructor
xml/qxml.h:428: warning: ‘class QXmlDTDHandler’ has virtual functions but non-virtual destructor
xml/qxml.h:436: warning: ‘class QXmlEntityResolver’ has virtual functions but non-virtual destructor
xml/qxml.h:443: warning: ‘class QXmlLexicalHandler’ has virtual functions but non-virtual destructor
xml/qxml.h:456: warning: ‘class QXmlDeclHandler’ has virtual functions but non-virtual destructor
xml/qxml.cpp:1518: warning: unused parameter ‘ret’
/qt/qtx/include/qvaluestack.h: In member function ‘T QValueStack<T>::pop() [with T = QMap<QString, QString>]’:
xml/qxml.cpp:513: instantiated from here
/qt/qtx/include/qvaluestack.h:57: error: cannot convert ‘QValueListIterator<QMap<QString, QString> >’ to ‘const char*’ for argument ‘1’ to ‘int remove(const char*)’
/qt/qtx/include/qvaluestack.h: In member function ‘T QValueStack<T>::pop() [with T = QString]’:
xml/qxml.cpp:2502: instantiated from here
/qt/qtx/include/qvaluestack.h:57: error: cannot convert ‘QValueListIterator<QString>’ to ‘const char*’ for argument ‘1’ to ‘int remove(const char*)’
make[2]: *** [xml/qxml.o] 오류 1
make[2]: Leaving directory `/qt/qtx/src'
make[1]: *** [sub-src] 오류 2
make[1]: Leaving directory `/qt/qtx'
make: *** [init] 오류 2
메이크 과정에서 이와 같은 오류가 발생하는데 무엇이 안되어서 설치가 안돼는 건지 궁금합니다
2009.06.26 16:00:11 (*.110.136.127)
인터넷 검색으로 찾아낸 내용으로 해결하였습니다 (첨부)
이 에러가 발생하는 이유는 qt 버전은 낮고 q++ 버전이 높기 때문인데, q++이 버전업하면서 문법체크가 엄격해 졌기 때문이라고 합니다. 이럴 때에는 qt-x11-2.3.2의 파일 중에 아래의 내용을 수정한 후 다시 설치하면 해결됩니다.
]# vi src/tools/qvaluestack.h
class Q_EXPORT QValueStack : public QValueList { public: QValueStack() {} ~QValueStack() {} void push( const T& d ) { append(d); } T pop() { T elem( this->last() ); if ( !this->isEmpty() ) this->remove( this->fromLast() ); // this-> 를 추가합니다. return elem; } T& top() { return this->last(); } const T& top() const { return this->last(); }[출처] QT/X11 설치 에러1|작성자 숭구리
인터넷 검색으로 찾아낸 내용으로 해결하였습니다 (첨부)
이 에러가 발생하는 이유는 qt 버전은 낮고 q++ 버전이 높기 때문인데, q++이 버전업하면서 문법체크가 엄격해 졌기 때문이라고 합니다. 이럴 때에는 qt-x11-2.3.2의 파일 중에 아래의 내용을 수정한 후 다시 설치하면 해결됩니다.
]# vi src/tools/qvaluestack.h