Menu

I'm having trouble with make on archlinux

Help
2010-07-21
2013-04-30
  • omgwtfbyobbq

    omgwtfbyobbq - 2010-07-21

    Config was fine after I specified where qt3 was, but it stops right after I run make.

    It appears there was a similar problem here, but I'm not sure what kde3 options I need to include since there's no common-options file in my kde3 install or if I need something besides kdelibs (3 & 4).

    http://forums.opensuse.org/english/get-help-here/64-bit/439544-cant-compile-because-qt-mt-lib.html

    /opt/qt/include/qrect.h:123:59: error: non-member function bool contains(const QPoint&, bool) cannot have cv-qualifier
    /opt/qt/include/qrect.h:124:37: error: In file included from /opt/qt/include/qpaintdevice.h:43:0,
                     from /opt/qt/include/qwidget.h:44,
                     from xmessages.h:30,
                     from apiapplication.cpp:37:
    /opt/qt/include/qrect.h:50:16: error: variable Q_EXPORT QRect has initializer but incomplete type
    /opt/qt/include/qrect.h:50:16: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
    /opt/qt/include/qrect.h:52:1: error: expected primary-expression before public
    /opt/qt/include/qrect.h:52:1: error: expected ‘}’ before public
    /opt/qt/include/qrect.h:52:1: error: expected , or ; before public
    /opt/qt/include/qrect.h:54:62: error: expected constructor, destructor, or type conversion before ; token
    /opt/qt/include/qrect.h:55:54: error: expected constructor, destructor, or type conversion before ; token
    /opt/qt/include/qrect.h:56:54: error: expected constructor, destructor, or type conversion before ; token
    /opt/qt/include/qrect.h:58:21: error: non-member function bool isNull() cannot have cv-qualifier
    /opt/qt/include/qrect.h:59:22: error: non-member function bool isEmpty() cannot have cv-qualifier
    /opt/qt/include/qrect.h:60:22: error: non-member function bool isValid() cannot have cv-qualifier
    /opt/qt/include/qrect.h:61:5: error: QRect does not name a type
    /opt/qt/include/qrect.h:63:19: error: non-member function int left() cannot have cv-qualifier
    /opt/qt/include/qrect.h:64:18: error: non-member function int top() cannot have cv-qualifier
    /opt/qt/include/qrect.h:65:20: error: non-member function int right() cannot have cv-qualifier
    /opt/qt/include/qrect.h:66:21: error: non-member function int bottom() cannot have cv-qualifier
    /opt/qt/include/qrect.h:68:5: error: QCOORD does not name a type
    /opt/qt/include/qrect.h:69:5: error: QCOORD does not name a type
    /opt/qt/include/qrect.h:70:5: error: QCOORD does not name a type
    /opt/qt/include/qrect.h:71:5: error: QCOORD does not name a type
    non-member function bool contains(int, int) cannot have cv-qualifier
    /opt/qt/include/qrect.h:125:50: error: non-member function bool contains(int, int, bool) cannot have cv-qualifier
    /opt/qt/include/qrect.h:126:28: error: QRect does not name a type
    /opt/qt/include/qrect.h:126:35: error: ISO C++ forbids declaration of r with no type
    /opt/qt/include/qrect.h:126:58: error: non-member function bool contains(const int&, bool) cannot have cv-qualifier
    /opt/qt/include/qrect.h:127:5: error: QRect does not name a type
    /opt/qt/include/qrect.h:128:5: error: QRect does not name a type
    /opt/qt/include/qrect.h:129:30: error: QRect does not name a type
    /opt/qt/include/qrect.h:129:37: error: ISO C++ forbids declaration of r with no type
    /opt/qt/include/qrect.h:129:41: error: non-member function bool intersects(const int&) cannot have cv-qualifier
    /opt/qt/include/qrect.h:131:5: error: friend used outside of class
    /opt/qt/include/qrect.h:131:44: error: QRect does not name a type
    /opt/qt/include/qrect.h:131:50: error: ISO C++ forbids declaration of parameter with no type
    /opt/qt/include/qrect.h:131:59: error: QRect does not name a type
    /opt/qt/include/qrect.h:131:65: error: ISO C++ forbids declaration of parameter with no type
    /opt/qt/include/qrect.h:131:67: error: two or more data types in declaration of operator==
    /opt/qt/include/qrect.h:132:5: error: friend used outside of class
    /opt/qt/include/qrect.h:132:44: error: QRect does not name a type
    /opt/qt/include/qrect.h:132:50: error: ISO C++ forbids declaration of parameter with no type
    /opt/qt/include/qrect.h:132:59: error: QRect does not name a type
    /opt/qt/include/qrect.h:132:65: error: ISO C++ forbids declaration of parameter with no type
    /opt/qt/include/qrect.h:132:67: error: two or more data types in declaration of operator!=
    /opt/qt/include/qrect.h:134:1: error: expected unqualified-id before private
    /opt/qt/include/qrect.h:144:5: error: QCOORD does not name a type
    /opt/qt/include/qrect.h:145:5: error: QCOORD does not name a type
    /opt/qt/include/qrect.h:146:5: error: QCOORD does not name a type
    /opt/qt/include/qrect.h:147:5: error: QCOORD does not name a type
    /opt/qt/include/qrect.h:149:1: error: expected declaration before ‘}’ token
    make[2]: *** [apiapplication.o] Error 1
    
     
  • Simon_6162

    Simon_6162 - 2010-07-30

    Nothing springs to mind as to why this is happening. I'm still using centos / kde3. I'll see what happens on fedora 12 with kde4 and get back to you.

    what version of qt are you using, is there any kde3 compatibility libaries for opesuse ?

    Simon

     
  • Simon_6162

    Simon_6162 - 2010-07-30

    In the previous message I meant subversion of qt3

     
  • omgwtfbyobbq

    omgwtfbyobbq - 2010-07-30

    I have qt3 and kdelibs3, so those weren't the problem. It turns out I did need to add something similar to the fedora post (. /etc/profile.d/qt3.sh in my case) to my pkgbuild , but the filename wasn't the same. Specifically, I'm guessing I needed

    export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/qt/lib/pkgconfig
    

    in the script for it to build.

     

Log in to post a comment.