nodegui / qode Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED: Please see https://github.com/nodegui/qodejs instead
Home Page: https://nodegui.github.io/nodegui/#/tutorial/application-architecture?id=qode
DEPRECATED: Please see https://github.com/nodegui/qodejs instead
Home Page: https://nodegui.github.io/nodegui/#/tutorial/application-architecture?id=qode
Currently by default qode only includes the following libraries QtWidgets, QtCore & QtGui which is required for https://github.com/nodegui/nodegui to work, but if one were to create an external 3rd party library to use with qode (https://github.com/ng-qt/ng-test) you would need to be able to define the libraries you'd want to include.
Reference: ng-qt/ng-test#1
Hi, first of all thanks for this great work! I'm looking at Nodegui for a desktop app I need to build for Win32 machines.
I know Qode currently supports Win64 only, but would it be possible it to support Win32 with some work?
If possible, I'd like to give it a try.
Thanks in advance.
Hi
I've sucessfully packed the app using nodegui-packer and it runs fine from the build folder.
As soon as I copy and paste the app folder to a location it wont run anymore and crashes silently, how can I find out whats not working?
Hi, I'm looking into this project to see if it would be reusable for node-gtk, but the file linked in the readme doesn't exist anymore: https://github.com/nodegui/qode#message-loop-injection-api
Where can I find more documentation & code?
Thanks
When Nodejs repo updates its dependency for windows build from vs2017 to vs2019, need to upgrade here aswell.
Related issue on Nodejs : nodejs/node#27214
Any attempt to install the qode npm package as the super user fails.
npm install -g @nodegui/qode
fails to run with Error while setting up Qode { [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@nodegui/qode/dist']
cd /root && npm install @nodegui/qode
fails with Cannot find module '/root/node_modules/@nodegui/qode/install.js'
cd /home/some_user/Desktop/some_folder && npm install @nodegui/qode
fails with Failed at the @nodegui/[email protected] postinstall script.
Running npm install @nodegui/qode
in any other folder as a non-super-user works.
System Information:
I am running Apple silicon, and npm install fails with this error:
Error while setting up Qode: Error: Error while downloading Qode v2.1.0:https://github.com/nodegui/qode/releases/download/v2.1.0/qode-darwin-arm64-v2.1.0.tar.gz. Not Found
Any way to fix this, or do I have to wait until this architecture is supported?
linux fedora 30 os
`python: can't open file 'configure': [Errno 2] No such file or directory
child_process.js:660
throw err;
^
Error: Command failed: python configure --dest-cpu=x64
at checkExecSyncError (child_process.js:621:11)
at Object.execSync (child_process.js:657:15)
at execSync (/home/maxim/Desktop/work/qode/build.js:13:35)
at Object. (/home/maxim/Desktop/work/qode/build.js:82:1)
at Module._compile (internal/modules/cjs/loader.js:936:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
at Module.load (internal/modules/cjs/loader.js:790:32)
at Function.Module._load (internal/modules/cjs/loader.js:703:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:999:10)
at internal/main/run_main_module.js:17:11 {
status: 2,
signal: null,
output: [ null, null, null ],
pid: 12609,
stdout: null,
stderr: null
}
`
I'm trying to understand how qode is running via an npm script. I.e: npm start.
Opening a command window in my project and typing qode yields a 'executable not found error'.
Do actions executed via npm have access to some extra path?
Update
I understand now, qode is made available via the /node_modules/.bin/ folder, which I presume is why it runs via npm scripts! Closing.
qode not support utf-8 path?
$ ./qode.exe
internal/modules/cjs/loader.js:1023
throw err;
^
Error: Cannot find module 'H:\cloud-music-nodegui\deploy\win32\build\������\dist'
Require stack:
- internal/preload
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1020:15)
at Function.Module._load (internal/modules/cjs/loader.js:890:27)
at Module.require (internal/modules/cjs/loader.js:1080:19)
at Module._preloadModules (internal/modules/cjs/loader.js:1321:12)
at loadPreloadModules (internal/bootstrap/pre_execution.js:439:5)
at prepareMainThreadExecution (internal/bootstrap/pre_execution.js:71:3)
at internal/main/eval_stdin.js:17:1 {
code: 'MODULE_NOT_FOUND',
requireStack: [ 'internal/preload' ]
}
Add thanks to Qt
Add thanks to logo maker
Add thanks to any other library used.
We need a CLI flag for specifying a headless mode (much like how it works in Chrome)
We need a way to programmatically instantiate an application without a GUI, so that we can create custom test environments for e.g Jest
Related to nodegui/nodegui#37
I cloned the repo and made sure the git submodules have been synced. However, I get these error messages when running node build.js
:
Env variable: HOST_ARCH not specified, using default: x64
Node.js configure: Found Python 2.7.15...
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCLinkerTool/ImageHasSafeExceptionHandlers
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: Missing input files:
tools\msvs\genfiles\node_etw_provider.rc
tools\msvs\genfiles\node_etw_provider.h
INFO: configure completed successfully
Traceback (most recent call last):
File "tools/gyp/gyp_main.py", line 16, in <module>
sys.exit(gyp.script_main())
File "tools/gyp\pylib\gyp\__init__.py", line 554, in script_main
return main(sys.argv[1:])
File "tools/gyp\pylib\gyp\__init__.py", line 547, in main
return gyp_main(args)
File "tools/gyp\pylib\gyp\__init__.py", line 523, in gyp_main
options.duplicate_basename_check)
File "tools/gyp\pylib\gyp\__init__.py", line 107, in Load
generator.CalculateVariables(default_variables, params)
File "tools/gyp\pylib\gyp\generator\ninja.py", line 1697, in CalculateVariables
gyp.msvs_emulation.CalculateCommonVariables(default_variables, params)
File "tools/gyp\pylib\gyp\msvs_emulation.py", line 1094, in CalculateCommonVariables
msvs_version = gyp.msvs_emulation.GetVSVersion(generator_flags)
File "tools/gyp\pylib\gyp\msvs_emulation.py", line 945, in GetVSVersion
allow_fallback=False)
File "tools/gyp\pylib\gyp\MSVSVersion.py", line 504, in SelectVisualStudioVersion
raise ValueError('Could not locate Visual Studio installation.')
ValueError: Could not locate Visual Studio installation.
child_process.js:669
throw err;
^
Error: Command failed: python tools/gyp/gyp_main.py ../qode.gyp -f ninja -Dhost_arch=x64 -Dtarget_arch=x64 -I../config/node_overrides.gypi --depth .
at checkExecSyncError (child_process.js:630:11)
at Object.execSync (child_process.js:666:15)
at execSync (C:\Users\Singha360\Desktop\qode\build.js:13:35)
at Object.<anonymous> (C:\Users\Singha360\Desktop\qode\build.js:46:1)
at Module._compile (internal/modules/cjs/loader.js:1156:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47 {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 5228,
stdout: null,
stderr: null
}
I do have Visual Studio Community 2019 with Desktop development with C++ installed. Python 2.7.15 was installed along when I ran npm install --global windows-build-tools
OS: Windows 10 1909
I've build my app and it works fine when installed to the C:\Programs Files (x86) folder and I double click it.
However, I added it to the startup section so it would star when the user logs in and it wont start. Its code signed with my EV certificate so its not getting flagged as a virus etc. What else could be stopping it ?
for qode - the npm install @nodegui/qode
command fails
ericmoore@cem mdview-nodegui % sw_vers
ProductName: macOS
ProductVersion: 11.2.2
BuildVersion: 20D80
ericmoore@cem mdview-nodegui % uname -a
Darwin cem.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
ericmoore@cem mdview-nodegui % sysctl -n machdep.cpu.brand_string
Intel(R) Core(TM) i7-4558U CPU @ 2.80GHz
ericmoore@cem mdview-nodegui % python3 --version
Python 3.9.2
ericmoore@cem mdview-nodegui % python --version
Python 2.7.16
ericmoore@cem mdview-nodegui % gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
ericmoore@cem mdview-nodegui % clang --version
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
ericmoore@cem mdview-nodegui % cmake --version
cmake version 3.20.0-rc4
CMake suite maintained and supported by Kitware (kitware.com/cmake).
npm install @nodegui/qode
ericmoore@cem mdview-nodegui % npm install @nodegui/qode
npm ERR! code 1
npm ERR! path /Users/ericmoore/Web/mdview-nodegui/node_modules/@nodegui/nodegui
npm ERR! command failed
npm ERR! command sh -c cross-env node ./scripts/skip.js || npm run prebuild:install || npm run build:addon
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! '/Users/ericmoore/.nvm/versions/node/v12.18.0/bin/node',
npm ERR! '/Users/ericmoore/Web/mdview-nodegui/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 AppleClang 12.0.0.12000032
npm ERR! -- The CXX compiler identification is AppleClang 12.0.0.12000032
npm ERR! -- Detecting C compiler ABI info
npm ERR! -- Detecting C compiler ABI info - done
npm ERR! -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
npm ERR! -- Detecting CXX compile features
npm ERR! -- Detecting CXX compile features - done
npm ERR! -- Configuring done
npm ERR! Not searching for unused variables given on the command line.
npm ERR! -- The C compiler identification is AppleClang 12.0.0.12000032
npm ERR! -- The CXX compiler identification is AppleClang 12.0.0.12000032
npm ERR! -- Detecting C compiler ABI info
npm ERR! -- Detecting C compiler ABI info - done
npm ERR! -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
npm ERR! -- Detecting CXX compile features
npm ERR! -- Detecting CXX compile features - done
npm ERR! -- Configuring done
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 "/Users/ericmoore/Web/mdview-nodegui/node_modules/@nodegui/nodegui" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="6.0.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/Users/ericmoore/Web/mdview-nodegui/node_modules/@nodegui/nodegui/build/Release" -DCMAKE_JS_INC="/Users/ericmoore/.cmake-js/node-x64/v12.18.0/include/node;/Users/ericmoore/Web/mdview-nodegui/node_modules/nan" -DCMAKE_JS_SRC="" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="12.18.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"
npm ERR! internal/modules/cjs/loader.js:969
npm ERR! throw err;
npm ERR! ^
npm ERR!
npm ERR! Error: Cannot find module '@nodegui/qode'
npm ERR! Require stack:
npm ERR! - /Users/ericmoore/Web/mdview-nodegui/node_modules/@nodegui/nodegui/[eval]
npm ERR! at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
npm ERR! at Function.Module._load (internal/modules/cjs/loader.js:842:27)
npm ERR! at Module.require (internal/modules/cjs/loader.js:1026:19)
npm ERR! at require (internal/modules/cjs/helpers.js:72:18)
npm ERR! at [eval]:1:1
npm ERR! at Script.runInThisContext (vm.js:120:20)
npm ERR! at Object.runInThisContext (vm.js:311:38)
npm ERR! at Object.<anonymous> ([eval]-wrapper:10:26)
npm ERR! at Module._compile (internal/modules/cjs/loader.js:1138:30)
npm ERR! at evalScript (internal/process/execution.js:94:25) {
npm ERR! code: 'MODULE_NOT_FOUND',
npm ERR! requireStack: [
npm ERR! '/Users/ericmoore/Web/mdview-nodegui/node_modules/@nodegui/nodegui/[eval]'
npm ERR! ]
npm ERR! }
npm ERR! CMake Error: AUTOMOC for target nodegui_core: The "moc" executable "/bin/moc" does not exist.
npm ERR! CMake Generate step failed. Build files cannot be regenerated correctly.
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 "/Users/ericmoore/Web/mdview-nodegui/node_modules/@nodegui/nodegui/build"
npm ERR! info CMD CONFIGURE
npm ERR! info RUN cmake "/Users/ericmoore/Web/mdview-nodegui/node_modules/@nodegui/nodegui" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="6.0.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/Users/ericmoore/Web/mdview-nodegui/node_modules/@nodegui/nodegui/build/Release" -DCMAKE_JS_INC="/Users/ericmoore/.cmake-js/node-x64/v12.18.0/include/node;/Users/ericmoore/Web/mdview-nodegui/node_modules/nan" -DCMAKE_JS_SRC="" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="12.18.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"
npm ERR! internal/modules/cjs/loader.js:969
npm ERR! throw err;
npm ERR! ^
npm ERR!
npm ERR! Error: Cannot find module '@nodegui/qode'
npm ERR! Require stack:
npm ERR! - /Users/ericmoore/Web/mdview-nodegui/node_modules/@nodegui/nodegui/[eval]
npm ERR! at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
npm ERR! at Function.Module._load (internal/modules/cjs/loader.js:842:27)
npm ERR! at Module.require (internal/modules/cjs/loader.js:1026:19)
npm ERR! at require (internal/modules/cjs/helpers.js:72:18)
npm ERR! at [eval]:1:1
npm ERR! at Script.runInThisContext (vm.js:120:20)
npm ERR! at Object.runInThisContext (vm.js:311:38)
npm ERR! at Object.<anonymous> ([eval]-wrapper:10:26)
npm ERR! at Module._compile (internal/modules/cjs/loader.js:1138:30)
npm ERR! at evalScript (internal/process/execution.js:94:25) {
npm ERR! code: 'MODULE_NOT_FOUND',
npm ERR! requireStack: [
npm ERR! '/Users/ericmoore/Web/mdview-nodegui/node_modules/@nodegui/nodegui/[eval]'
npm ERR! ]
npm ERR! }
npm ERR! CMake Error: AUTOMOC for target nodegui_core: The "moc" executable "/bin/moc" does not exist.
npm ERR! CMake Generate step failed. Build files cannot be regenerated correctly.
npm ERR! ERR! OMG Process terminated: 1
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ericmoore/.npm/_logs/2021-03-11T18_08_26_752Z-debug.log
[2916/2916] LINK_EMBED qode.exe
FAILED: qode.exe qode.exe.pdb
D:\softwares\python2.7.18\python.exe gyp-win-tool link-with-manifests environment.x64 True qode.exe "D:\softwares\python2.7.18\python.exe gyp-win-tool link-wrapper environment.x64 False link.exe /nologo /OUT:qode.exe @qode.exe.rsp" 1 mt.exe rc.exe "qode.qode.exe.intermediate.manifest" qode.qode.exe.generated.manifest ..\..\..\src\qode.exe.manifest
正在创建库 qode.lib 和对象 qode.exp
v8_base_without_compiler.lib(v8_base_without_compiler.isolate.obj) : error LNK2001: 无法解析的外部符号 v8_Default_embedded_blob_
v8_base_without_compiler.lib(v8_base_without_compiler.isolate.obj) : error LNK2001: 无法解析的外部符号 v8_Default_embedded_blob_size_
qode.exe : fatal error LNK1120: 2 个无法解析的外部命令
Traceback (most recent call last):
File "gyp-win-tool", line 386, in <module>
sys.exit(main(sys.argv[1:]))
File "gyp-win-tool", line 33, in main
exit_code = executor.Dispatch(args)
File "gyp-win-tool", line 76, in Dispatch
return getattr(self, method)(*args[1:])
File "gyp-win-tool", line 208, in ExecLinkWithManifests
subprocess.check_call(ldcmd + add_to_ld)
File "D:\softwares\python2.7.18\lib\subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'D:\softwares\python2.7.18\python.exe gyp-win-tool link-wrapper environment.x64 False link.exe /nologo /OUT:qode.exe @qode.exe.rsp qode.exe.manifest.res' returned non-zero exit status 1120
ninja: build stopped: subcommand failed.
node:child_process:903
throw err;
^
Error: Command failed: ninja -j8 -C out/Release qode
at checkExecSyncError (node:child_process:826:11)
at Object.execSync (node:child_process:900:15)
at execSync (D:\code\qode\build.js:14:35)
at Object.<anonymous> (D:\code\qode\build.js:59:1)
at Module._compile (node:internal/modules/cjs/loader:1095:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1124:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:816:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
at node:internal/main/run_main_module:17:47 {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 8276,
stdout: null,
stderr: null
}
build error raises when I'm building qode, it seems that v8_Default_embedded_blob_ and v8_Default_embedded_blob_size_ are missing. I'm using vs2017, can anybody give me some advice on this problem? I appreciate it very much!
Would it be possible to add support for either building for ia32
or arm64
for Windows 10? The new arm64
windows machines like Microsoft Surface Pro X can't run x64
binaries.
node: 16.0.0
qode: 14.17.0
yarn: 1.22.4
npm: 7.10.0
reproduction steps:
"type": "module"
test.js
import { QMainWindow } from '@nodegui/nodegui';
import('./imported.js').then(console.log).catch(console.log);
imported.js
export const test = 5;
qode test.js
And you will get no output. However, if you remove line 1 from test.js
, suddenly everything works as intended. Swapping the order also is seemingly irrelevant, the error persists whether i try to do the dynamic load first or not. Even when attempting to use top level await to force the dynamic import to happen before the static import.
Can the downloaded resources be cached instead of being redownloaded every time on installation? e.g. Electron
The resources are quite large for poor network connections, e.g. in mainland China, so I guess we could have much better developer experience if we don't have to wait for the downloading progress every time a new project is started or dependencies are reinstalled.
if rename to other name, it will get some error as follow:
$ ./a.exe
internal/modules/cjs/loader.js:1226
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: The specified module could not be found.
\\?\H:\cloud-music-nodegui\deploy\win32\build\music\dist\nodegui_core-7c7efccfbf9f07e96c6307682942859c.node
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1226:18)
at Module.load (internal/modules/cjs/loader.js:1040:32)
at Function.Module._load (internal/modules/cjs/loader.js:929:14)
at Module.require (internal/modules/cjs/loader.js:1080:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (H:\cloud-music-nodegui\deploy\win32\build\music\dist\index.js:6:8607)
at n (H:\cloud-music-nodegui\deploy\win32\build\music\dist\index.js:1:110)
at Object.<anonymous> (H:\cloud-music-nodegui\deploy\win32\build\music\dist\index.js:1:1001)
at n (H:\cloud-music-nodegui\deploy\win32\build\music\dist\index.js:1:110)
at Object.<anonymous> (H:\cloud-music-nodegui\deploy\win32\build\music\dist\index.js:1:1317)
Hi. First of all thanks for such interesting idea! 🚀
I just stuck with small issue when trying out starter project (https://docs.nodegui.org/docs/guides/tutorial/#trying-out-the-starter-project)
When I running npm start
webpack works well, but then I don't see any window. I see qode
application in the Dock, but not window.
Probably I miss something. Could you help me with that, please?
Thanks!
Env:
OS: MacOS Catalina v10.15.3
$ node -v
v10.17.0
$ npm -v
6.13.0
$ npm list @nodegui/qode
[email protected] /Users/nb-078-11b/projects/nodegui-starter
└─┬ @nodegui/[email protected]
└── @nodegui/[email protected]
Currently we are building with --openssl-no-asm
for windows.
See build.js
.
execSync(`python configure --openssl-no-asm --dest-cpu=${target_arch}`, { cwd: "node" });
This is because we have issues with nasm for windows. See here: https://github.com/nodejs/node/blob/master/BUILDING.md#windows
This causes a warning
WARNING: --openssl-no-asm will result in binaries that do not take advantage of modern CPU cryptographic instructions and will therefore be slower. Please refer to BUILDING.md
Hence need to fix this.
Make sure this can be made to work in CI also.
Hi, I built nodegui-starter on Linux and Windows without problem. I then tried on a reMarkable 1, a Linux device with a 1 GHz ARM A9 CPU with entware and its own community supported package manager and repository allowing we to use node and npm. Unfortunately when npm install
tried to add qode it failed to get the release for this architecture. Supporting this architecture would open up a lot potential for novel apps on this great device which unfortunately doesn't have a browser. How can I help with that?
hi,
thanks for your work,
can you add a correspondence table qode -> node so for module that rely on node-pre-gyp, it can be build with the correct version
thanks
The current version of Qode
has to run microtasks manually after every uv_run
43c8a33
Ideally it should be executed by node automatically.
This issue happens after upgrading to node v13
Microtasks work correctly when node_integration is removed.
This works for now due to the hack fix but need to be fixed in future.
In order to test this:
Download the v2.0.3 of qode (one without the above commit)
and run the following script by
./qode test.js
setInterval(() => {
console.log('REACHED HERE');
Promise.resolve(true).then(() => console.log('REACHED PROMISE CALLBACK'));
}, 2000);
setImmediate(() => {
console.log('IMMEDIATELY');
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.