Skip to main content

build _QT.sh

3 replies [Last post]
roland_k81
Offline
Joined: 2007-09-07

hi I'm trying to build QT....This are the steps:
I'm following this guide:
http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatforms...
..and I get this error:
... virtual functions but non-virtual destructor
/home/user/qt-2.3.10/include/qxml.h:462: warning: ‘class QXmlDeclHandler’ has virtual functions but non-virtual destructor
/home/user/qt-2.3.10/include/qwindowsystem_qws.h:221: warning: ‘class QWSServer::KeyboardFilter’ has virtual functions but non-virtual destructor
/home/user/qt-2.3.10/include/qwindowsystem_qws.h:230: error: ‘QWSInputMethod’ has not been declared
/home/user/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 `/home/user/qt-2.3.10/src'
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory `/home/user/qt-2.3.10'
make: *** [init] Error 2
user@Ubuntu-user:~$

thank you

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Hinkmond Wong

Hi Roland,

Looks like your gcc is not the right version.

Are you using gcc 4.x on your Ubuntu system? Can you use gcc 3.x instead?

(Also, if you are trying to compile Qt for a target device, make sure
you are picking up the cross-compiling target device gcc such as
arm-linux-g++ instead of your host platform g++)

phonemeadvanced@mobileandembedded.org wrote:
> hi I'm trying to build QT....This are the steps:
> I'm following this guide:
> http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatforms...
> ..and I get this error:
> ... virtual functions but non-virtual destructor
> /home/user/qt-2.3.10/include/qxml.h:462: warning: ‘class QXmlDeclHandler’ has virtual functions but non-virtual destructor
> /home/user/qt-2.3.10/include/qwindowsystem_qws.h:221: warning: ‘class QWSServer::KeyboardFilter’ has virtual functions but non-virtual destructor
> /home/user/qt-2.3.10/include/qwindowsystem_qws.h:230: error: ‘QWSInputMethod’ has not been declared
> /home/user/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 `/home/user/qt-2.3.10/src'
> make[1]: *** [sub-src] Error 2
> make[1]: Leaving directory `/home/user/qt-2.3.10'
> make: *** [init] Error 2
> user@Ubuntu-user:~$
>
>

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

roland_k81
Offline
Joined: 2007-09-07

hi and thanks for your help,
finally i successfully built qt-2.3.10 using a cross compiler.
I've crated a link in /usr/bin directory for arm-linux-g++ and arm-linux-gcc executables: is there a way to specify an environment variable?

Hinkmond Wong

Hi Roland,

phonemeadvanced@mobileandembedded.org wrote:
> hi and thanks for your help,
> finally i successfully built qt-2.3.10 using a cross compiler.
> I've crated a link in /usr/bin directory for arm-linux-g++ and arm-linux-gcc executables: is there a way to specify an environment variable?

Did you try using CVM_TARGET_TOOLS_PREFIX=...

Ex.
make CVM_TARGET_TOOLS_PREFIX=/usr/local/bin/arm-linux- ...

See this explanation from Chris (last part of this reply on a different
thread):
http://forums.java.net/jive/message.jspa?messageID=183611#183611

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net