nodegui: Fails to build on Ubuntu 16.04 (libc < GLIBC_2.25 or gcc < 7)

On Ubuntu it gives out this error, could not solve it with #16

> @nodegui/nodegui@0.1.3 install /home/vince/test/nodegui/node_modules/@nodegui/nodegui
> npm -v

6.10.2

> @nodegui/qode@1.0.2 postinstall /home/vince/test/nodegui/node_modules/@nodegui/qode
> node install.js

Local Qode 1.0.2 archive doesnt exists... Copying Qode from cache...
Copying Qode from cache failed...  Error: ENOENT: no such file or directory, stat '/home/vince/.cache/qode-nodejs/qode-v1.0.2.zip'
Now downloading a fresh copy of qode-v1.0.2 from Github...
Downloading from:  https://github.com/nodegui/qode/releases/download/v1.0.2/linux-x64.zip
downloading [====================================================================================================] 100% of 39.4 Mb 0.0s
Local Qode 1.0.2 archive doesnt exists... Copying Qode from cache...
Extracting binaries...

> @nodegui/nodegui@0.1.3 postinstall /home/vince/test/nodegui/node_modules/@nodegui/nodegui
> npm run build:addon


> @nodegui/nodegui@0.1.3 build:addon /home/vince/test/nodegui/node_modules/@nodegui/nodegui
> node-gyp -j 8 configure build

make: Entering directory '/home/vince/test/nodegui/node_modules/@nodegui/nodegui/build'
  CC(target) Release/obj.target/nothing/../../node-addon-api/src/nothing.o
  AR(target) Release/obj.target/../../node-addon-api/src/nothing.a
  COPY Release/nothing.a
  CXX(target) Release/obj.target/qtnode/src/cpp/main.o
  CXX(target) Release/obj.target/qtnode/src/cpp/Extras/Utils/nutils.o
  CXX(target) Release/obj.target/qtnode/src/cpp/core/FlexLayout/flexlayout.o
  CXX(target) Release/obj.target/qtnode/src/cpp/core/FlexLayout/flexitem.o
  CXX(target) Release/obj.target/qtnode/src/cpp/core/YogaWidget/nodestyle.o
  CXX(target) Release/obj.target/qtnode/src/cpp/core/Events/eventsmap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/core/Events/eventwidget.o
  CXX(target) Release/obj.target/qtnode/src/cpp/core/YogaWidget/yogawidget.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtGui/QApplication/qapplication_wrap.o
In file included from /usr/include/c++/5/bits/hashtable.h:35:0,
                 from /usr/include/c++/5/unordered_map:47,
                 from .././src/cpp/core/Events/eventsmap.h:2,
                 from ../src/cpp/core/Events/eventwidget.h:4,
                 from ../src/cpp/core/Events/eventwidget.cpp:1:
/usr/include/c++/5/bits/hashtable_policy.h: In instantiation of ‘struct std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> >’:
/usr/include/c++/5/type_traits:137:12:   required from ‘struct std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > >’
/usr/include/c++/5/type_traits:148:38:   required from ‘struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
/usr/include/c++/5/bits/unordered_map.h:100:66:   required from ‘class std::unordered_map<QEvent::Type, std::__cxx11::basic_string<char> >’
../src/cpp/core/Events/eventwidget.h:10:51:   required from here
/usr/include/c++/5/bits/hashtable_policy.h:85:34: error: no match for call to ‘(const std::hash<QEvent::Type>) (const QEvent::Type&)’
  noexcept(declval<const _Hash&>()(declval<const _Key&>()))>
                                  ^
In file included from /home/vince/test/nodegui/node_modules/@nodegui/qode/dist/1.0.2/include/QtCore/qglobal.h:45:0,
                 from /home/vince/test/nodegui/node_modules/@nodegui/qode/dist/1.0.2/include/QtCore/qnamespace.h:43,
                 from /home/vince/test/nodegui/node_modules/@nodegui/qode/dist/1.0.2/include/QtCore/qcoreevent.h:43,
                 from /home/vince/test/nodegui/node_modules/@nodegui/qode/dist/1.0.2/include/QtCore/QEvent:1,
                 from ../src/cpp/core/Events/eventwidget.h:3,
                 from ../src/cpp/core/Events/eventwidget.cpp:1:
/usr/include/c++/5/type_traits: In instantiation of ‘struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’:
/usr/include/c++/5/bits/unordered_map.h:100:66:   required from ‘class std::unordered_map<QEvent::Type, std::__cxx11::basic_string<char> >’
../src/cpp/core/Events/eventwidget.h:10:51:   required from here
/usr/include/c++/5/type_traits:148:38: error: ‘value’ is not a member of ‘std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > >’
     : public integral_constant<bool, !_Pp::value>
                                      ^
