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

[BUG] Compilation build error on Windows/Visual Studio #130

Open
ngfrank45 opened this issue Jan 14, 2025 · 0 comments
Open

[BUG] Compilation build error on Windows/Visual Studio #130

ngfrank45 opened this issue Jan 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ngfrank45
Copy link

ngfrank45 commented Jan 14, 2025

When opening audio-share-main\server-mfc\audio-share-server.sln on Visual Studio 2022 version 17 with C++ and MFC build tools installed, I get error :
Severity Code Description Project File Line Suppression State Details
Error MSB8066 Custom build for '....\protos\client.proto' exited with code 3. audio-share-server C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets 254
Which redirects me there:
Screenshot 2025-01-14 225422

The startup project is audio-share-server debug 64 and local windows Debugger, but it's the same error on all other settings debug or release settings, and with unit-test project I get one more error but I don't need unit tests for now.

Also I am not sure if have installed vcpkg correctly because I have no idea on how to set it up exactly for this project, and because of the first error I won't be able to know if it is installed it correctly.
In visual studio installer I have selected vcpkg package manager so it's integrated to VS studio.
What I did is launch audio-share-server.sln and open a Visual Studio Developer Powershell on audio-share-main\server-mfc
and typed the following commands :
vcpkg new --application vcpkg add port asio protobuf spdlog[wchar] wil nlohmann-json vcpkg install --triplet=x64-windows-static-md

Which generated the following files:
"audio-share-main\server-mfc\vcpkg.json"
"audio-share-main\server-mfc\vcpkg-configuration"

And the following folder :
"audio-share-main\server-mfc\vcpkg_installed"
the packages are installed inside this folder I guess :
Screenshot 2025-01-14 231900

Still got the error, I think that the first error in VS studio is not linked to vcpkg or vcpkg should be mentionned in the error.

@ngfrank45 ngfrank45 added the bug Something isn't working label Jan 14, 2025
@ngfrank45 ngfrank45 changed the title [BUG] Compilation build error on Windows/Visual Studio + confusion on how to install vcpkg (newbie) [BUG] Compilation build error on Windows/Visual Studio Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant