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

Need MFC libraries #22

Open
JJTech0130 opened this issue Mar 21, 2022 · 7 comments
Open

Need MFC libraries #22

JJTech0130 opened this issue Mar 21, 2022 · 7 comments

Comments

@JJTech0130
Copy link

Just an addition to the build instructions,
mdnsresponder requires the MFC component in Visual Studio, which isn't always included. The build fails with cryptic errors otherwise.

@JJTech0130
Copy link
Author

Also Clang? Should hold off reporting issues till I get all the way through so I can get them all

@JJTech0130
Copy link
Author

Also is it really necessary to compile winsparkle? It appears that there is a dll already in the libraries folder...

@JJTech0130
Copy link
Author

Also I'm having to use vcpkg to install openssl, not sure if that's the correct way

@JJTech0130
Copy link
Author

JJTech0130 commented Mar 21, 2022

And now I'm getting this error...

Severity Code Description Project File Line Suppression State
Error C2039 codecvt_utf8: is not a member of std AltServer C:\Users\JJTech\source\repos\AltServer-Windows\AltServer\ClientConnection.cpp 27

EDIT: Searching the internet, I'm seeing people had deprecation warnings for codecvt_utf8... I wonder if I'm using a newer version where it was finally removed...
EDIT: Just needed to add this to ClientConnection.cpp, as stated in the README 🤦‍♂️:

#include <codecvt>

@JJTech0130
Copy link
Author

JJTech0130 commented Mar 21, 2022

Now trying to compile ldid.lib for it...
Getting this error:

Severity Code Description Project File Line Suppression State
Error could not open 'C:\Users\JJTech\vcpkg\installed\x86-windows\lib*.lib': invalid argument ldid C:\Users\JJTech\source\repos\AltServer-Windows\ldid\lld-link 1

EDIT: Only way I could find to fix this is to temporarily modify vcpkg to disable autolinking per microsoft/vcpkg#4359, except removing the condition entirely

@JJTech0130
Copy link
Author

I build it successfully in a VM! now to get it to build in appveyor

@kylefmohr
Copy link

Can confirm that MFC is needed to build mDNSresponder, specifically, one needs to re-run the Visual Studio 2019 installer, go to the "Individual components" tab, check the box for "C++ MFC for latest v142 build tools (x86 & 64)" and click "Modify"

Thanks for the tip @JJTech0130

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants