#2 FreeBSD, Qt 2.3.0: gcc failes

closed-out-of-date
nobody
None
5
2002-06-07
2001-12-04
No

My system is:
FreeBSD 4.3
Qt 2.3.0
gcc 2.95.3

gcc fails with the following error message:

/usr/X11R6/bin/moc ./TransitionPropertiesDlgImpl.h -o
TransitionPropertiesDlgImpl.moc.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/X11R6/include/qt2 -I/usr/X11R6/include
-I/usr/local/include -O2 -I/usr/local/include
-fno-exceptions -fno-check-new -c
TransitionPropertiesDlgImpl.moc.cpp
TransitionPropertiesDlgImpl.moc.cpp:45: new declaration
`static void
TransitionPropertiesDlgImpl::staticMetaObject()'
TransitionPropertiesDlgImpl.h:31: ambiguates old
declaration `static class QMetaObject *
TransitionPropertiesDlgImpl::staticMetaObject()'
TransitionPropertiesDlgImpl.moc.cpp: In function `void
__static_initialization_and_destruction_0(int, int)':
TransitionPropertiesDlgImpl.moc.cpp:29: no matching
function for call to `QMetaObjectInit::QMetaObjectInit
(QMetaObject * (*)())'
/usr/X11R6/include/qt2/qmetaobject.h:259: candidates
are: QMetaObjectInit::QMetaObjectInit(void (*)())
/usr/X11R6/include/qt2/qmetaobject.h:261:
QMetaObjectInit::QMetaObjectInit(const QMetaObjectInit
&)
*** Error code 1

Stop in /usr/home/kraus/src/qfsm/qfsm-0.25/src.
*** Error code 1

I am sorry that I can not say more about this error. I
do not know much about Qt...

Oli

Discussion

  • Oliver Kraus

    Oliver Kraus - 2002-04-16

    Logged In: YES
    user_id=110064

    freebsd installs libqt as libqt2 and moc as moc2

    use the following commands in a csh:

    setenv LIBQT -lqt2
    setenv MOC /usr/X11R6/bin/moc2
    setenv LDFLAGS -L/usr/local/lib
    ./configure --with-qt-includes="/usr/X11R6/include/qt2"
    --with-extra-includes=/usr/local/include

    this will fix all errors and qfsm compiles fine on a freebsd
    machine.

    Oli

     
  • Stefan Duffner

    Stefan Duffner - 2002-06-07
    • status: open --> closed-out-of-date
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks