nodegui/nodegui-starter

starter project is not working on MacOS

khaledez opened this issue ยท 15 comments

Hello,
I tried to run the starter application, but it failed with this error:

 webpack && qode ./dist/index.js

Hash: 602c1ea41ce7e28faf8b
Version: webpack 4.39.2
Time: 2436ms
Built at: 2019-08-29 10:04:08 p.m.
                                Asset      Size  Chunks             Chunk Names
7aa843d39082a57415025908bf14d8e3.node  1.49 MiB          [emitted]  
                             index.js   892 KiB    main  [emitted]  main
Entrypoint main = index.js
[./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {main} [built]
[./src/index.ts] 815 bytes {main} [built]
[crypto] external "crypto" 42 bytes {main} [built]
[events] external "events" 42 bytes {main} [built]
[fs] external "fs" 42 bytes {main} [built]
[os] external "os" 42 bytes {main} [built]
[path] external "path" 42 bytes {main} [built]
    + 160 hidden modules
qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

OS: MacOS Mojave 10.14.6 (18G87)

a7ul commented

Hi @khaledez , can you do
rm -rf node_modules
rm -rf ~/Library/Caches/qode-nodejs
npm install

And post the logs here.

Here is the full log:

nodegui-starter [master] ยป npm install                                                                                 ~/L/n/nodegui-starter

> fsevents@1.2.9 install /Users/khaledez/Learning/nodegui/nodegui-starter/node_modules/fsevents
> node install

node-pre-gyp WARN Using request for node-pre-gyp https download 
[fsevents] Success: "/Users/khaledez/Learning/nodegui/nodegui-starter/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node" is installed via remote

> @nodegui/nodegui@0.1.6 install /Users/khaledez/Learning/nodegui/nodegui-starter/node_modules/@nodegui/nodegui
> npm -v

6.10.3

> @nodegui/qode@1.0.3 postinstall /Users/khaledez/Learning/nodegui/nodegui-starter/node_modules/@nodegui/qode
> node install.js

Local Qode 1.0.3 archive doesnt exists... Copying Qode from cache...
Copying Qode from cache failed...  Error: ENOENT: no such file or directory, stat '/Users/khaledez/Library/Caches/qode-nodejs/qode-v1.0.3.zip'
Now downloading a fresh copy of qode-v1.0.3 from Github...
Downloading from:  https://github.com/nodegui/qode/releases/download/v1.0.3/darwin-x64.zip
downloading [====================================================================================================] 100% of 50.3 Mb 0.0s
Local Qode 1.0.3 archive doesnt exists... Copying Qode from cache...
Extracting binaries...

> @nodegui/nodegui@0.1.6 postinstall /Users/khaledez/Learning/nodegui/nodegui-starter/node_modules/@nodegui/nodegui
> npm run build:addon


> @nodegui/nodegui@0.1.6 build:addon /Users/khaledez/Learning/nodegui/nodegui-starter/node_modules/@nodegui/nodegui
> node-gyp -j 8 configure build

  CC(target) Release/obj.target/nothing/../../node-addon-api/src/nothing.o
  TOUCH 8d54a0613d50a84adae49a5312f848b52b1b3ed9.intermediate
  ACTION binding_gyp_qtnode_target_symlink_qt_headers 8d54a0613d50a84adae49a5312f848b52b1b3ed9.intermediate
  LIBTOOL-STATIC 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
  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
  CXX(target) Release/obj.target/qtnode/src/cpp/QtGui/QIcon/qicon_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/core/FlexLayout/flexlayout_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtWidgets/QWidget/qwidget_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtWidgets/QGridLayout/qgridlayout_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtWidgets/QLabel/qlabel_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtWidgets/QLayout/qlayout_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtWidgets/QMainWindow/qmainwindow_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtWidgets/QPushButton/qpushbutton_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtWidgets/QSpinBox/qspinbox_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtWidgets/QCheckBox/qcheckbox_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtWidgets/QProgressBar/qprogressbar_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtWidgets/QRadioButton/qradiobutton_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtWidgets/QLineEdit/qlineedit_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtWidgets/QPlainTextEdit/qplaintextedit_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtWidgets/QScrollArea/qscrollarea_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/autogen/nwidget_moc.o
  CXX(target) Release/obj.target/qtnode/src/cpp/autogen/nlabel_moc.o
  CXX(target) Release/obj.target/qtnode/src/cpp/autogen/ncheckbox_moc.o
  CXX(target) Release/obj.target/qtnode/src/cpp/autogen/nlineedit_moc.o
  CXX(target) Release/obj.target/qtnode/src/cpp/autogen/nmainwindow_moc.o
  CXX(target) Release/obj.target/qtnode/src/cpp/autogen/nprogressbar_moc.o
  CXX(target) Release/obj.target/qtnode/src/cpp/autogen/npushbutton_moc.o
  CXX(target) Release/obj.target/qtnode/src/cpp/autogen/nspinbox_moc.o
  CXX(target) Release/obj.target/qtnode/src/cpp/autogen/nradiobutton_moc.o
  CXX(target) Release/obj.target/qtnode/src/cpp/autogen/nplaintextedit_moc.o
  CXX(target) Release/obj.target/qtnode/src/cpp/autogen/nscrollarea_moc.o
  CXX(target) Release/obj.target/qtnode/deps/yoga/log.o
  CXX(target) Release/obj.target/qtnode/deps/yoga/Utils.o
  CXX(target) Release/obj.target/qtnode/deps/yoga/YGConfig.o
  CXX(target) Release/obj.target/qtnode/deps/yoga/YGEnums.o
  CXX(target) Release/obj.target/qtnode/deps/yoga/YGLayout.o
  CXX(target) Release/obj.target/qtnode/deps/yoga/YGNode.o
  CXX(target) Release/obj.target/qtnode/deps/yoga/YGNodePrint.o
  CXX(target) Release/obj.target/qtnode/deps/yoga/YGStyle.o
  CXX(target) Release/obj.target/qtnode/deps/yoga/YGValue.o
  CXX(target) Release/obj.target/qtnode/deps/yoga/Yoga.o
  CXX(target) Release/obj.target/qtnode/deps/yoga/event/event.o
  CXX(target) Release/obj.target/qtnode/deps/yoga/internal/experiments.o
  SOLINK_MODULE(target) Release/qtnode.node
rm 8d54a0613d50a84adae49a5312f848b52b1b3ed9.intermediate
added 572 packages from 386 contributors and audited 5575 packages in 52.524s
found 0 vulnerabilities

I am having the same issue with macOS Catalina 10.15

Matthews-MacBook-Pro:StrandsGUI matthew$ rm -rf ~/Library/Caches/qode-nodejs/ 
Matthews-MacBook-Pro:StrandsGUI matthew$ rm -rf node_modules
Matthews-MacBook-Pro:StrandsGUI matthew$ npm install

> fsevents@1.2.9 install /Users/matthew/IdeaProjects/Strands-Chat/StrandsGUI/node_modules/fsevents
> node install

node-pre-gyp WARN Using request for node-pre-gyp https download 
[fsevents] Success: "/Users/matthew/IdeaProjects/Strands-Chat/StrandsGUI/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node" is installed via remote

> core-js@2.6.10 postinstall /Users/matthew/IdeaProjects/Strands-Chat/StrandsGUI/node_modules/core-js
> node postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> @nodegui/qode@1.0.5 postinstall /Users/matthew/IdeaProjects/Strands-Chat/StrandsGUI/node_modules/@nodegui/qode
> node install.js

Local Qode 1.0.5 archive doesnt exists... Copying Qode from cache...
Copying Qode from cache failed...  Error: ENOENT: no such file or directory, stat '/Users/matthew/Library/Caches/qode-nodejs/qode-v1.0.5.zip'
Now downloading a fresh copy of qode-v1.0.5 from Github...
Downloading from:  https://github.com/nodegui/qode/releases/download/v1.0.5/darwin-x64.zip
downloading [====================================================================================================] 100% of 50.3 Mb 0.0s
Local Qode 1.0.5 archive doesnt exists... Copying Qode from cache...
Extracting binaries...

> @nodegui/nodegui@0.2.1 postinstall /Users/matthew/IdeaProjects/Strands-Chat/StrandsGUI/node_modules/@nodegui/nodegui
> npm run build:addon


> @nodegui/nodegui@0.2.1 build:addon /Users/matthew/IdeaProjects/Strands-Chat/StrandsGUI/node_modules/@nodegui/nodegui
> cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile

[
  '/Users/matthew/.nvm/versions/node/v12.13.0/bin/node',
  '/Users/matthew/IdeaProjects/Strands-Chat/StrandsGUI/node_modules/.bin/cmake-js',
  'compile'
]
info TOOL Using Unix Makefiles generator.
info CMD CONFIGURE
info RUN cmake "/Users/matthew/IdeaProjects/Strands-Chat/StrandsGUI/node_modules/@nodegui/nodegui" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="5.3.2" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/Users/matthew/IdeaProjects/Strands-Chat/StrandsGUI/node_modules/@nodegui/nodegui/build/Release" -DCMAKE_JS_INC="/Users/matthew/.cmake-js/node-x64/v12.13.0/include/node;/Users/matthew/IdeaProjects/Strands-Chat/StrandsGUI/node_modules/nan" -DCMAKE_JS_SRC="" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="12.13.0" -DNODE_ARCH="x64" -DCMAKE_CXX_FLAGS="-D_DARWIN_USE_64_BIT_INODE=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILDING_NODE_EXTENSION" -DCMAKE_SHARED_LINKER_FLAGS="-undefined dynamic_lookup"
Not searching for unused variables given on the command line.
-- The C compiler identification is AppleClang 11.0.0.11000033
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/matthew/IdeaProjects/Strands-Chat/StrandsGUI/node_modules/@nodegui/nodegui/build
info CMD BUILD
info RUN cmake --build "/Users/matthew/IdeaProjects/Strands-Chat/StrandsGUI/node_modules/@nodegui/nodegui/build" --config Release
Scanning dependencies of target nodegui_core_autogen
[  2%] Automatic MOC for target nodegui_core
[  2%] Built target nodegui_core_autogen
Scanning dependencies of target nodegui_core
[  4%] Building CXX object CMakeFiles/nodegui_core.dir/nodegui_core_autogen/mocs_compilation.cpp.o
[  6%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/Extras/Utils/nutils.cpp.o
[ 11%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/main.cpp.o
[ 11%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/FlexLayout/flexlayout.cpp.o
[ 15%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/YogaWidget/nodestyle.cpp.o
[ 15%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/FlexLayout/flexitem.cpp.o
[ 17%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/Events/eventsmap.cpp.o
[ 20%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/Events/eventwidget.cpp.o
[ 22%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/YogaWidget/yogawidget.cpp.o
[ 24%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/log.cpp.o
[ 26%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/Utils.cpp.o
[ 28%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGConfig.cpp.o
[ 31%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGEnums.cpp.o
[ 33%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGLayout.cpp.o
[ 35%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGNode.cpp.o
[ 37%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGNodePrint.cpp.o
[ 40%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGStyle.cpp.o
[ 42%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGValue.cpp.o
[ 44%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/Yoga.cpp.o
[ 46%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/event/event.cpp.o
[ 48%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/internal/experiments.cpp.o
[ 51%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtGui/QApplication/qapplication_wrap.cpp.o
[ 53%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtGui/QClipboard/qclipboard_wrap.cpp.o
[ 55%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtGui/QEvent/QKeyEvent/qkeyevent_wrap.cpp.o
[ 57%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtGui/QPixmap/qpixmap_wrap.cpp.o
[ 60%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtGui/QIcon/qicon_wrap.cpp.o
[ 62%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtGui/QCursor/qcursor_wrap.cpp.o
[ 64%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtWidgets/QWidget/qwidget_wrap.cpp.o
[ 66%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtWidgets/QGridLayout/qgridlayout_wrap.cpp.o
[ 68%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtWidgets/QDial/qdial_wrap.cpp.o
[ 71%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtWidgets/QLabel/qlabel_wrap.cpp.o
[ 73%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtWidgets/QLayout/qlayout_wrap.cpp.o
[ 75%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtWidgets/QMainWindow/qmainwindow_wrap.cpp.o
[ 77%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtWidgets/QPushButton/qpushbutton_wrap.cpp.o
[ 80%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtWidgets/QSpinBox/qspinbox_wrap.cpp.o
[ 82%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtWidgets/QCheckBox/qcheckbox_wrap.cpp.o
[ 84%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtWidgets/QProgressBar/qprogressbar_wrap.cpp.o
[ 86%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtWidgets/QRadioButton/qradiobutton_wrap.cpp.o
[ 88%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtWidgets/QTabWidget/qtabwidget_wrap.cpp.o
[ 91%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtWidgets/QLineEdit/qlineedit_wrap.cpp.o
[ 93%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtWidgets/QPlainTextEdit/qplaintextedit_wrap.cpp.o
[ 95%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtWidgets/QScrollArea/qscrollarea_wrap.cpp.o
[ 97%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/FlexLayout/flexlayout_wrap.cpp.o
[100%] Linking CXX shared library Release/nodegui_core.node
[100%] Built target nodegui_core
added 748 packages from 513 contributors and audited 5887 packages in 108.546s
found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details
Matthews-MacBook-Pro:StrandsGUI matthew$ npm run start

> strandsgui@0.0.0 start /Users/matthew/IdeaProjects/Strands-Chat/StrandsGUI
> node ./bin/www

qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Abort trap: 6

It's because it can't find QT_QPA_PLATFORM_PLUGIN_PATH. I ran brew install qt and set this var to the installed qt plugins folder. (Still didn't work because it tried to load both qt's) I haven't been able to find the qode qt plugins.


$ QT_QPA_PLATFORM_PLUGIN_PATH=/usr/local/Cellar/qt/5.13.1/plugins  npm run start
> strandsgui@0.0.0 start /Users/matthew/IdeaProjects/Strands-Chat/StrandsGUI
> node ./bin/www

objc[25913]: Class QMacAutoReleasePoolTracker is implemented in both /Users/matthew/IdeaProjects/Strands-Chat/StrandsGUI/node_modules/@nodegui/qode/dist/1.0.5/lib/QtCore.framework/Versions/5/QtCore (0x104fd35a0) and /usr/local/Cellar/qt/5.13.1/lib/QtCore.framework/Versions/5/QtCore (0x10931a088). One of the two will be used. Which one is undefined.
objc[25913]: Class QT_ROOT_LEVEL_POOL__THESE_OBJECTS_WILL_BE_RELEASED_WHEN_QAPP_GOES_OUT_OF_SCOPE is implemented in both /Users/matthew/IdeaProjects/Strands-Chat/StrandsGUI/node_modules/@nodegui/qode/dist/1.0.5/lib/QtCore.framework/Versions/5/QtCore (0x104fd3618) and /usr/local/Cellar/qt/5.13.1/lib/QtCore.framework/Versions/5/QtCore (0x10931a100). One of the two will be used. Which one is undefined.
objc[25913]: Class RunLoopModeTracker is implemented in both /Users/matthew/IdeaProjects/Strands-Chat/StrandsGUI/node_modules/@nodegui/qode/dist/1.0.5/lib/QtCore.framework/Versions/5/QtCore (0x104fd3640) and /usr/local/Cellar/qt/5.13.1/lib/QtCore.framework/Versions/5/QtCore (0x10931a178). One of the two will be used. Which one is undefined.
QObject::moveToThread: Current thread (0x10262d480) is not the object's thread (0x102503f50).
Cannot move to target thread (0x10262d480)

You might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "/usr/local/Cellar/qt/5.13.1/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: cocoa, minimal, offscreen, webgl.

Abort trap: 6

After doing what @MatthewDarnell did, I was able to make it work ...

Steps:

$ brew install qt cmake
$ cd nodegui-starter
$ QT_QPA_PLATFORM_PLUGIN_PATH=/usr/local/Cellar/qt/5.13.1/plugins npm install
$ npm start

@khaledez that worked for me, too.

If you still have the following prompt when running npm start in mac:

qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""

You can try to run the command:
QT_QPA_PLATFORM_PLUGIN_PATH=node_modules/@nodegui/nodegui/miniqt/5.14.1/clang_64/plugins yarn start

on linux homebrew /home/linuxbrew/.linuxbrew/Cellar/qt/5.15.0/plugins

Still failing on Ubuntu 20.04, node14

/home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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 ^ [15/74] Building CXX object CMakeFiles...ui_core_autogen/mocs_compilation.cpp.o FAILED: CMakeFiles/nodegui_core.dir/nodegui_core_autogen/mocs_compilation.cpp.o /home/linuxbrew/.linuxbrew/bin/c++ -DNAPI_CPP_EXCEPTIONS -Dnodegui_core_EXPORTS -I. -I../ -Inodegui_core_autogen/include -I/home/gnb/Sites/rn-starter/node_modules/@nodegui/qode/dist/1.0.6/include -I/home/gnb/Sites/rn-starter/node_modules/@nodegui/qode/dist/1.0.6/include/QtCore -I/home/gnb/Sites/rn-starter/node_modules/@nodegui/qode/dist/1.0.6/include/QtGui -I/home/gnb/Sites/rn-starter/node_modules/@nodegui/qode/dist/1.0.6/include/QtWidgets -I/home/gnb/Sites/rn-starter/node_modules/node-addon-api -I/home/gnb/.cmake-js/node-x64/v14.0.0/include/node -I../src/cpp -I../src/cpp/include -I../src/cpp/include/deps -I../src/cpp/include/nodegui -O3 -DNDEBUG -fPIC -std=gnu++14 -MD -MT CMakeFiles/nodegui_core.dir/nodegui_core_autogen/mocs_compilation.cpp.o -MF CMakeFiles/nodegui_core.dir/nodegui_core_autogen/mocs_compilation.cpp.o.d -o CMakeFiles/nodegui_core.dir/nodegui_core_autogen/mocs_compilation.cpp.o -c nodegui_core_autogen/mocs_compilation.cpp In file included from /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/bits/hashtable.h:35:0, from /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/unordered_map:47, from ../src/cpp/include/nodegui/core/Events/eventsmap.h:3, from ../src/cpp/include/nodegui/core/Events/eventwidget.h:7, from ../src/cpp/include/nodegui/core/Events/eventwidget_macro.h:6, from ../src/cpp/include/nodegui/core/FlexLayout/flexlayout.hpp:7, from ../src/cpp/include/nodegui/Extras/Utils/nutils.h:8, from ../src/cpp/include/nodegui/QtCore/QObject/qobject_macro.h:3, from ../src/cpp/include/nodegui/QtCore/QObject/nobject.hpp:4, from nodegui_core_autogen/T3XSOEGQIH/moc_nobject.cpp:10, from nodegui_core_autogen/mocs_compilation.cpp:2: /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/bits/hashtable_policy.h: In instantiation of 'struct std::__detail::__is_noexcept_hash<QEvent::Type, std::hash<QEvent::Type> >': /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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> > >' /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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> > > >' /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/bits/unordered_map.h:100:66: required from 'class std::unordered_map<QEvent::Type, std::__cxx11::basic_string<char> >' ../src/cpp/include/nodegui/core/Events/eventwidget.h:12:49: required from here /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/bits/move.h:57:0, from /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/bits/stl_pair.h:59, from /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/bits/stl_algobase.h:64, from /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/memory:62, from nodegui_core_autogen/T3XSOEGQIH/moc_nobject.cpp:9, from nodegui_core_autogen/mocs_compilation.cpp:2: /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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> > > >': /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/bits/unordered_map.h:100:66: required from 'class std::unordered_map<QEvent::Type, std::__cxx11::basic_string<char> >' ../src/cpp/include/nodegui/core/Events/eventwidget.h:12:49: required from here /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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 /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/unordered_map:48:0, from ../src/cpp/include/nodegui/core/Events/eventsmap.h:3, from ../src/cpp/include/nodegui/core/Events/eventwidget.h:7, from ../src/cpp/include/nodegui/core/Events/eventwidget_macro.h:6, from ../src/cpp/include/nodegui/core/FlexLayout/flexlayout.hpp:7, from ../src/cpp/include/nodegui/Extras/Utils/nutils.h:8, from ../src/cpp/include/nodegui/QtCore/QObject/qobject_macro.h:3, from ../src/cpp/include/nodegui/QtCore/QObject/nobject.hpp:4, from nodegui_core_autogen/T3XSOEGQIH/moc_nobject.cpp:10, from nodegui_core_autogen/mocs_compilation.cpp:2: /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/bits/unordered_map.h: In instantiation of 'class std::unordered_map<QEvent::Type, std::__cxx11::basic_string<char> >': ../src/cpp/include/nodegui/core/Events/eventwidget.h:12:49: required from here /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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; ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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; ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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; ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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; ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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; ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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; ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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; ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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; ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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; ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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; ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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; ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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; ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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; ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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; ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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; ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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; ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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; ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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) ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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) ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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) ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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) ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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) ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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) ^ /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/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 ^ ninja: build stopped: subcommand failed. ERR! OMG Process terminated: 1 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @nodegui/nodegui@0.12.1 build:addon: cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nodegui/nodegui@0.12.1 build:addon script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! /home/gnb/.npm/_logs/2020-08-10T12_15_20_212Z-debug.log
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/react-scripts/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/jest-haste-map/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/watchpack-chokidar2/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/webpack-dev-server/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodegui/nodegui@0.12.1 postinstall: npm run build:addon
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nodegui/nodegui@0.12.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/gnb/.npm/_logs/2020-08-10T12_15_27_891Z-debug.log
`

a7ul commented

Hi @gregbenner You need gcc v7. From the logs looks like you are on gcc v5

Hi @khaledez , can you do
rm -rf node_modules
rm -rf ~/Library/Caches/qode-nodejs
npm install

And post the logs here.

Where would qode be on Ubuntu to remove ?

Hi @gregbenner You need gcc v7. From the logs looks like you are on gcc v5

Thank you so much! excited now that it's working

Well almost working, looks like a webpack error now after running npm run dev fine npm start yields
Error: ENOENT: no such file or directory, open '/home/gnb/Sites/rn-starter/node_modules/webpack/hot/poll.js'")

a7ul commented

Can you verify it that file exists ?
if not maybe try removing node_modules and re installing again.

it does exist

I've deleted node_modules and package-lock.json a few times now, no sucodegui cess I used the create react app tool.
Funny enough cloning the starter project instead seems to work