thamizha / ekalappai

An opensource keyboard manager
http://thamizha.org/projects.html
18 stars 11 forks source link

Build error in ekalappai using Qt 5.12.9 #29

Open thangamani-arun opened 4 years ago

thangamani-arun commented 4 years ago

Build Enviornment: Qt Creator 4.12.2 Based on Qt 5.14.2 (MSVC 2017, 32 bit) Built on Jun 2 2020 01:31:56 From revision 33c5ff216a

Compile Error


g++ -c -fno-keep-inline-dllexport -O2 -Wall -W -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\ekalappai -I. -IC:\Qt\Qt5.12.9\5.12.9\mingw73_64\include -IC:\Qt\Qt5.12.9\5.12.9\mingw73_64\include\QtSvg -IC:\Qt\Qt5.12.9\5.12.9\mingw73_64\include\QtWidgets -IC:\Qt\Qt5.12.9\5.12.9\mingw73_64\include\QtGui\5.12.9 -IC:\Qt\Qt5.12.9\5.12.9\mingw73_64\include\QtGui\5.12.9\QtGui -IC:\Qt\Qt5.12.9\5.12.9\mingw73_64\include\QtGui -IC:\Qt\Qt5.12.9\5.12.9\mingw73_64\include\QtANGLE -IC:\Qt\Qt5.12.9\5.12.9\mingw73_64\include\QtXml -IC:\Qt\Qt5.12.9\5.12.9\mingw73_64\include\QtCore\5.12.9 -IC:\Qt\Qt5.12.9\5.12.9\mingw73_64\include\QtCore\5.12.9\QtCore -IC:\Qt\Qt5.12.9\5.12.9\mingw73_64\include\QtCore -Irelease -I. -I/include -IC:\Qt\Qt5.12.9\5.12.9\mingw73_64\mkspecs\win32-g++  -o release\moc_window.o release\moc_window.cpp
In file included from C:\Qt\Qt5.12.9\5.12.9\mingw73_64\include/QtCore/qglobal.h:105:0,
                 from C:\Qt\Qt5.12.9\5.12.9\mingw73_64\include/QtCore/qnamespace.h:43,
                 from C:\Qt\Qt5.12.9\5.12.9\mingw73_64\include\QtCore/qabstractnativeeventfilter.h:43,
                 from C:\Qt\Qt5.12.9\5.12.9\mingw73_64\include\QtCore/QAbstractNativeEventFilter:1,
                 from ..\ekalappai\ekeventfilter.h:4,
                 from ..\ekalappai\ekeventfilter.cpp:1:
C:\Qt\Qt5.12.9\5.12.9\mingw73_64\include/QtCore/qcompilerdetection.h:1117:26: error: virt-specifiers in 'nativeEventFilter' not allowed outside a class definition
 # define Q_DECL_OVERRIDE override
                          ^
..\ekalappai\ekeventfilter.cpp:10:2: note: in expansion of macro 'Q_DECL_OVERRIDE'
  Q_DECL_OVERRIDE
  ^
..\ekalappai\ekeventfilter.cpp: In member function 'virtual bool EKEventFilter::nativeEventFilter(const QByteArray&, void*, long int*)':
..\ekalappai\ekeventfilter.cpp:9:58: warning: unused parameter 'eventType' [-Wunused-parameter]
  bool EKEventFilter::nativeEventFilter(const QByteArray &eventType, void *message, long *result)
                                                          ^~~~~~~~~
..\ekalappai\ekeventfilter.cpp:9:90: warning: unused parameter 'result' [-Wunused-parameter]
  bool EKEventFilter::nativeEventFilter(const QByteArray &eventType, void *message, long *result)
                                                                                          ^~~~~~
..\ekalappai\window.cpp: In member function 'void Window::setShortcut2(int)':
..\ekalappai\window.cpp:188:31: warning: unused parameter 'index' [-Wunused-parameter]
 void Window::setShortcut2(int index)
                               ^~~~~
mingw32-make[1]: *** [Makefile.Release:2269: release/ekeventfilter.o] Error 1
mingw32-make[1]: *** Waiting for unfinished jobs....
mingw32-make[1]: Leaving directory 'C:/Users/engineer.guest/Documents/Non-office/ekalappai-master/ekalappai-master/build-ekalappai-Desktop_Qt_5_12_9_MinGW_64_bit-Release'
mingw32-make: *** [Makefile:38: release] Error 2
17:50:34: The process "C:\Qt\Qt5.12.9\Tools\mingw730_64\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project ekalappai (kit: Desktop Qt 5.12.9 MinGW 64-bit)
When executing step "Make"                ^