Important: Please read the Qt Code of Conduct -

Qt 3.2.1 Embedded: Redefinition of ‘const QString& device’ Error

  • I have to compile and use the old version of QT, the qt3.2.1 for embedded systems, for linux.
    I have downloaded it and trying to compile, like it was written in the INSTALL file.
    The problem is now that it is giving the following errors:

    In file included from kernel/qwindowsystem_qws.cpp:39:0:
    ../include/qmouse_qws.h:72:104: error: redefinition of ‘const QString& device’
    ../include/qmouse_qws.h:72:65: error: ‘const QString& device’ previously declared here
    kernel/qwindowsystem_qws.cpp: In member function ‘void QWSServer::openMouse()’:
    kernel/qwindowsystem_qws.cpp:2543:20: warning: unused variable ‘h’ [-Wunused-variable]
    make[2]: *** [.obj/release-shared-emb-x86/qwindowsystem_qws.o] Error 1
    make[2]: Leaving directory /home/user/Projects/QT3.2.1/qt-3.2.1/src' make[1]: *** [sub-src] Error 2 make[1]: Leaving directory/home/user/Projects/QT3.2.1/qt-3.2.1'
    make: *** [init] Error 2

    How to resolve the problem?

Log in to reply