Title: node-java v0.12.2 fails with electron-rebuild (fatal error LNK1120) · Issue #541 · joeferner/node-java · GitHub
Open Graph Title: node-java v0.12.2 fails with electron-rebuild (fatal error LNK1120) · Issue #541 · joeferner/node-java
X Title: node-java v0.12.2 fails with electron-rebuild (fatal error LNK1120) · Issue #541 · joeferner/node-java
Description: Hello. When using version 0.12.1 , building and running the electron app works, but not with using version 0.12.2. When I try to use the code below, it fails on 0.12.2 since electronbrowser\src\main\electron\node_modules\java\build\Relea...
Open Graph Description: Hello. When using version 0.12.1 , building and running the electron app works, but not with using version 0.12.2. When I try to use the code below, it fails on 0.12.2 since electronbrowser\src\mai...
X Description: Hello. When using version 0.12.1 , building and running the electron app works, but not with using version 0.12.2. When I try to use the code below, it fails on 0.12.2 since electronbrowser\src\mai...
Opengraph URL: https://github.com/joeferner/node-java/issues/541
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"node-java v0.12.2 fails with electron-rebuild (fatal error LNK1120)","articleBody":"Hello.\r\n\r\nWhen using version `0.12.1` , building and running the electron app works, but not with using version `0.12.2`.\r\n\r\nWhen I try to use the code below, it fails on `0.12.2` since `electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\Release\\nodejavabridge_bindings.node` does not exist. However on `0.12.1` this does exist (see screenshots below). This reflects also what the logs show.\r\n\r\n### Execution:\r\n```\r\nelectron-rebuild -f -w java \u0026\u0026 electron-packager . %electron_application% --overwrite --out %out% --extra-resource=%extra_resource_viewer% --extra-resource=%extra_resource_app% --icon=%electron_icon% --prune\r\n```\r\n\r\nI would be very glad to get some help on this, spend a day trying to resolve it but without any success. When you need more information, please notify me.\r\n\r\n### Versions:\r\n\r\n#### Software\r\n| software | version |\r\n|---------------------------------------------|---------|\r\n| Visual Studio Community 2019 | 16.11.6 |\r\n| Workload \u003cbr\u003e`Desktop development with C++` | yes |\r\n| Python | 3.10.0 |\r\n\r\n#### Dependencies\r\n| dependency | version |\r\n|------------------|---------|\r\n| node | 16.5.0 |\r\n| electron | 12.2.2 |\r\n| electron-packager | 15.4.0 |\r\n| electron-rebuild | 3.2.5 |\r\n| node-java | 0.12.2 |\r\n\r\n### Logs / Stacktrace (partially in German)\r\n\r\n```log\r\n[INFO] --- frontend-maven-plugin:1.12.0:npm (npm package electron app) @ electronbrowser ---\r\n[INFO] Running 'npm run build-electron' in C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\r\n[INFO]\r\n[INFO] \u003e Electron-Browser@1.0.0 build-electron\r\n[INFO] \u003e npm run rebuild \u0026\u0026 npm run package-electron\r\n[INFO]\r\n[INFO]\r\n[INFO] \u003e Electron-Browser@1.0.0 rebuild\r\n[INFO] \u003e electron-rebuild -f -w java\r\n[INFO]\r\n[INFO] - Searching dependency tree\r\n[INFO] Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu erm?glichen, m?ssen Sie den Schalter \"-m\" hinzuf?gen.\r\n[INFO] java.cpp\r\n[INFO] C:\\Users\\myUserName\\.electron-gyp\\12.2.2\\include\\node\\v8.h(1650,55): warning C4996: 'v8::Module::ResolveCallback': Use ResolveModuleCallback [C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\nodejavabridge_bindings.vcxproj]\r\n[INFO] javaObject.cpp\r\n[INFO] C:\\Users\\myUserName\\.electron-gyp\\12.2.2\\include\\node\\v8.h(1650,55): warning C4996: 'v8::Module::ResolveCallback': Use ResolveModuleCallback [C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\nodejavabridge_bindings.vcxproj]\r\n[INFO] javaScope.cpp\r\n[INFO] methodCallBaton.cpp\r\n[INFO] C:\\Users\\myUserName\\.electron-gyp\\12.2.2\\include\\node\\v8.h(1650,55): warning C4996: 'v8::Module::ResolveCallback': Use ResolveModuleCallback [C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\nodejavabridge_bindings.vcxproj]\r\n[INFO] nodeJavaBridge.cpp\r\n[INFO] C:\\Users\\myUserName\\.electron-gyp\\12.2.2\\include\\node\\v8.h(1650,55): warning C4996: 'v8::Module::ResolveCallback': Use ResolveModuleCallback [C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\nodejavabridge_bindings.vcxproj]\r\n[INFO] utils.cpp\r\n[INFO] C:\\Users\\myUserName\\.electron-gyp\\12.2.2\\include\\node\\v8.h(1650,55): warning C4996: 'v8::Module::ResolveCallback': Use ResolveModuleCallback [C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\nodejavabridge_bindings.vcxproj]\r\n[INFO] win_delay_load_hook.cc\r\n[INFO] Bibliothek \"C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\Release\\nodejavabridge_bindings.lib\" und Objekt \"C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\Release\\nodejavabridge_bindings.exp\" werden erstellt.\r\n[INFO] utils.obj : error LNK2001: Nicht aufgel?stes externes Symbol \"\"__declspec(dllimport) public: class std::shared_ptr\u003cclass v8::BackingStore\u003e __cdecl v8::ArrayBuffer::GetBackingStore(void)\" (__imp_?GetBackingStore@ArrayBuffer@v8@@QEAA?AV?$shared_ptr@VBackingStore@v8@@@std@@XZ)\". [C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\nodejavabridge_bindings.vcxproj]\r\n[INFO] C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\Release\\nodejavabridge_bindings.node : fatal error LNK1120: 1 nicht aufgel?ste Externe [C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\nodejavabridge_bindings.vcxproj]\r\n[INFO] C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\Release\\nodejavabridge_bindings.node : fatal error LNK1120: 1 nicht aufgel?ste Externe [C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\nodejavabridge_bindings.vcxproj]Ã? Rebuild Failed\r\n[INFO]\r\n[INFO] An unhandled error occurred inside electron-rebuild\r\n[INFO] node-gyp failed to rebuild 'C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java'.\r\n[INFO] For more information, rerun with the DEBUG environment variable set to \"electron-rebuild\".\r\n[INFO]\r\n[INFO] Error: `C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe` failed with exit code: 1\r\n[INFO]\r\n[INFO]\r\n[INFO]\r\n[INFO] Error: node-gyp failed to rebuild 'C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java'.\r\n[INFO] For more information, rerun with the DEBUG environment variable set to \"electron-rebuild\".\r\n[INFO]\r\n[INFO] Error: `C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe` failed with exit code: 1\r\n[INFO]\r\n[INFO]\r\n[INFO] at NodeGyp.rebuildModule (C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\electron-rebuild\\lib\\src\\module-type\\node-gyp.js:117:19)\r\n[INFO] at processTicksAndRejections (node:internal/process/task_queues:96:5)\r\n[INFO] at async ModuleRebuilder.rebuildNodeGypModule (C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\electron-rebuild\\lib\\src\\module-rebuilder.js:94:9)\r\n[INFO] at async ModuleRebuilder.rebuild (C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\electron-rebuild\\lib\\src\\module-rebuilder.js:124:14)\r\n[INFO] at async Rebuilder.rebuildModuleAt (C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\electron-rebuild\\lib\\src\\rebuild.js:145:13)\r\n[INFO] at async Rebuilder.rebuild (C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\electron-rebuild\\lib\\src\\rebuild.js:108:17)\r\n[INFO] at async C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\electron-rebuild\\lib\\src\\cli.js:154:9\r\n```\r\n\r\n### Folder comparison\r\n\r\n| Using 0.12.1 | Using 0.12.2 |\r\n|:--------------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------------:|\r\n|  |  |\r\n\r\n\r\n## Edit 1\r\nChanged setup to make it at least completely runnable on version 0.12.1. This made the issue also less confusing. By now I'm pretty sure that is a bug with node-java.","author":{"url":"https://github.com/DManstrator","@type":"Person","name":"DManstrator"},"datePublished":"2021-11-12T14:40:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/541/node-java/issues/541"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:87f0ee7f-d4f7-2027-92fc-64b81a6be44f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B49A:2C22F5:183A826:1FE3CCA:6977104D |
| html-safe-nonce | b5443099d1f1131e6dadbd60ac063f66f386a5898e466cde2c324bfbd3b23af2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDlBOjJDMjJGNToxODNBODI2OjFGRTNDQ0E6Njk3NzEwNEQiLCJ2aXNpdG9yX2lkIjoiODAyMTc3NjcwOTAzMzg1NzEwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 36f34c5e2eaa3c8536d7cc4e570707cf4f89e7303fe8bbf53dae59b97fa33938 |
| hovercard-subject-tag | issue:1052032921 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/joeferner/node-java/541/issue_layout |
| twitter:image | https://opengraph.githubassets.com/44bcb65ba480ed0b64ba6dc8775a69f4b9970be80119255ba5b6c0627da5fd1e/joeferner/node-java/issues/541 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/44bcb65ba480ed0b64ba6dc8775a69f4b9970be80119255ba5b6c0627da5fd1e/joeferner/node-java/issues/541 |
| og:image:alt | Hello. When using version 0.12.1 , building and running the electron app works, but not with using version 0.12.2. When I try to use the code below, it fails on 0.12.2 since electronbrowser\src\mai... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DManstrator |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/joeferner/node-java git https://github.com/joeferner/node-java.git |
| octolytics-dimension-user_id | 808857 |
| octolytics-dimension-user_login | joeferner |
| octolytics-dimension-repository_id | 3228734 |
| octolytics-dimension-repository_nwo | joeferner/node-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3228734 |
| octolytics-dimension-repository_network_root_nwo | joeferner/node-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width