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

MSB8020: cmake fails to configure for MSVC 17 2022 #7280

Open
src-r-r opened this issue Aug 28, 2023 · 1 comment
Open

MSB8020: cmake fails to configure for MSVC 17 2022 #7280

src-r-r opened this issue Aug 28, 2023 · 1 comment
Labels
bug There is an error or the program doesn't work properly triage Awaiting repro confirmation (bug) or needs accepting (enhancement)

Comments

@src-r-r
Copy link

src-r-r commented Aug 28, 2023

Operating Systems

Server: Windows 11
Client: Irrelevant / Windows 11

Synergy Version

Irrelevant, but using the synergy-core master branch

Steps to Reproduce

Follow the compile instructions for windows.

One thing to note is that for Step 2: Install Visual Studio Community 2019 with Updates gets kind of tricky. If you open the installer, you can only download MSVC 2022.

Log URLs

cmake-error-1.txt

Extra Info

Here's the Cmake command I'm using in Qt Creator:

-G Visual Studio 17 2022
-DCMAKE_BUILD_TYPE:STRING=Debug
-DCMAKE_PROJECT_INCLUDE_BEFORE:PATH=%{IDE:ResourcePath}/package-manager/auto-setup.cmake
-DQT_QMAKE_EXECUTABLE:STRING=%{Qt:qmakeExecutable}
-DCMAKE_PREFIX_PATH:STRING=%{Qt:QT_INSTALL_PREFIX}
-DCMAKE_C_COMPILER:STRING=%{Compiler:Executable:C}
-DCMAKE_CXX_COMPILER:STRING=%{Compiler:Executable:Cxx}
-DLIB_EAY_DEBUG:FILEPATH=C:/Program Files (x86)/OpenSSL-Win32/lib/VC/libcrypto32MDd.lib
-DSSL_EAY_DEBUG:FILEPATH=C:/Program Files (x86)/OpenSSL-Win32/lib/VC/libcrypto32MDd.lib
-DSSL_EAY_DEBUG:FILEPATH=C:/Program Files (x86)/OpenSSL-Win32/lib/VC/libcrypto32MDd.lib

I'm able to successfully compile Synergy using -G Ninja, but the problem here is that I can't do any debugging. I also tried using the CLI installation method and get the same error.

And, yes, I've checked multiple times that I have everything v143 C++ related installed.

Is it because MSVC installs in Program Files instead of Program Files (x86) like MSVC 2019 did?

Help is appreciated. Thank you.

@src-r-r src-r-r added the bug There is an error or the program doesn't work properly label Aug 28, 2023
@nbolton nbolton added the triage Awaiting repro confirmation (bug) or needs accepting (enhancement) label Jul 16, 2024
@nbolton nbolton added the unanswered Issue not yet been answered by a maintainer label Sep 6, 2024
@nbolton
Copy link
Member

nbolton commented Sep 6, 2024

Thanks for reporting this, could you try the latest master to see if this is still an issue?

@nbolton nbolton removed the unanswered Issue not yet been answered by a maintainer label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug There is an error or the program doesn't work properly triage Awaiting repro confirmation (bug) or needs accepting (enhancement)
Projects
None yet
Development

No branches or pull requests

2 participants