Giter Club home page Giter Club logo

qvkbd's People

Contributors

marcusbritanicus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

lycchang

qvkbd's Issues

Cannot compile with Qt5

While compiling with Qt5, I get this weird error:

compiling src/x11keyboard.cpp
In file included from src/keysymconvert.h:10,
                 from src/x11keyboard.h:23,
                 from src/x11keyboard.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qnamespace.h:1158:10: error: expected identifier before numeric constant
     enum CursorShape {
          ^~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qnamespace.h:1158:10: error: expected unqualified-id before numeric constant
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:48,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:46,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:43,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:6,
                 from src/vkeyboard.h:23,
                 from src/x11keyboard.h:26,
                 from src/x11keyboard.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qnamespace.h:1744:5: error: ‘const QMetaObject* Qt::qt_getEnumMetaObject’ redeclared as different kind of symbol
     QT_Q_ENUM(CursorShape)
     ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qnamespace.h:1743:5: note: previous declaration ‘const QMetaObject* Qt::qt_getEnumMetaObject(Qt::DayOfWeek)’
     QT_Q_ENUM(DayOfWeek)
     ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qnamespace.h:1744:5: error: ‘constexpr const char* const Qt::qt_getEnumName’ redeclared as different kind of symbol
     QT_Q_ENUM(CursorShape)
     ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qnamespace.h:1743:5: note: previous declaration ‘constexpr const char* Qt::qt_getEnumName(Qt::DayOfWeek)’
     QT_Q_ENUM(DayOfWeek)
     ^~~~~~~~~
In file included from src/keysymconvert.h:10,
                 from src/x11keyboard.h:23,
                 from src/x11keyboard.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:506:18: error: expected unqualified-id before numeric constant
     QVariant(Qt::CursorShape) Q_DECL_EQ_DELETE;
                  ^~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractitemmodel.h:43,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:10,
                 from src/vkeyboard.h:23,
                 from src/x11keyboard.h:26,
                 from src/x11keyboard.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:506:16: error: expected ‘)’ before numeric constant
     QVariant(Qt::CursorShape) Q_DECL_EQ_DELETE;
             ~  ^
                )
