PDA

View Full Version : Qt/Embedded Installation error during make



mahe2310
21st February 2006, 07:50
Downloaded the following files….
qt-embedded-2.3.10-eval.tar.gz
qt-x11-eval-2.3.2.tar.gz
We performed the operations specified in the doc/html/install-qws.html

1. tar -xzf tmake-1.13.tar.gz
2. export TMAKEDIR=$PWD/tmake-1.13
3. tar -xzf qt-x11-2.3.2-commercial.tar.gz
4. export QT2DIR=$PWD/qt-2.3.2
5. tar -xzf qt-embedded-2.3.10-commercial.tar.gz
6. export QTEDIR=$PWD/qt-2.3.10
7. cd $QT2DIR
8. export TMAKEPATH=$TMAKEDIR/lib/linux-g++
9. export QTDIR=$QT2DIR
10. export PATH=$QTDIR/bin:$PATH
11. export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
12. ./configure -no-xft
13. make

But during make operation, the following occurred.


make[1]: Entering directory `/root/qt-2.3.2'
cd src/moc; make
make[2]: Entering directory `/root/qt-2.3.2/src/moc'
g++ -c -I/root/qt-2.3.2/include -Wno-unused -Wno-parentheses -pipe -O2 -Wall -W -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o mocgen.o mocgen.cpp
/root/qt-2.3.2/include/qdatetime.h:51: warning: _$(B!F_(Bclass QDate_$(B!G_(B has virtual functions but non-virtual destructor
y.tab.c: In function _$(B!F_(Bint yyparse()_$(B!G_(B:
y.tab.c:3102: warning: suggest parentheses around assignment used as truth value
y.tab.c:3150: warning: label _$(B!F_(Byyerrlab_$(B!G_(B defined but not used
y.tab.c:3145: warning: label _$(B!F_(Byynewerror_$(B!G_(B defined but not used
mocgen.cpp: At global scope:
mocgen.cpp:3: warning: _$(B!F_(Byysccsid_$(B!G_(B defined but not used
g++ -c -I/root/qt-2.3.2/include -Wno-unused -Wno-parentheses -pipe -O2 -Wall -W -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qbuffer.o ../tools/qbuffer.cpp
g++ -c -I/root/qt-2.3.2/include -Wno-unused -Wno-parentheses -pipe -O2 -Wall -W -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qcollection.o ../tools/qcollection.cpp
g++ -c -I/root/qt-2.3.2/include -Wno-unused -Wno-parentheses -pipe -O2 -Wall -W -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qcstring.o ../tools/qcstring.cpp
g++ -c -I/root/qt-2.3.2/include -Wno-unused -Wno-parentheses -pipe -O2 -Wall -W -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qdatastream.o ../tools/qdatastream.cpp

.
.
.
.
.
.

g++ -c -I/usr/X11R6/include -I/root/qt-2.3.2/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_XKB -I/root/qt-2.3.2/src/3rdparty/zlib -I/root/qt-2.3.2/src/3rdparty/libpng -o tools/qtsciicodec.o tools/qtsciicodec.cpp
g++ -c -I/usr/X11R6/include -I/root/qt-2.3.2/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_XKB -I/root/qt-2.3.2/src/3rdparty/zlib -I/root/qt-2.3.2/src/3rdparty/libpng -o tools/qutfcodec.o tools/qutfcodec.cpp
g++ -c -I/usr/X11R6/include -I/root/qt-2.3.2/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_XKB -I/root/qt-2.3.2/src/3rdparty/zlib -I/root/qt-2.3.2/src/3rdparty/libpng -o kernel/qpsprinter.o kernel/qpsprinter.cpp
/root/qt-2.3.2/include/qdatetime.h:51: warning: _$(B!F_(Bclass QDate_$(B!G_(B has virtual functions but non-virtual destructor
/root/qt-2.3.2/include/qjpunicode.h:90: warning: _$(B!F_(Bclass QJpUnicodeConv_$(B!G_(B has virtual functions but non-virtual destructor
kernel/qpsprinter.cpp: In member function _$(B!F_(BUSHORT QPSPrinterFontTTF::unicode_for_glyph(int)_$(B!G_(B :
kernel/qpsprinter.cpp:3328: warning: _$(B!F_(Boffset_$(B!G_(B may be used uninitialized in this function
/root/qt-2.3.2/bin/moc kernel/qthread_unix.cpp -o kernel/qthread_unix.moc
/root/qt-2.3.2/bin/moc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
make[2]: *** [kernel/qthread_unix.moc] Error 127
make[2]: Leaving directory `/root/qt-2.3.2/src'
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory `/root/qt-2.3.2'
make: *** [init] Error 2

Help me to rectify the following error.

Thanks in advance...

mahe2310

jacek
21st February 2006, 13:38
Looks like you don't have the libstdc++ installed.

mahe2310
22nd February 2006, 08:17
Looks like you don't have the libstdc++ installed.


libstdc++.so.6 is located at /usr/local/lib

I added this path to PATH variable and repeated the test...
But same error exists...

mahe2310
22nd February 2006, 10:30
hi all...

thanks for the reply...
Those comments helped me a lot...

But still i am facing some problems...



Compiling Qt/Embedded
Build Qt 2.3.2
[Completed
Build Qvfb
Completed
Build Qt/Embedded




1. cd $QTEDIR
2. export TMAKEPATH=$TMAKEDIR/lib/qws/linux-x86-g++
3. export QTDIR=$QTEDIR
4. export PATH=$QTDIR/bin:$PATH
5. export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
6. ./configure -no-xft -qvfb -depths 4,8,16,32
7. make
Compiling Qt/Embedded
Build Qt 2.3.2
Completed
Build Qvfb
Completed
Build Qt/Embedded
1. cd $QTEDIR
2. export TMAKEPATH=$TMAKEDIR/lib/qws/linux-x86-g++
3. export QTDIR=$QTEDIR
4. export PATH=$QTDIR/bin:$PATH
5. export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
6. ./configure -no-xft -qvfb -depths 4,8,16,32
7. make


make[1]: Entering directory ‘/root/qt-2.3.10’
cd src/moc; make
make[2]: Entering directory ‘/root/qt-2.3.10/src/moc’
make[2]: Nothing to be done for ‘all’.
make[2]: Leaving directory ‘/root/qt-2.3.10/src/moc’
rm -f bin/moc
cp src/moc/moc bin/moc
make -f src-mt.mk
make[2]: Entering directory ‘/root/qt-2.3.10’
(not building threaded Qt)
make[2]: Leaving directory ‘/root/qt-2.3.10’
cd src; make
make[2]: Entering directory ‘/root/qt-2.3.10/src’
echo ‘#include "kernel/qt.h"‘ >allmoc.cpp
g++ -E -DQT_MOC_CPP -I/root/qt-2.3.10/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -fPIC -DQT_NO_IMAGEIO_MNG -DQT_NO_QWS_SNAP -DQT_NO_QWS_VOODOO3 -DQT_NO_QWS_MACH64 -DQT_NO_QWS_MATROX -DQT_NO_QWS_VNC -DQT_NO_QWS_VGA_16 -DQT_NO_QWS_DEPTH_24 -DQT_BUILTIN_GIF_READER=1 -DQT_NO_IMAGEIO_MNG -DQT_NO_SM_SUPPORT -DQT_NO_XKB -I/root/qt-2.3.10/src/3rdparty/zlib -I/root/qt-2.3.10/src/3rdparty/libpng -I3rdparty/freetype/src -I3rdparty/freetype/include -I3rdparty/freetype/builds/unix -I3rdparty/kernel -I3rdparty/tools >allmoc.h allmoc.cpp
/root/qt-2.3.10/bin/moc -o allmoc.cpp allmoc.h
perl -pi -e ‘s{"allmoc.h"}{"kernel/qt.h"}’ allmoc.cpp
rm allmoc.h
g++ -c -I/root/qt-2.3.10/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -fPIC -DQT_NO_IMAGEIO_MNG -DQT_NO_QWS_SNAP -DQT_NO_QWS_VOODOO3 -DQT_NO_QWS_MACH64 -DQT_NO_QWS_MATROX -DQT_NO_QWS_VNC -DQT_NO_QWS_VGA_16 -DQT_NO_QWS_DEPTH_24 -DQT_BUILTIN_GIF_READER=1 -DQT_NO_IMAGEIO_MNG -DQT_NO_SM_SUPPORT -DQT_NO_XKB -I/root/qt-2.3.10/src/3rdparty/zlib -I/root/qt-2.3.10/src/3rdparty/libpng -I3rdparty/freetype/src -I3rdparty/freetype/include -I3rdparty/freetype/builds/unix -I3rdparty/kernel -I3rdparty/tools -o allmoc.o allmoc.cpp
/root/qt-2.3.10/include/qdatetime.h:51: warning: ‘class QDate’ has virtual functions but non-virtual destructor
/root/qt-2.3.10/include/qjpunicode.h:91: warning: ‘class QJpUnicodeConv’ has virtual functions but non-virtual destructor
/root/qt-2.3.10/include/qasyncimageio.h:48: warning: ‘class QImageConsumer’ has virtual functions but non-virtual destructor
kernel/qnetworkprotocol.h:60: warning: ‘class QNetworkProtocolFactoryBase’ has virtual functions but non-virtual destructor
/root/qt-2.3.10/include/qpolygonscanner.h:48: warning: ‘class QPolygonScanner’ has virtual functions but non-virtual destructor
/root/qt-2.3.10/include/qrangecontrol.h:52: warning: ‘class QRangeControl’ has virtual functions but non-virtual destructor
/root/qt-2.3.10/include/qtooltip.h:87: warning: ‘class QToolTip’ has virtual functions but non-virtual destructor
/root/qt-2.3.10/include/qfiledialog.h:77: warning: ‘class QFilePreview’ has virtual functions but non-virtual destructor
/root/qt-2.3.10/include/qxml.h:220: warning: ‘class QXmlReader’ has virtual functions but non-virtual destructor
/root/qt-2.3.10/include/qxml.h:408: warning: ‘class QXmlContentHandler’ has virtual functions but non-virtual destructor
/root/qt-2.3.10/include/qxml.h:425: warning: ‘class QXmlErrorHandler’ has virtual functions but non-virtual destructor
/root/qt-2.3.10/include/qxml.h:434: warning: ‘class QXmlDTDHandler’ has virtual functions but non-virtual destructor
/root/qt-2.3.10/include/qxml.h:442: warning: ‘class QXmlEntityResolver’ has virtual functions but non-virtual destructor
/root/qt-2.3.10/include/qxml.h:449: warning: ‘class QXmlLexicalHandler’ has virtual functions but non-virtual destructor
/root/qt-2.3.10/include/qxml.h:462: warning: ‘class QXmlDeclHandler’ has virtual functions but non-virtual destructor
/root/qt-2.3.10/include/qwindowsystem_qws.h:221: warning: ‘class QWSServer::KeyboardFilter’ has virtual functions but non-virtual destructor
/root/qt-2.3.10/include/qwindowsystem_qws.h:230: error: ‘QWSInputMethod’ has not been declared
/root/qt-2.3.10/include/qwindowsystem_qws.h:237: error: ‘QWSGestureMethod’ has not been declared
make[2]: *** [allmoc.o] Error 1
make[2]: Leaving directory ‘/root/qt-2.3.10/src’
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory ‘/root/qt-2.3.10’
make: *** [init] Error 2
Wat to do... :(

sliawati
6th September 2006, 12:38
vi /opt/qt-2.3.10/include/qwindowsystem_qws.h
add two following lines
class QWSInputMethod;
class QWSGestureMethod;

please change directory /opt/qtembedded-yourversion/

It works for me.

sliawati
7th September 2006, 05:05
vi /opt/qt-2.3.10/include/qwindowsystem_qws.h
add two following lines
class QWSInputMethod;
class QWSGestureMethod;

please change directory /opt/qtembedded-yourversion/

--- ./qtools/qvaluestack.h~ 2006-03-21 19:28:42.000000000 +0000
+++ ./qtools/qvaluestack.h 2006-03-21 19:28:50.000000000 +0000
@@ -54,7 +54,7 @@
{
T elem( this->last() );
if ( !this->isEmpty() )
- remove( this->fromLast() );
+ this->remove( this->fromLast() );
return elem;

Now I am stuck at
make[4]: Entering directory `/opt/qt-2.3.10/tutorial/t1'
arm-linux-g++ -c -I/opt/qt-2.3.10/include -pipe -DQWS -fno-exceptions -fno-rtti -g -Wall -W -o main.o main.cpp
arm-linux-gcc -L/opt/qt-2.3.10/lib -Wl,-rpath,/opt/qt-2.3.10/lib -o ./t1 main.o -lqte -lm
/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-linux/lib/gcc/arm-linux/4.1.0/../../../../arm-linux/bin/ld: cannot find -lqte
collect2: ld returned 1 exit status
make[4]: *** [t1] Error 1

Please help. TIA.