In file included from /usr/include/c++/5/unordered_map:48:0,
                 from .././src/cpp/core/Events/eventsmap.h:2,
                 from ../src/cpp/core/Events/eventwidget.h:4,
                 from ../src/cpp/core/Events/eventwidget.cpp:1:
/usr/include/c++/5/bits/unordered_map.h: In instantiation of ‘class std::unordered_map<QEvent::Type, std::__cxx11::basic_string<char> >’:
../src/cpp/core/Events/eventwidget.h:10:51:   required from here
/usr/include/c++/5/bits/unordered_map.h:100:66: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc>  _Hashtable;
                                                                  ^
/usr/include/c++/5/bits/unordered_map.h:107:45: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::key_type key_type;
                                             ^
/usr/include/c++/5/bits/unordered_map.h:108:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::value_type value_type;
                                               ^
/usr/include/c++/5/bits/unordered_map.h:109:48: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::mapped_type mapped_type;
                                                ^
/usr/include/c++/5/bits/unordered_map.h:110:43: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::hasher hasher;
                                           ^
/usr/include/c++/5/bits/unordered_map.h:111:46: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::key_equal key_equal;
                                              ^
/usr/include/c++/5/bits/unordered_map.h:112:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::allocator_type allocator_type;
                                                   ^
/usr/include/c++/5/bits/unordered_map.h:117:45: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::pointer  pointer;
                                             ^
/usr/include/c++/5/bits/unordered_map.h:118:50: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::const_pointer const_pointer;
                                                  ^
/usr/include/c++/5/bits/unordered_map.h:119:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::reference  reference;
                                               ^
/usr/include/c++/5/bits/unordered_map.h:120:52: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::const_reference const_reference;
                                                    ^
/usr/include/c++/5/bits/unordered_map.h:121:46: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::iterator  iterator;
                                              ^
/usr/include/c++/5/bits/unordered_map.h:122:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::const_iterator const_iterator;
                                                   ^
/usr/include/c++/5/bits/unordered_map.h:123:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::local_iterator local_iterator;
                                                   ^
/usr/include/c++/5/bits/unordered_map.h:124:57: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::const_local_iterator const_local_iterator;
                                                         ^
/usr/include/c++/5/bits/unordered_map.h:125:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::size_type  size_type;
                                               ^
/usr/include/c++/5/bits/unordered_map.h:126:52: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::difference_type difference_type;
                                                    ^
/usr/include/c++/5/bits/unordered_map.h:280:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       operator=(initializer_list<value_type> __l)
       ^
/usr/include/c++/5/bits/unordered_map.h:379:2: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
  emplace(_Args&&... __args)
  ^
/usr/include/c++/5/bits/unordered_map.h:432:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       insert(const value_type& __x)
       ^
/usr/include/c++/5/bits/unordered_map.h:439:2: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
  insert(_Pair&& __x)
  ^
/usr/include/c++/5/bits/unordered_map.h:499:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       insert(initializer_list<value_type> __l)
       ^
/usr/include/c++/5/bits/unordered_map.h:645:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       equal_range(const key_type& __x)
       ^
/usr/include/c++/5/bits/unordered_map.h:649:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       equal_range(const key_type& __x) const
       ^
  CXX(target) Release/obj.target/qtnode/src/cpp/QtGui/QEvent/QKeyEvent/qkeyevent_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtGui/QPixmap/qpixmap_wrap.o
In file included from /usr/include/c++/5/bits/hashtable.h:35:0,
                 from /usr/include/c++/5/unordered_map:47,
                 from .././src/cpp/core/Events/eventsmap.h:2,
                 from .././src/cpp/core/Events/eventwidget.h:4,
                 from .././src/cpp/core/Events/eventwidget_macro.h:3,
                 from .././src/cpp/QtWidgets/QWidget/qwidget_macro.h:5,
                 from .././src/cpp/QtWidgets/QWidget/qwidget_wrap.h:3,
                 from ../src/cpp/main.cpp:2:
