ruslang02 / discord-qt

Discord client powered by Node.JS and Qt Widgets.
GNU General Public License v3.0
208 stars 11 forks source link

Can't build #32

Closed ThatOneCalculator closed 3 years ago

ThatOneCalculator commented 3 years ago

Given the error logs, it seems like there was a misspelling of node as qode?

git clone https://github.com/ruslang02/discord-qt
cd discord-qt/
npm install
npm start
Cloning into 'discord-qt'...
remote: Enumerating objects: 287, done.
remote: Counting objects: 100% (287/287), done.
remote: Compressing objects: 100% (229/229), done.
remote: Total 4393 (delta 113), reused 162 (delta 51), pack-reused 4106
Receiving objects: 100% (4393/4393), 3.35 MiB | 3.03 MiB/s, done.
Resolving deltas: 100% (2709/2709), done.
[                  ] / reify:ffplay-static: http fetch GET 2
[                  ] / reify:ffplay-static: http fetch GET 2
[                  ] / reify:ffplay-static: http fetch GET 2
[                  ] / reify:ffplay-static: http fetch GET 2
[                  ] / reify:ffplay-static: http fetch GET 2
npm ERR! code 1
npm ERR! path /home/kainoa/discord-qt/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/nodegui@0.26.0 setupqt
npm ERR! > cross-env node ./scripts/setupMiniQt.js
npm ERR! 
npm ERR! Minimal Qt 5.14.1 setup:
npm ERR! Extracting /home/kainoa/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953qtsvg-Linux-RHEL_7_6-GCC-Linux-RHEL_7_6-X86_64.7z to /home/kainoa/discord-qt/node_modules/@nodegui/nodegui/miniqt ...
npm ERR! Qt SVG for Minimal Qt: 5.14.1 installation was setup successfully.  outDir: /home/kainoa/discord-qt/node_modules/@nodegui/nodegui/miniqt
npm ERR! Extracting /home/kainoa/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953icu-linux-Rhel7.2-x64.7z to /home/kainoa/discord-qt/node_modules/@nodegui/nodegui/miniqt ...
npm ERR! Qt ICU for Minimal Qt: 5.14.1 installation was setup successfully.  outDir: /home/kainoa/discord-qt/node_modules/@nodegui/nodegui/miniqt
npm ERR! Extracting /home/kainoa/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953qtbase-Linux-RHEL_7_6-GCC-Linux-RHEL_7_6-X86_64.7z to /home/kainoa/discord-qt/node_modules/@nodegui/nodegui/miniqt ...
npm ERR! Qt Base for Minimal Qt: 5.14.1 installation was setup successfully.  outDir: /home/kainoa/discord-qt/node_modules/@nodegui/nodegui/miniqt
npm ERR! 
npm ERR! > @nodegui/nodegui@0.26.0 prebuild:install
npm ERR! > prebuild-install --backend=cmake-js --runtime=napi --verbose
npm ERR! 
npm ERR! 
npm ERR! > @nodegui/nodegui@0.26.0 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/kainoa/discord-qt/node_modules/.bin/cmake-js',
npm ERR!   'compile'
npm ERR! ]
npm ERR! prebuild-install info begin Prebuild-install version 5.3.6
npm ERR! prebuild-install info install installing standalone, skipping download.
npm ERR! npm ERR! code 1
npm ERR! npm ERR! path /home/kainoa/discord-qt/node_modules/@nodegui/nodegui
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c prebuild-install --backend=cmake-js --runtime=napi --verbose
npm ERR! 
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR!     /home/kainoa/.npm/_logs/2021-03-05T07_10_29_735Z-debug.log
npm ERR! info TOOL Using Unix Makefiles generator.
npm ERR! info DIST Downloading distribution files.
npm ERR! http DIST  - https://nodejs.org/dist/v15.11.0/SHASUMS256.txt
npm ERR! http DIST  - https://nodejs.org/dist/v15.11.0/node-v15.11.0-headers.tar.gz
npm ERR! info REP Build has been failed, trying to do a full rebuild.
npm ERR! ERR! OMG CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: http://cmake.org.
npm ERR! npm ERR! code 1
npm ERR! npm ERR! path /home/kainoa/discord-qt/node_modules/@nodegui/nodegui
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile
npm ERR! 
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR!     /home/kainoa/.npm/_logs/2021-03-05T07_1
0_30_783Z-debug.log

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/kainoa/.npm/_logs/2021-03-05T07_10_31_524Z-debug.log

> discord-qt@0.5.1 start
> qode ./dist/index.js
ruslang02 commented 3 years ago

The error clearly states that you do not have CMake installed which is required to build Qt native module.

ThatOneCalculator commented 3 years ago

Ok