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

Unable to Compile Example Project #125

Open
egundersen opened this issue Feb 19, 2022 · 1 comment
Open

Unable to Compile Example Project #125

egundersen opened this issue Feb 19, 2022 · 1 comment

Comments

@egundersen
Copy link

egundersen commented Feb 19, 2022

Latest Skyrim Anniversary Edition
Latest skse64 Github, built with cmake
Latest CommonLibSSE, built with cmake
( Replaced fmt version with fmt version 8.0.1 in order to get CommonLibSSE to build/compile without logger.h errors )
Latest ExamplePlugin-CommonLibSSE

However, whenever I try and build the ExamplePlugin project with cmake (or VS) the compilation fails w/ logger.h errors:

C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\vcpkg_installed\x64-windows-static-md\include\spdlog/logger.h(340,18): error C2220: the following warning is treated as an error (compiling source file C:\dev\skse64\skse64_2_01_05\skse64\CommonLibSSE\src\SKSE\IAT.cpp) [C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\src\CommonLibSSE\CommonLibSSE.vcxproj]
C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\vcpkg_installed\x64-windows-static-md\include\spdlog/logger.h(340,18): warning C4996: 'fmt::v8::format_to': was declared deprecated (compiling source file C:\dev\skse64\skse64_2_01_05\skse64\CommonLibSSE\src\SKSE\IAT.cpp) [C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\src\CommonLibSSE\CommonLibSSE.vcxproj]
C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\vcpkg_installed\x64-windows-static-md\include\spdlog/logger.h(86): message : see reference to function template instantiation 'void spdlog::logger::log_<spdlog::string_view_t,std::string_view&,std::string_view&>(spdlog::source_loc,spdlog::level::level_enum,const FormatString &,std::string_view &,std::string_view &)' being compiled [C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\src\CommonLibSSE\CommonLibSSE.vcxproj]
          with
          [
              FormatString=spdlog::string_view_t
          ] (compiling source file C:\dev\skse64\skse64_2_01_05\skse64\CommonLibSSE\src\SKSE\IAT.cpp)
C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\vcpkg_installed\x64-windows-static-md\include\spdlog/spdlog.h(132): message : see reference to function template instantiation 'void spdlog::logger::log<std::string_view&,std::string_view&>(spdlog::source_loc,spdlog::level::level_enum,spdlog::string_view_t,std::string_view &,std::string_view &)' being compiled (compiling source file C:\dev\skse64\skse64_2_01_05\skse64\CommonLibSSE\src\SKSE\IAT.cpp) [C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\src\CommonLibSSE\CommonLibSSE.vcxproj]

C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\vcpkg_installed\x64-windows-static-md\include\spdlog/logger.h(340,18): error C2220: the following warning is treated as an error (compiling source file C:\dev\skse64\skse64_2_01_05\skse64\CommonLibSSE\src\RE\T\TESObjectREFR.cpp) [C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\src\CommonLibSSE\CommonLibSSE.vcxproj]
C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\vcpkg_installed\x64-windows-static-md\include\spdlog/logger.h(340,18): warning C4996: 'fmt::v8::format_to': was declared deprecated (compiling source file C:\dev\skse64\skse64_2_01_05\skse64\CommonLibSSE\src\RE\T\TESObjectREFR.cpp) [C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\src\CommonLibSSE\CommonLibSSE.vcxproj]
C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\vcpkg_installed\x64-windows-static-md\include\spdlog/logger.h(86): message : see reference to function template instantiation 'void spdlog::logger::log_<spdlog::string_view_t,_Ty>(spdlog::source_loc,spdlog::level::level_enum,const FormatString &,_Ty &&)' being compiled [C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\src\CommonLibSSE\CommonLibSSE.vcxproj]
          with
          [
              _Ty=const char *,
              FormatString=spdlog::string_view_t
          ] (compiling source file C:\dev\skse64\skse64_2_01_05\skse64\CommonLibSSE\src\RE\T\TESObjectREFR.cpp)

(These same errors appear for 15 / 20 more files...)

@VisMGA
Copy link

VisMGA commented Apr 27, 2022

Before trying to build a project, change its settings to not treat warnings as errors (Right click on the project>Properties>Configuration Properties>C/C++>General>Treat Warnings As Errors = No (/WX-), then try again.

alandtse pushed a commit to alandtse/CommonLibVR that referenced this issue Aug 19, 2024
Add `bhkCharacterController` `MovementControllerNPC` and `Actor` related
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