/usr/include/c++/5/bits/hashtable_policy.h: In instantiation of ‘struct std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> >’:
/usr/include/c++/5/type_traits:137:12:   required from ‘struct std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > >’
/usr/include/c++/5/type_traits:148:38:   required from ‘struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
/usr/include/c++/5/bits/unordered_map.h:100:66:   required from ‘class std::unordered_map<QEvent::Type, std::__cxx11::basic_string<char> >’
.././src/cpp/core/Events/eventwidget.h:10:51:   required from here
/usr/include/c++/5/bits/hashtable_policy.h:85:34: error: no match for call to ‘(const std::hash<QEvent::Type>) (const QEvent::Type&)’
  noexcept(declval<const _Hash&>()(declval<const _Key&>()))>
                                  ^
In file included from /usr/include/c++/5/bits/move.h:57:0,
                 from /usr/include/c++/5/bits/stl_function.h:60,
                 from /usr/include/c++/5/functional:49,
                 from /home/vince/test/nodegui/node_modules/node-addon-api/napi.h:5,
                 from .././src/cpp/QtGui/QApplication/qapplication_wrap.h:3,
                 from ../src/cpp/main.cpp:1:
/usr/include/c++/5/type_traits: In instantiation of ‘struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’:
/usr/include/c++/5/bits/unordered_map.h:100:66:   required from ‘class std::unordered_map<QEvent::Type, std::__cxx11::basic_string<char> >’
.././src/cpp/core/Events/eventwidget.h:10:51:   required from here
/usr/include/c++/5/type_traits:148:38: error: ‘value’ is not a member of ‘std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > >’
     : public integral_constant<bool, !_Pp::value>
                                      ^
In file included from /usr/include/c++/5/unordered_map:48:0,
                 from .././src/cpp/core/Events/eventsmap.h:2,
                 from .././src/cpp/core/Events/eventwidget.h:4,
                 from .././src/cpp/core/Events/eventwidget_macro.h:3,
                 from .././src/cpp/QtWidgets/QWidget/qwidget_macro.h:5,
                 from .././src/cpp/QtWidgets/QWidget/qwidget_wrap.h:3,
                 from ../src/cpp/main.cpp:2:
/usr/include/c++/5/bits/unordered_map.h: In instantiation of ‘class std::unordered_map<QEvent::Type, std::__cxx11::basic_string<char> >’:
.././src/cpp/core/Events/eventwidget.h:10:51:   required from here
/usr/include/c++/5/bits/unordered_map.h:100:66: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc>  _Hashtable;
                                                                  ^
/usr/include/c++/5/bits/unordered_map.h:107:45: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::key_type key_type;
                                             ^
/usr/include/c++/5/bits/unordered_map.h:108:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::value_type value_type;
                                               ^
/usr/include/c++/5/bits/unordered_map.h:109:48: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::mapped_type mapped_type;
                                                ^
/usr/include/c++/5/bits/unordered_map.h:110:43: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::hasher hasher;
                                           ^
/usr/include/c++/5/bits/unordered_map.h:111:46: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::key_equal key_equal;
                                              ^
/usr/include/c++/5/bits/unordered_map.h:112:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::allocator_type allocator_type;
                                                   ^
/usr/include/c++/5/bits/unordered_map.h:117:45: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::pointer  pointer;
                                             ^
/usr/include/c++/5/bits/unordered_map.h:118:50: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::const_pointer const_pointer;
                                                  ^
/usr/include/c++/5/bits/unordered_map.h:119:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::reference  reference;
                                               ^
/usr/include/c++/5/bits/unordered_map.h:120:52: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::const_reference const_reference;
                                                    ^
/usr/include/c++/5/bits/unordered_map.h:121:46: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::iterator  iterator;
                                              ^
/usr/include/c++/5/bits/unordered_map.h:122:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::const_iterator const_iterator;
                                                   ^
/usr/include/c++/5/bits/unordered_map.h:123:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::local_iterator local_iterator;
                                                   ^
/usr/include/c++/5/bits/unordered_map.h:124:57: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::const_local_iterator const_local_iterator;
                                                         ^
/usr/include/c++/5/bits/unordered_map.h:125:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::size_type  size_type;
                                               ^
/usr/include/c++/5/bits/unordered_map.h:126:52: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       typedef typename _Hashtable::difference_type difference_type;
                                                    ^
/usr/include/c++/5/bits/unordered_map.h:280:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       operator=(initializer_list<value_type> __l)
       ^
/usr/include/c++/5/bits/unordered_map.h:379:2: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
  emplace(_Args&&... __args)
  ^
/usr/include/c++/5/bits/unordered_map.h:432:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       insert(const value_type& __x)
       ^
/usr/include/c++/5/bits/unordered_map.h:439:2: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
  insert(_Pair&& __x)
  ^
/usr/include/c++/5/bits/unordered_map.h:499:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       insert(initializer_list<value_type> __l)
       ^
