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

Error in building the Windows x86 shared library #41559

Closed
The2Alert opened this issue Jan 16, 2022 · 5 comments
Closed

Error in building the Windows x86 shared library #41559

The2Alert opened this issue Jan 16, 2022 · 5 comments
Labels
build Issues and PRs related to build files or the CI. shared_lib Issues and PRs related to use of Node.js as a shared library. windows Issues and PRs related to the Windows platform.

Comments

@The2Alert
Copy link

Version

16.13.2

Platform

Microsoft Windows NT 10.0.22000.0 x64

Subsystem

No response

What steps will reproduce the bug?

Calling the command:

 .\vcbuild release vs2019 dll x86

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior?

No response

What do you see instead?

Screenshot_1

Additional information

No response

@Mesteery Mesteery added windows Issues and PRs related to the Windows platform. build Issues and PRs related to build files or the CI. shared_lib Issues and PRs related to use of Node.js as a shared library. labels Jan 16, 2022
@mscdex
Copy link
Contributor

mscdex commented Jan 16, 2022

Related: nodejs/help#2545 and #28845

@The2Alert
Copy link
Author

New error:
Screenshot_1

@The2Alert
Copy link
Author

Problem solving:
#34539 (comment)
#34539 (comment)
#34539 (comment)

Issue resolved.

@xland
Copy link

xland commented Aug 16, 2022

@lux01

Now only x86 can pass build.
x64 can not pass build.
I test node main branch and node 16.x branch with vs2022 and vs2019
All x64 build will fail.

D:\sdk\node> .\vcbuild debug vs2022 dll x64
Looking for Python
Python found in C:\Python310\\python.exe
Python 3.10.6
Looking for NASM
Looking for Visual Studio 2022
calling: "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\\Auxiliary\Build\vcvarsall.bat" x86_x64
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.3.0
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86_x64'
Found MSVS version 17.0
configure  --debug --shared --dest-cpu=x64
Node.js configure: Found Python 3.10.6...
?[1m?[32mINFO?[0m: configure completed successfully
Project files generated.
D:\sdk\node\node.sln.metaproj : error MSB4126: 指定的解决方案配置“Debug|x64”无效。请使用 Configuration 和 Platform 属性指定有效的解决方案配置(例如 MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU"),或者将这
些属性保留为空,以使用默认的解决方案配置。 [D:\sdk\node\no
de.sln]

@bnoordhuis
Copy link
Member

Reasonably sure this has since been fixed. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. shared_lib Issues and PRs related to use of Node.js as a shared library. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants