hi,
I was trying to install Qt4.2 in Linux.Icame accross many Problems.i 'm giving the errors i got while installing.Hope some body can help me.
Plzzzzz Help
[root@localhost qt-x11-eval-src-4.2.0]# gmake
cd src && gmake -f Makefile
gmake[1]: Entering directory `/home/nimmyj/qt-x11-eval-src-4.2.0/src'
cd tools/moc && gmake -f Makefile
gmake[2]: Entering directory `/home/nimmyj/qt-x11-eval-src-4.2.0/src/tools/moc'
g++ -c -pipe -O2 -Wall -W -DQT_BOOTSTRAPPED -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_LIBRARY -DQT_NO_STL -DQT_NO_COMPRESS -DQT_NO_DATASTREAM -DQT_NO_TEXTSTREAM -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_THREAD -DQT_NO_REGEXP
-DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -I../../../mkspecs/linux-g++ -I. -I../../corelib/arch/generic -I/include -I. -I/include/QtCore -I. -o ./moc.o moc.cpp
In file included from moc.h:25,
from moc.cpp:22:
parser.h:25:18: QStack: No such file or directory
In file included from parser.h:26,
from moc.h:25,
from moc.cpp:22:
symbols.h:26:19: QString: No such file or directory
symbols.h:27:17: QHash: No such file or directory
symbols.h:28:19: QVector: No such file or directory
symbols.h:29:18: QDebug: No such file or directory
In file included from parser.h:26,
from moc.h:25,
from moc.cpp:22:
symbols.h:36: parse error before `&' token
symbols.h:36: missing ';' before right brace
symbols.h: In constructor `SubArray::SubArray()':
symbols.h:35: class `SubArray' does not have any field named `from'
symbols.h:35: class `SubArray' does not have any field named `len'
symbols.h: At global scope:
symbols.h:37: warning: `inline' is not at beginning of declaration
symbols.h:37: ISO C++ forbids defining types within return type
symbols.h:37: semicolon missing after declaration of `struct SubArray'
symbols.h: In function `int SubArray(const char*)':
symbols.h:37: only constructors take base initializers
symbols.h:37: confused by earlier errors, bailing out
gmake[2]: *** [moc.o] Error 1
gmake[2]: Leaving directory `/home/nimmyj/qt-x11-eval-src-4.2.0/src/tools/moc'
gmake[1]: *** [sub-tools_moc-make_default] Error 2
gmake[1]: Leaving directory `/home/nimmyj/qt-x11-eval-src-4.2.0/src'
gmake: *** [sub-src-make_default-ordered] Error 2
[root@localhost qt-x11-eval-src-4.2.0]# cd /usr/
[root@localhost usr]# ls
bin etc include lib local share tmp
dict games kerberos libexec sbin src X11R6
[root@localhost usr]# cd local/
[root@localhost local]# ls
bin etc games include lib libexec sbin share src Trolltech
[root@localhost local]# cd Trolltech/
[root@localhost Trolltech]# ls
Qt-4.2.0 Qt-4.2.2
[root@localhost Trolltech]# cd ../..
[root@localhost usr]# ls
bin etc include lib local share tmp
dict games kerberos libexec sbin src X11R6
[root@localhost usr]# cd ..
[root@localhost /]# cd /home/nimmyj/qt-x11-eval-src-4.2.0/
[root@localhost qt-x11-eval-src-4.2.0]# ls
bin configure include Makefile README
changes-4.2.0 demos INSTALL mkspecs src
config.status doc lib projects.pro tools
config.tests examples LICENSE qmake translations
[root@localhost qt-x11-eval-src-4.2.0]# gmake install
cd src && gmake -f Makefile install
gmake[1]: Entering directory `/home/nimmyj/qt-x11-eval-src-4.2.0/src'
cd tools/moc && gmake -f Makefile install
gmake[2]: Entering directory `/home/nimmyj/qt-x11-eval-src-4.2.0/src/tools/moc'
g++ -c -pipe -O2 -Wall -W -DQT_BOOTSTRAPPED -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_LIBRARY -DQT_NO_STL -DQT_NO_COMPRESS -DQT_NO_DATASTREAM -DQT_NO_TEXTSTREAM -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_THREAD -DQT_NO_REGEXP
-DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -I../../../mkspecs/linux-g++ -I. -I../../corelib/arch/generic -I/include -I. -I/include/QtCore -I. -o ./moc.o moc.cpp
In file included from moc.h:25,
from moc.cpp:22:
parser.h:25:18: QStack: No such file or directory
In file included from parser.h:26,
from moc.h:25,
from moc.cpp:22:
symbols.h:26:19: QString: No such file or directory
symbols.h:27:17: QHash: No such file or directory
symbols.h:28:19: QVector: No such file or directory
symbols.h:29:18: QDebug: No such file or directory
In file included from parser.h:26,
from moc.h:25,
from moc.cpp:22:
symbols.h:36: parse error before `&' token
symbols.h:36: missing ';' before right brace
symbols.h: In constructor `SubArray::SubArray()':
symbols.h:35: class `SubArray' does not have any field named `from'
symbols.h:35: class `SubArray' does not have any field named `len'
symbols.h: At global scope:
symbols.h:37: warning: `inline' is not at beginning of declaration
symbols.h:37: ISO C++ forbids defining types within return type
symbols.h:37: semicolon missing after declaration of `struct SubArray'
symbols.h: In function `int SubArray(const char*)':
symbols.h:37: only constructors take base initializers
symbols.h:37: confused by earlier errors, bailing out
gmake[2]: *** [moc.o] Error 1
gmake[2]: Leaving directory `/home/nimmyj/qt-x11-eval-src-4.2.0/src/tools/moc'
gmake[1]: *** [sub-tools_moc-install_subtargets] Error 2
gmake[1]: Leaving directory `/home/nimmyj/qt-x11-eval-src-4.2.0/src'
gmake: *** [sub-src-install_subtargets-ordered] Error 2
[root@localhost qt-x11-eval-src-4.2.0]# cd /usr/local/Trolltech/Qt-4.2.0/
[root@localhost Qt-4.2.0]# ls
lib
[root@localhost Qt-4.2.0]# cd lib/
[root@localhost lib]# ls




Reply With Quote


Bookmarks