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

Build fails when using vs-2022-vcpkg #7

Open
J-Dawe opened this issue Jan 28, 2022 · 1 comment
Open

Build fails when using vs-2022-vcpkg #7

J-Dawe opened this issue Jan 28, 2022 · 1 comment

Comments

@J-Dawe
Copy link

J-Dawe commented Jan 28, 2022

When I try to build with the vs-2022-vcpkg preset, the build fails with the following error repeating multiple times

D:\Projects\fallout4\CommonLibF4\CommonLibF4\include\F4SE/Logger.h(35,2): error C7595: 'fmt::v8::basic_format_string<char,std::string_view &>::basic_format_string': call to immediate function is not a constant expression (compiling source file D:\Projects\fallout4\CommonLibF4\CommonLibF4\src\F4SE\API.cpp) [D:\Projects\fallout4\CommonLibF4\build\CommonLibF4\CommonLibF4.vcxproj]
D:\Projects\fallout4\CommonLibF4\CommonLibF4\include\F4SE/Logger.h(35,2): message : failure was caused by a read of a variable outside its lifetime (compiling source file D:\Projects\fallout4\CommonLibF4\CommonLibF4\src\F4SE\API.cpp) [D:\Projects\fallout4\CommonLibF4\build\CommonLibF4\CommonLibF4.vcxproj]
D:\Projects\fallout4\CommonLibF4\CommonLibF4\include\F4SE/Logger.h(35,2): error C7595: 'fmt::v8::basic_format_string<char,const char *>::basic_format_string': call to immediate function is not a constant expression (compiling source file D:\Projects\fallout4\CommonLibF4\CommonLibF4\src\F4SE\Interfaces.cpp) [D:\Projects\fallout4\CommonLibF4\build\CommonLibF4\CommonLibF4.vcxproj]
D:\Projects\fallout4\CommonLibF4\CommonLibF4\include\F4SE/Logger.h(35,2): message : see usage of 'a_fmt' (compiling source file D:\Projects\fallout4\CommonLibF4\CommonLibF4\src\F4SE\API.cpp) [D:\Projects\fallout4\CommonLibF4\build\CommonLibF4\CommonLibF4.vcxproj]
D:\Projects\fallout4\CommonLibF4\CommonLibF4\include\F4SE/Logger.h(35,2): message : failure was caused by a read of a variable outside its lifetime (compiling source file D:\Projects\fallout4\CommonLibF4\CommonLibF4\src\F4SE\Interfaces.cpp) [D:\Projects\fallout4\CommonLibF4\build\CommonLibF4\CommonLibF4.vcxproj]
D:\Projects\fallout4\CommonLibF4\CommonLibF4\src\F4SE\API.cpp(112): message : see reference to function template instantiation 'F4SE::log::warn<F4SE::stl::zstring &>::warn<F4SE::GetPluginInfo::<lambda_1>::()::FMT_COMPILE_STRING>(T &&,F4SE::stl::zstring &,std::source_location)' being compiled [D:\Projects\fallout4\CommonLibF4\build\CommonLibF4\CommonLibF4.vcxproj]

Full command line output

@J-Dawe J-Dawe changed the title Can't build when using vs-2022-vcpkg Build fails when using vs-2022-vcpkg Jan 28, 2022
@magnusjjj
Copy link

Same here. Apparantly it's an upstream issue that won't be fixed. It wants to know the string format at compile time.

Only visual studio 2019 version 16.11, which is newer, is now available to download. Will try that.

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