Posted: 6th Jan 2022 12:32
Hello,

i try with Visual Studio 2019 and 2022 all was fine with Debug.
But with Release linker make this error LNK1181 unbale to open OpenGL32.lib (opengl32.lib is in path and i also try to copy it in my project folder)

Any suggestion ?
Posted: 7th Jan 2022 6:04
make sure the path to the library's folders is set in project settings

Linker>>General>>Additional Library Directories

x86:
..\platform\windows\Lib\VS2015\Release
..\platform\windows\Lib\VS2015\Debug

x64:
..\platform\windows\Lib\VS2015\Release64
..\platform\windows\Lib\VS2015\Debug64

These paths should be set by default in the project template, have you made changes to the template?


are you using the default Tier2 package?

if you compiled from the repo you need to compile all platforms and configurations, go menu Build>>Batch Build and check select all, and build

if you added a platform (x86/x64) then this can cause headaches, make sure correct linker paths are set for each platform (as above) and check environment variables in VC++ Directories

x64


x86
Posted: 7th Jan 2022 9:04
Thanks )

Was "Library Directories" that was wrong :WindowsSdk_71A_LibraryPath_x64 is outdated i replaced with correct path "WindowsSDK_LibraryPath_x64" and now all compile/link fine.