Ryan-rsm-McKenzie / CommonLibF4

A reverse-engineered resource for Fallout 4
MIT License
70 stars 37 forks source link

Error 126 in F4SE Log when loading Example Project dll #3

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi, I am 100% sure that I have done something wrong here but I have no clue what do anymore. I managed to build the Example Project into a DLL file in release x64 but F4SE refuses to load it. I don't have much experience with CMake and c++ package managers. I just kept following instructions until I got the project to build really. Address Lib installed at Data/F4SE/Plugins/

F4SE Log

CMake Pretty sure I did something wrong here too.

Extremely sorry for bothering you with a stupid question and thanks for your time!

Ryan-rsm-McKenzie commented 3 years ago

Use CFF Explorer to check your dll's import directory

ghost commented 3 years ago

After much testing it seems that ExampleProject.dll loads only when I copy spdlog.dll and fmt.dll in Fallout4 root directory with Fallout4.exe. Why does it fail to load them when I put them next to ExampleProject.dll in Data/F4SE/Plugins/? Or am I supposed to build my project without any dependencies? I am genuinely confused.

Screenshot (44)

Ryan-rsm-McKenzie commented 3 years ago

Check that VCPKG_TARGET_TRIPLET is set to a static triplet

ghost commented 3 years ago

Thank you for your time. Again, extremely sorry for bothering you. Everything is working now.