In file included from src/keysymconvert.h:10,
                 from src/x11keyboard.h:23,
                 from src/x11keyboard.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:63:9: error: expected identifier before numeric constant
         None = 0,                               // invalid event
         ^~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:63:9: error: expected ‘}’ before numeric constant
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreapplication.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qcommandlineparser.h:45,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:43,
                 from src/vkeyboard.h:23,
                 from src/x11keyboard.h:26,
                 from src/x11keyboard.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:56:15: note: to match this ‘{’
     enum Type {
               ^
In file included from src/keysymconvert.h:10,
                 from src/x11keyboard.h:23,
                 from src/x11keyboard.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:63:9: error: expected unqualified-id before numeric constant
         None = 0,                               // invalid event
         ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:46,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:43,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:6,
                 from src/vkeyboard.h:23,
                 from src/x11keyboard.h:26,
                 from src/x11keyboard.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:295:5: error: ‘friend’ used outside of class
     Q_ENUM(Type)
     ^~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:295:5: error: ‘constexpr const QMetaObject* const qt_getEnumMetaObject’ redeclared as different kind of symbol
     Q_ENUM(Type)
     ^~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qlocale.h:927:5: note: previous declaration ‘constexpr const QMetaObject* qt_getEnumMetaObject(QLocale::DataSizeFormats)’
     Q_FLAG(DataSizeFormats)
     ^~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:295:5: error: ‘Type’ was not declared in this scope
     Q_ENUM(Type)
     ^~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:295:5: note: suggested alternative: ‘Time’
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:295:5: error: ‘friend’ used outside of class
     Q_ENUM(Type)
     ^~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:295:5: error: ‘constexpr const char* const qt_getEnumName’ redeclared as different kind of symbol
     Q_ENUM(Type)
     ^~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qlocale.h:927:5: note: previous declaration ‘constexpr const char* qt_getEnumName(QLocale::DataSizeFormats)’
     Q_FLAG(DataSizeFormats)
     ^~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:295:5: error: ‘Type’ was not declared in this scope
     Q_ENUM(Type)
     ^~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:295:5: note: suggested alternative: ‘Time’
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreapplication.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qcommandlineparser.h:45,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:43,
                 from src/vkeyboard.h:23,
                 from src/x11keyboard.h:26,
                 from src/x11keyboard.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:297:25: error: expected ‘)’ before ‘type’
     explicit QEvent(Type type);
                    ~    ^~~~~
                         )
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:298:12: error: expected unqualified-id before ‘const’
     QEvent(const QEvent &other);
            ^~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:298:12: error: expected ‘)’ before ‘const’
     QEvent(const QEvent &other);
           ~^~~~~
            )
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:299:21: error: declaration of ‘~QEvent’ as non-member
     virtual ~QEvent();
                     ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:300:42: error: ‘QEvent& operator=(const QEvent&)’ must be a nonstatic member function
     QEvent &operator=(const QEvent &other);
                                          ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:301:12: error: ‘Type’ does not name a type; did you mean ‘Time’?
     inline Type type() const { return static_cast<Type>(t); }
            ^~~~
            Time
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:302:31: error: non-member function ‘bool spontaneous()’ cannot have cv-qualifier
     inline bool spontaneous() const { return spont; }
                               ^~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h: In function ‘bool spontaneous()’:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:302:46: error: ‘spont’ was not declared in this scope
     inline bool spontaneous() const { return spont; }
                                              ^~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:302:46: note: suggested alternative: ‘QFont’
     inline bool spontaneous() const { return spont; }
                                              ^~~~~
                                              QFont
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h: In function ‘void setAccepted(bool)’:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:304:46: error: ‘m_accept’ was not declared in this scope
     inline void setAccepted(bool accepted) { m_accept = accepted; }
                                              ^~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:304:46: note: suggested alternative: ‘accepted’
     inline void setAccepted(bool accepted) { m_accept = accepted; }
                                              ^~~~~~~~
                                              accepted
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h: At global scope:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:305:30: error: non-member function ‘bool isAccepted()’ cannot have cv-qualifier
     inline bool isAccepted() const { return m_accept; }
                              ^~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h: In function ‘bool isAccepted()’:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:305:45: error: ‘m_accept’ was not declared in this scope
     inline bool isAccepted() const { return m_accept; }
                                             ^~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:305:45: note: suggested alternative: ‘memccpy’
     inline bool isAccepted() const { return m_accept; }
                                             ^~~~~~~~
                                             memccpy
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h: In function ‘void accept()’:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:307:28: error: ‘m_accept’ was not declared in this scope
     inline void accept() { m_accept = true; }
                            ^~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:307:28: note: suggested alternative: ‘accept’
     inline void accept() { m_accept = true; }
                            ^~~~~~~~
                            accept
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h: In function ‘void ignore()’:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:308:28: error: ‘m_accept’ was not declared in this scope
     inline void ignore() { m_accept = false; }
                            ^~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:308:28: note: suggested alternative: ‘accept’
     inline void ignore() { m_accept = false; }
                            ^~~~~~~~
                            accept
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h: At global scope:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:312:1: error: expected unqualified-id before ‘protected’
 protected:
 ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:316:1: error: expected unqualified-id before ‘private’
 private:
 ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:318:18: error: expected initializer before ‘:’ token
     ushort spont : 1;
                  ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:319:21: error: expected initializer before ‘:’ token
     ushort m_accept : 1;
                     ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:320:21: error: expected initializer before ‘:’ token
     ushort reserved : 13;
                     ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:322:5: error: ‘friend’ used outside of class
     friend class QCoreApplication;
     ^~~~~~
     ------
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:323:5: error: ‘friend’ used outside of class
     friend class QCoreApplicationPrivate;
     ^~~~~~
     ------
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:324:5: error: ‘friend’ used outside of class
     friend class QThreadData;
     ^~~~~~
     ------
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:325:5: error: ‘friend’ used outside of class
     friend class QApplication;
     ^~~~~~
     ------
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:326:5: error: ‘friend’ used outside of class
     friend class QShortcutMap;
     ^~~~~~
     ------
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:327:5: error: ‘friend’ used outside of class
     friend class QGraphicsView;
     ^~~~~~
     ------
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:328:5: error: ‘friend’ used outside of class
     friend class QGraphicsScene;
     ^~~~~~
     ------
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:329:5: error: ‘friend’ used outside of class
     friend class QGraphicsScenePrivate;
     ^~~~~~
     ------
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:331:5: error: ‘friend’ used outside of class
     friend class QSpontaneKeyEvent;
     ^~~~~~
     ------
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h: In function ‘void setSpontaneous()’:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:334:29: error: ‘spont’ was not declared in this scope
     void setSpontaneous() { spont = true; }
                             ^~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:334:29: note: suggested alternative: ‘QFont’
     void setSpontaneous() { spont = true; }
                             ^~~~~
                             QFont
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h: At global scope:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreevent.h:335:1: error: expected declaration before ‘}’ token
 };
 ^
make: *** [Makefile:827: build/objs/x11keyboard.o] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.