/usr/include/c++/5/bits/unordered_map.h:645:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       equal_range(const key_type& __x)
       ^
/usr/include/c++/5/bits/unordered_map.h:649:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<QEvent::Type> >, std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> > > >’
       equal_range(const key_type& __x) const
       ^
../src/cpp/core/Events/eventwidget.cpp: In member function ‘void EventWidget::subscribeToQtEvent(std::__cxx11::string)’:
../src/cpp/core/Events/eventwidget.cpp:8:86: error: no matching function for call to ‘std::unordered_map<QEvent::Type, std::__cxx11::basic_string<char> >::insert(<brace-enclosed initializer list>)’
         this->subscribedEvents.insert({static_cast<QEvent::Type>(evtType), evtString});
                                                                                      ^
In file included from /usr/include/c++/5/unordered_map:48:0,
                 from .././src/cpp/core/Events/eventsmap.h:2,
                 from ../src/cpp/core/Events/eventwidget.h:4,
                 from ../src/cpp/core/Events/eventwidget.cpp:1:
/usr/include/c++/5/bits/unordered_map.h:488:2: note: candidate: template<class _InputIterator> void std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = QEvent::Type; _Tp = std::__cxx11::basic_string<char>; _Hash = std::hash<QEvent::Type>; _Pred = std::equal_to<QEvent::Type>; _Alloc = std::allocator<std::pair<const QEvent::Type, std::__cxx11::basic_string<char> > >]
  insert(_InputIterator __first, _InputIterator __last)
  ^
/usr/include/c++/5/bits/unordered_map.h:488:2: note:   template argument deduction/substitution failed:
../src/cpp/core/Events/eventwidget.cpp:8:86: note:   candidate expects 2 arguments, 1 provided
         this->subscribedEvents.insert({static_cast<QEvent::Type>(evtType), evtString});
                                                                                      ^
../src/cpp/core/Events/eventwidget.cpp:9:115: error: ‘class std::unordered_map<QEvent::Type, std::__cxx11::basic_string<char> >’ has no member named ‘size’
         spdlog::info("EventWidget: subscribed to {} : {}, size: {}", evtString.c_str(), evtType, subscribedEvents.size());
                                                                                                                   ^
../src/cpp/core/Events/eventwidget.cpp: In member function ‘void EventWidget::unSubscribeToQtEvent(std::__cxx11::string)’:
../src/cpp/core/Events/eventwidget.cpp:18:32: error: ‘class std::unordered_map<QEvent::Type, std::__cxx11::basic_string<char> >’ has no member named ‘erase’
         this->subscribedEvents.erase(static_cast<QEvent::Type>(evtType));             // erasing by key
                                ^
../src/cpp/core/Events/eventwidget.cpp: In member function ‘void EventWidget::event(QEvent*)’:
../src/cpp/core/Events/eventwidget.cpp:29:60: error: ‘class std::unordered_map<QEvent::Type, std::__cxx11::basic_string<char> >’ has no member named ‘at’
             std::string eventTypeString = subscribedEvents.at(evtType);
                                                            ^
qtnode.target.mk:171: recipe for target 'Release/obj.target/qtnode/src/cpp/main.o' failed
make: *** [Release/obj.target/qtnode/src/cpp/main.o] Error 1
make: *** Waiting for unfinished jobs....
qtnode.target.mk:171: recipe for target 'Release/obj.target/qtnode/src/cpp/core/Events/eventwidget.o' failed
make: *** [Release/obj.target/qtnode/src/cpp/core/Events/eventwidget.o] Error 1
make: Leaving directory '/home/vince/test/nodegui/node_modules/@nodegui/nodegui/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/vince/.nvm/versions/node/v12.8.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23)
gyp ERR! stack     at ChildProcess.emit (events.js:203:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.15.0-58-generic
gyp ERR! command "/home/vince/.nvm/versions/node/v12.8.1/bin/node" "/home/vince/.nvm/versions/node/v12.8.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "-j" "8" "configure" "build"
gyp ERR! cwd /home/vince/test/nodegui/node_modules/@nodegui/nodegui
gyp ERR! node -v v12.8.1
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodegui/nodegui@0.1.3 build:addon: `node-gyp -j 8 configure build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @nodegui/nodegui@0.1.3 build:addon script.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 17

Most upvoted comments

NodeGUI v0.1.5 now supports ubuntu 16.04 and up! @vikkio88 @Naahuel

trying with this, will let you know. https://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-on-ubuntu

If it works it might be better to report it in the docs