How can I solve this problem? - Suse

This is a discussion on How can I solve this problem? - Suse ; Dear Sir: OS: Red Hat Enterprise 4 IDE: KDevelop 3.4.1 Qt's version: 4.2.3 I found that when I used OIV class, there are many compiling and linking errors in my simple program. Such as: #include "exedlg.h" #include #include #include #include ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: How can I solve this problem?

  1. How can I solve this problem?

    Dear Sir:
    OS: Red Hat Enterprise 4
    IDE: KDevelop 3.4.1
    Qt's version: 4.2.3

    I found that when I used OIV class, there are many compiling and
    linking errors in my simple program. Such as:

    #include "exedlg.h"
    #include
    #include
    #include
    #include

    ExeDlg::ExeDlg( QWidget* parent, Qt::WindowFlags f )
    : QDialog( parent,f )
    {
    ui.setupUi(this);
    m_examinerViewer = new SoQtExaminerViewer (this);
    }

    In the ExeDlg constructor method, I used SoQtExaminerViewer to define
    m_examinerViewer.
    But when I compile it, I get the error:

    g++ -c -pipe -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -
    DQT_CORE_LIB -DQT_SHARED -I/usr/local/src/Qt4.2.3/mkspecs/default -I.
    -I/usr/local/src/Qt4.2 .3/include/QtCore -I/usr/local/src/Qt4.2.3/
    include/QtCore -I/usr/local/src/Qt4.2 .3/include/QtGui -I/usr/local/
    src/Qt4.2.3/include/QtGui -I/usr/local/src/Qt4.2.3 /include -I/usr/
    local/src/Qt4.2.3/include/Qt3Support -I/usr/local/src/Qt4.2.3/in clude
    -I/usr/local/src/OpenInventor/include -I. -Imoc -IUI -o obj/exedlg.o
    UI/ex edlg.cpp
    In file included from /usr/local/src/OpenInventor/include/Inventor/Qt/
    viewers/So QtFullViewer.h:35,
    from /usr/local/src/OpenInventor/include/Inventor/Qt/
    viewers/So QtExaminerViewer.h:31,
    from UI/exedlg.cpp:27:
    /usr/local/src/Qt4.2.3/include/Qt3Support/q3popupmenu.h: In member
    function `int Q3PopupMenu::exec()':
    /usr/local/src/Qt4.2.3/include/Qt3Support/q3popupmenu.h:40: error:
    `findIdForAct ion' was not declared in this scope
    /usr/local/src/Qt4.2.3/include/Qt3Support/q3popupmenu.h:40: warning:
    unused vari able 'findIdForAction'
    /usr/local/src/Qt4.2.3/include/Qt3Support/q3popupmenu.h: In member
    function `int Q3PopupMenu::exec(const QPoint&, int)':
    /usr/local/src/Qt4.2.3/include/Qt3Support/q3popupmenu.h:42: error:
    `findIdForAct ion' was not declared in this scope
    /usr/local/src/Qt4.2.3/include/Qt3Support/q3popupmenu.h:42: warning:
    unused vari able 'findIdForAction'
    make: *** [obj/exedlg.o]


    Would you help me ?
    thank your in advance.


    Jordi


  2. Re: How can I solve this problem?

    Hi,

    install Suse and somebody of this Suse Newsgroup will be able to help.
    More info and a download link will be found at

    www.opensuse.org

    --
    MfG

    Dirk Schultze
    news4dsch at t-online,de


    Am 18.09.2007, 05:51 Uhr, schrieb Jordi :

    > Dear Sir:
    > OS: Red Hat Enterprise 4
    > IDE: KDevelop 3.4.1
    > Qt's version: 4.2.3
    >
    > I found that when I used OIV class, there are many compiling and
    > linking errors in my simple program. Such as:
    >
    > #include "exedlg.h"
    > #include
    > #include
    > #include
    > #include
    >
    > ExeDlg::ExeDlg( QWidget* parent, Qt::WindowFlags f )
    > : QDialog( parent,f )
    > {
    > ui.setupUi(this);
    > m_examinerViewer = new SoQtExaminerViewer (this);
    > }
    >
    > In the ExeDlg constructor method, I used SoQtExaminerViewer to define
    > m_examinerViewer.
    > But when I compile it, I get the error:
    >
    > g++ -c -pipe -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -
    > DQT_CORE_LIB -DQT_SHARED -I/usr/local/src/Qt4.2.3/mkspecs/default -I.
    > -I/usr/local/src/Qt4.2 .3/include/QtCore -I/usr/local/src/Qt4.2.3/
    > include/QtCore -I/usr/local/src/Qt4.2 .3/include/QtGui -I/usr/local/
    > src/Qt4.2.3/include/QtGui -I/usr/local/src/Qt4.2.3 /include -I/usr/
    > local/src/Qt4.2.3/include/Qt3Support -I/usr/local/src/Qt4.2.3/in clude
    > -I/usr/local/src/OpenInventor/include -I. -Imoc -IUI -o obj/exedlg.o
    > UI/ex edlg.cpp
    > In file included from /usr/local/src/OpenInventor/include/Inventor/Qt/
    > viewers/So QtFullViewer.h:35,
    > from /usr/local/src/OpenInventor/include/Inventor/Qt/
    > viewers/So QtExaminerViewer.h:31,
    > from UI/exedlg.cpp:27:
    > /usr/local/src/Qt4.2.3/include/Qt3Support/q3popupmenu.h: In member
    > function `int Q3PopupMenu::exec()':
    > /usr/local/src/Qt4.2.3/include/Qt3Support/q3popupmenu.h:40: error:
    > `findIdForAct ion' was not declared in this scope
    > /usr/local/src/Qt4.2.3/include/Qt3Support/q3popupmenu.h:40: warning:
    > unused vari able 'findIdForAction'
    > /usr/local/src/Qt4.2.3/include/Qt3Support/q3popupmenu.h: In member
    > function `int Q3PopupMenu::exec(const QPoint&, int)':
    > /usr/local/src/Qt4.2.3/include/Qt3Support/q3popupmenu.h:42: error:
    > `findIdForAct ion' was not declared in this scope
    > /usr/local/src/Qt4.2.3/include/Qt3Support/q3popupmenu.h:42: warning:
    > unused vari able 'findIdForAction'
    > make: *** [obj/exedlg.o]
    >
    >
    > Would you help me ?
    > thank your in advance.
    >
    >
    > Jordi
    >


  3. Re: How can I solve this problem?

    On Tue, 18 Sep 2007, in the Usenet newsgroup alt.os.linux.suse, in article
    <1190087501.079654.119120@d55g2000hsg.googlegroups. com>, Jordi wrote:

    NOTE: Posting from groups.google.com (or some web-forums) dramatically
    reduces the chance of your post being seen. Find a real news server.

    NOTE: Please do not post the same off-topic article to multiple Usenet
    newsgroups. Red Hat is not SUSE or Mandriva.

    The group you want to be reading is comp.windows.x.kde

    [compton ~]$ zgrep comp.windows.x.kde big.8.list.09.15.07.gz
    comp.windows.x.kde The K Desktop Environment.
    [compton ~]$

    Your error list looks as if you are missing some header files, OR they
    are not where the compiler expects them.

    Old guy

+ Reply to Thread