Next Previous Contents

4. Faq's

  1. Question:

    Running ./configure results in an error message like qt-.... not found

  2. Question:

    Though I ran configure with the parameter --with-qt-dir I get an file not found error when running make

  3. Question:

    Though configure worked properly, running make I get an error like:

    cdisplay.moc.cpp:45: new declaration `static void
    CDisplay::staticMetaObject()'
    cdisplay.h:47: ambiguates old declaration `static class QMetaObject *
    CDisplay::staticMetaObject()'
    cdisplay.moc.cpp: In function `void
    __static_initialization_and_destruction_0(int, int)':
    cdisplay.moc.cpp:29: no matching function for call to
    `QMetaObjectInit::QMetaObjectInit (QMetaObject * (*)())'
    /usr/lib/qt-2.2.4/include/qmetaobject.h:259: candidates are:
    QMetaObjectInit::QMetaObjectInit(void (*)())
    

  1. Running ./configure results in an error message like qt-.... not found

    You need qt-2.2.x to be installed. If you're shure that a proper qt- version is installed

    try

    rm config.cache

    ./configure --with-qt-dir="Where your qt is installed"

    Have a look that you use the correct moc version when you run make

  2. Though I ran configure with the parameter --with-qt-dir I get an file not found error when running make

    Find out where the qt header files reside and try

    rm config.cache
    ./configure --with-qt-dir="Where your qt is installed" --with-qt-include="where the include files reside"
    

  3. Though configure worked properly, running make I get an error like:

    cdisplay.moc.cpp:45: new declaration `static void
    CDisplay::staticMetaObject()'
    cdisplay.h:47: ambiguates old declaration `static class QMetaObject *
    CDisplay::staticMetaObject()'
    cdisplay.moc.cpp: In function `void
    __static_initialization_and_destruction_0(int, int)':
    cdisplay.moc.cpp:29: no matching function for call to
    `QMetaObjectInit::QMetaObjectInit (QMetaObject * (*)())'
    /usr/lib/qt-2.2.4/include/qmetaobject.h:259: candidates are:
    QMetaObjectInit::QMetaObjectInit(void (*)())
    

    Be sure to have the correct version of moc, when you run make.

    Probably you don't use the version of moc that corresponds to your qt- version.

    Check where your moc resides and if you have several versions installed on your system.

    Sometimes there is a link in /usr/bin to "QT-directory/bin/moc".

    Set the link appropriate or adjust your PATH- environment- variable that the correct moc version is to be found.


Next Previous Contents