Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nodegui Systray #136

Open
gunyakov opened this issue Apr 18, 2023 · 0 comments
Open

Nodegui Systray #136

gunyakov opened this issue Apr 18, 2023 · 0 comments

Comments

@gunyakov
Copy link

gunyakov commented Apr 18, 2023

I try to install it under Linux Mint 21. And get a lot of errors

npm ERR! code 1
npm ERR! path /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui
npm ERR! command failed
npm ERR! command sh -c cross-env npm run setupqt && (node ./scripts/skip.js || npm run prebuild:install || npm run build:addon)
npm ERR! > @nodegui/[email protected] setupqt
npm ERR! > cross-env node ./scripts/setupMiniQt.js
npm ERR! 
npm ERR! Minimal Qt 5.14.1 setup:
npm ERR! Extracting /home/goodzon/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953icu-linux-Rhel7.2-x64.7z to /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/miniqt ...
npm ERR! Extracting /home/goodzon/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953qtbase-Linux-RHEL_7_6-GCC-Linux-RHEL_7_6-X86_64.7z to /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/miniqt ...
npm ERR! Qt ICU for Minimal Qt: 5.14.1 installation was setup successfully.  outDir: /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/miniqt
npm ERR! Qt Base for Minimal Qt: 5.14.1 installation was setup successfully.  outDir: /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/miniqt
npm ERR! 
npm ERR! > @nodegui/[email protected] prebuild:install
npm ERR! > prebuild-install --backend=cmake-js --runtime=napi --verbose
npm ERR! 
npm ERR! 
npm ERR! > @nodegui/[email protected] build:addon
npm ERR! > cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile
npm ERR! 
npm ERR! [
npm ERR!   '/usr/bin/node',
npm ERR!   '/home/goodzon/git/examples/nodegui/systray/node_modules/.bin/cmake-js',
npm ERR!   'compile'
npm ERR! ]
npm ERR! Not searching for unused variables given on the command line.
npm ERR! -- The C compiler identification is GNU 11.3.0
npm ERR! -- The CXX compiler identification is GNU 11.3.0
npm ERR! -- Detecting C compiler ABI info
npm ERR! -- Detecting C compiler ABI info - done
npm ERR! -- Check for working C compiler: /usr/bin/cc - skipped
npm ERR! -- Detecting C compile features
npm ERR! -- Detecting C compile features - done
npm ERR! -- Detecting CXX compiler ABI info
npm ERR! -- Detecting CXX compiler ABI info - done
npm ERR! -- Check for working CXX compiler: /usr/bin/c++ - skipped
npm ERR! -- Detecting CXX compile features
npm ERR! -- Detecting CXX compile features - done
npm ERR! -- Using QT installation for nodegui_core QT_CMAKE_HOME_DIR:/home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/miniqt/5.14.1/gcc_64/lib/cmake/Qt5
npm ERR! -- Configuring done
npm ERR! -- Generating done
npm ERR! -- Build files have been written to: /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/build
npm ERR! [  1%] Automatic MOC and UIC for target nodegui_core
npm ERR! [  1%] Built target nodegui_core_autogen
npm ERR! [  8%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/FlexLayout/flexutils.cpp.o
npm ERR! [  8%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/Extras/Utils/nutils.cpp.o
npm ERR! [  8%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/FlexLayout/flexlayout.cpp.o
npm ERR! [  8%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/FlexLayout/flexitem.cpp.o
npm ERR! [  8%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/Integration/integration.cpp.o
npm ERR! [  8%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/main.cpp.o
npm ERR! [  9%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/YogaWidget/nodestyle.cpp.o
npm ERR! [  9%] Building CXX object CMakeFiles/nodegui_core.dir/nodegui_core_autogen/mocs_compilation.cpp.o
npm ERR! [ 10%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/Events/eventsmap.cpp.o
npm ERR! [ 11%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/Events/eventwidget.cpp.o
npm ERR! [ 12%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/YogaWidget/yogawidget.cpp.o
npm ERR! [ 13%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/log.cpp.o
npm ERR! [ 14%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/Utils.cpp.o
npm ERR! [ 15%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGConfig.cpp.o
npm ERR! [ 16%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGEnums.cpp.o
npm ERR! [ 17%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGLayout.cpp.o
npm ERR! [ 18%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGNode.cpp.o
npm ERR! [ 19%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGNodePrint.cpp.o
npm ERR! [ 20%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGStyle.cpp.o
npm ERR! [ 21%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGValue.cpp.o
npm ERR! [ 22%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/Yoga.cpp.o
npm ERR! [ 23%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/event/event.cpp.o
npm ERR! [ 24%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/internal/experiments.cpp.o
npm ERR! [ 25%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtGui/QColor/qcolor_wrap.cpp.o
npm ERR! [ 26%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtGui/QApplication/qapplication_wrap.cpp.o
npm ERR! Not searching for unused variables given on the command line.
npm ERR! -- The C compiler identification is GNU 11.3.0
npm ERR! -- The CXX compiler identification is GNU 11.3.0
npm ERR! -- Detecting C compiler ABI info
npm ERR! -- Detecting C compiler ABI info - done
npm ERR! -- Check for working C compiler: /usr/bin/cc - skipped
npm ERR! -- Detecting C compile features
npm ERR! -- Detecting C compile features - done
npm ERR! -- Detecting CXX compiler ABI info
npm ERR! -- Detecting CXX compiler ABI info - done
npm ERR! -- Check for working CXX compiler: /usr/bin/c++ - skipped
npm ERR! -- Detecting CXX compile features
npm ERR! -- Detecting CXX compile features - done
npm ERR! -- Using QT installation for nodegui_core QT_CMAKE_HOME_DIR:/home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/miniqt/5.14.1/gcc_64/lib/cmake/Qt5
npm ERR! -- Configuring done
npm ERR! -- Generating done
npm ERR! -- Build files have been written to: /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/build
npm ERR! [  1%] Automatic MOC and UIC for target nodegui_core
npm ERR! [  1%] Built target nodegui_core_autogen
npm ERR! [  9%] Building CXX object CMakeFiles/nodegui_core.dir/nodegui_core_autogen/mocs_compilation.cpp.o
npm ERR! [  9%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/Extras/Utils/nutils.cpp.o
npm ERR! [  9%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/main.cpp.o
npm ERR! [  9%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/FlexLayout/flexitem.cpp.o
npm ERR! [  9%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/FlexLayout/flexlayout.cpp.o
npm ERR! [  9%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/YogaWidget/nodestyle.cpp.o
npm ERR! [  9%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/Integration/integration.cpp.o
npm ERR! [  9%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/FlexLayout/flexutils.cpp.o
npm ERR! [ 10%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/Events/eventsmap.cpp.o
npm ERR! [ 11%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/Events/eventwidget.cpp.o
npm ERR! [ 12%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/core/YogaWidget/yogawidget.cpp.o
npm ERR! [ 13%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/log.cpp.o
npm ERR! [ 14%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/Utils.cpp.o
npm ERR! [ 15%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGConfig.cpp.o
npm ERR! [ 16%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGEnums.cpp.o
npm ERR! [ 17%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGLayout.cpp.o
npm ERR! [ 18%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGNode.cpp.o
npm ERR! [ 19%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGNodePrint.cpp.o
npm ERR! [ 20%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGStyle.cpp.o
npm ERR! [ 21%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/YGValue.cpp.o
npm ERR! [ 22%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/Yoga.cpp.o
npm ERR! [ 23%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/event/event.cpp.o
npm ERR! [ 24%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/internal/experiments.cpp.o
npm ERR! [ 25%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtGui/QColor/qcolor_wrap.cpp.o
npm ERR! [ 26%] Building CXX object CMakeFiles/nodegui_core.dir/src/cpp/lib/QtGui/QApplication/qapplication_wrap.cpp.o
npm ERR! Archive already exists at /home/goodzon/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953icu-linux-Rhel7.2-x64.7z. Skipping download....
npm ERR! Archive already exists at /home/goodzon/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953qtbase-Linux-RHEL_7_6-GCC-Linux-RHEL_7_6-X86_64.7z. Skipping download....
npm ERR! prebuild-install info begin Prebuild-install version 5.3.3
npm ERR! prebuild-install info install installing standalone, skipping download.
npm ERR! info TOOL Using Unix Makefiles generator.
npm ERR! info CMD CONFIGURE
npm ERR! info RUN cmake "/home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="6.1.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/build/Release" -DCMAKE_JS_INC="/home/goodzon/.cmake-js/node-x64/v18.16.0/include/node" -DCMAKE_JS_SRC="" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="18.16.0" -DNODE_ARCH="x64"
npm ERR! info CMD BUILD
npm ERR! info RUN cmake --build "/home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/build" --config Release
npm ERR! In file included from /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/src/cpp/include/deps/yoga/event/event.cpp:8:
npm ERR! /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/src/cpp/include/deps/yoga/event/event.h:48:31: error: ‘uint8_t’ was not declared in this scope
npm ERR!    48 |   std::array<int, static_cast<uint8_t>(LayoutPassReason::COUNT)>
npm ERR!       |                               ^~~~~~~
npm ERR! /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/src/cpp/include/deps/yoga/event/event.h:14:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
npm ERR!    13 | #include <functional>
npm ERR!   +++ |+#include <cstdint>
npm ERR!    14 | #include <vector>
npm ERR! /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/src/cpp/include/deps/yoga/event/event.h:48:38: error: template argument 2 is invalid
npm ERR!    48 |   std::array<int, static_cast<uint8_t>(LayoutPassReason::COUNT)>
npm ERR!       |                                      ^
npm ERR! /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/src/cpp/include/deps/yoga/event/event.h:48:40: error: ‘enum class facebook::yoga::LayoutPassReason’ is not a class or namespace
npm ERR!    48 |   std::array<int, static_cast<uint8_t>(LayoutPassReason::COUNT)>
npm ERR!       |                                        ^~~~~~~~~~~~~~~~
npm ERR! /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/src/cpp/include/deps/yoga/event/event.h:48:63: error: expected ‘;’ at end of member declaration
npm ERR!    48 |   std::array<int, static_cast<uint8_t>(LayoutPassReason::COUNT)>
npm ERR!       |                                                               ^
npm ERR!       |                                                                ;
npm ERR! /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/src/cpp/include/deps/yoga/event/event.h:48:64: error: expected unqualified-id before ‘>’ token
npm ERR!    48 |   std::array<int, static_cast<uint8_t>(LayoutPassReason::COUNT)>
npm ERR!       |                                                                ^
npm ERR! gmake[2]: *** [CMakeFiles/nodegui_core.dir/build.make:370: CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/event/event.cpp.o] Ошибка 1
npm ERR! gmake[2]: *** Ожидание завершения заданий…
npm ERR! gmake[1]: *** [CMakeFiles/Makefile2:84: CMakeFiles/nodegui_core.dir/all] Ошибка 2
npm ERR! gmake: *** [Makefile:91: all] Ошибка 2
npm ERR! info REP Build has been failed, trying to do a full rebuild.
npm ERR! info CMD CLEAN
npm ERR! info RUN cmake -E remove_directory "/home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/build"
npm ERR! info CMD CONFIGURE
npm ERR! info RUN cmake "/home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="6.1.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/build/Release" -DCMAKE_JS_INC="/home/goodzon/.cmake-js/node-x64/v18.16.0/include/node" -DCMAKE_JS_SRC="" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="18.16.0" -DNODE_ARCH="x64"
npm ERR! info CMD BUILD
npm ERR! info RUN cmake --build "/home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/build" --config Release
npm ERR! In file included from /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/src/cpp/include/deps/yoga/event/event.cpp:8:
npm ERR! /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/src/cpp/include/deps/yoga/event/event.h:48:31: error: ‘uint8_t’ was not declared in this scope
npm ERR!    48 |   std::array<int, static_cast<uint8_t>(LayoutPassReason::COUNT)>
npm ERR!       |                               ^~~~~~~
npm ERR! /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/src/cpp/include/deps/yoga/event/event.h:14:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
npm ERR!    13 | #include <functional>
npm ERR!   +++ |+#include <cstdint>
npm ERR!    14 | #include <vector>
npm ERR! /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/src/cpp/include/deps/yoga/event/event.h:48:38: error: template argument 2 is invalid
npm ERR!    48 |   std::array<int, static_cast<uint8_t>(LayoutPassReason::COUNT)>
npm ERR!       |                                      ^
npm ERR! /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/src/cpp/include/deps/yoga/event/event.h:48:40: error: ‘enum class facebook::yoga::LayoutPassReason’ is not a class or namespace
npm ERR!    48 |   std::array<int, static_cast<uint8_t>(LayoutPassReason::COUNT)>
npm ERR!       |                                        ^~~~~~~~~~~~~~~~
npm ERR! /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/src/cpp/include/deps/yoga/event/event.h:48:63: error: expected ‘;’ at end of member declaration
npm ERR!    48 |   std::array<int, static_cast<uint8_t>(LayoutPassReason::COUNT)>
npm ERR!       |                                                               ^
npm ERR!       |                                                                ;
npm ERR! /home/goodzon/git/examples/nodegui/systray/node_modules/@nodegui/nodegui/src/cpp/include/deps/yoga/event/event.h:48:64: error: expected unqualified-id before ‘>’ token
npm ERR!    48 |   std::array<int, static_cast<uint8_t>(LayoutPassReason::COUNT)>
npm ERR!       |                                                                ^
npm ERR! gmake[2]: *** [CMakeFiles/nodegui_core.dir/build.make:370: CMakeFiles/nodegui_core.dir/src/cpp/include/deps/yoga/event/event.cpp.o] Ошибка 1
npm ERR! gmake[2]: *** Ожидание завершения заданий…
npm ERR! gmake[1]: *** [CMakeFiles/Makefile2:84: CMakeFiles/nodegui_core.dir/all] Ошибка 2
npm ERR! gmake: *** [Makefile:91: all] Ошибка 2
npm ERR! ERR! OMG Process terminated: 2

Any suggestion???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant