Results 1 to 6 of 6

Thread: Qt/Embedded Installation error during make

  1. #1
    Join Date
    Jan 2006
    Posts
    80
    Thanks
    1
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Qt/Embedded Installation error during make

    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.
    Qt Code:
    1. make[1]: Entering directory `/root/qt-2.3.2'
    2. cd src/moc; make
    3. make[2]: Entering directory `/root/qt-2.3.2/src/moc'
    4. 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
    5. /root/qt-2.3.2/include/qdatetime.h:51: warning: _$(B!F_(Bclass QDate_$(B!G_(B has virtual functions but non-virtual destructor
    6. y.tab.c: In function _$(B!F_(Bint yyparse()_$(B!G_(B:
    7. y.tab.c:3102: warning: suggest parentheses around assignment used as truth value
    8. y.tab.c:3150: warning: label _$(B!F_(Byyerrlab_$(B!G_(B defined but not used
    9. y.tab.c:3145: warning: label _$(B!F_(Byynewerror_$(B!G_(B defined but not used
    10. mocgen.cpp: At global scope:
    11. mocgen.cpp:3: warning: _$(B!F_(Byysccsid_$(B!G_(B defined but not used
    12. 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
    13. 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
    14. 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
    15. 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
    16.  
    17. .
    18. .
    19. .
    20. .
    21. .
    22. .
    23.  
    24. 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
    25. 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
    26. 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
    27. /root/qt-2.3.2/include/qdatetime.h:51: warning: _$(B!F_(Bclass QDate_$(B!G_(B has virtual functions but non-virtual destructor
    28. /root/qt-2.3.2/include/qjpunicode.h:90: warning: _$(B!F_(Bclass QJpUnicodeConv_$(B!G_(B has virtual functions but non-virtual destructor
    29. kernel/qpsprinter.cpp: In member function _$(B!F_(BUSHORT QPSPrinterFontTTF::unicode_for_glyph(int)_$(B!G_(B:
    30. kernel/qpsprinter.cpp:3328: warning: _$(B!F_(Boffset_$(B!G_(B may be used uninitialized in this function
    31. /root/qt-2.3.2/bin/moc kernel/qthread_unix.cpp -o kernel/qthread_unix.moc
    32. /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
    33. make[2]: *** [kernel/qthread_unix.moc] Error 127
    34. make[2]: Leaving directory `/root/qt-2.3.2/src'
    35. make[1]: *** [sub-src] Error 2
    36. make[1]: Leaving directory `/root/qt-2.3.2'
    37. make: *** [init] Error 2
    To copy to clipboard, switch view to plain text mode 
    Help me to rectify the following error.

    Thanks in advance...

    mahe2310
    Last edited by mahe2310; 21st February 2006 at 07:52. Reason: correction

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt/Embedded Installation error during make

    Looks like you don't have the libstdc++ installed.

  3. #3
    Join Date
    Jan 2006
    Posts
    80
    Thanks
    1
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Qt/Embedded Installation error during make

    Quote Originally Posted by jacek
    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...

  4. #4
    Join Date
    Jan 2006
    Posts
    80
    Thanks
    1
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Qt/Embedded Installation error during make

    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...
    Last edited by jacek; 6th September 2006 at 15:15. Reason: changed [ code ] to [ quote ] to allow wrapping

  5. #5
    Join Date
    Jul 2006
    Posts
    12
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: Qt/Embedded Installation error during make

    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.

  6. #6
    Join Date
    Jul 2006
    Posts
    12
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: Qt/Embedded Installation error during make

    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.

Similar Threads

  1. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 06:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.