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

Building issues under Visual Studio 202, Win10 x64 #87

Open
ohlidalp opened this issue Nov 10, 2024 · 0 comments
Open

Building issues under Visual Studio 202, Win10 x64 #87

ohlidalp opened this issue Nov 10, 2024 · 0 comments

Comments

@ohlidalp
Copy link
Member

ohlidalp commented Nov 10, 2024

I keep bumping into various issues, always fixing them manually, then forgetting, then bumping again - I'll gather the notes here. I'll post both issues with ror-dependencies and issues likely in rigs-of-rods, to be sorted later.

Release/ZLIB_ZLIB glitch
Steps:

  1. Delete the generated 'Dependencies_PLATFORMNAME' directory (previously built as debug).
  2. Do 'Clean solution' in visualstudio
  3. Set 'Release' and do 'Build solution' in visualstudio --> build error: MyGUI can't find ZLIB
  4. retry --> build passes ?!

Release/MyGuiEngine.dll glitch

  1. do steps of ZLIB_ZLIB bove
  2. build and run rigs-of-rods as Release --> missing MyGUIEngine.dll
  3. Workaround: copy MyGuiEngine.dll from Dependencies_PLATFORMNAME/bin/Release to rigs-of-rods-BUILDDIR/bin/

Release->Debug ~ mismatch '_ITERATOR_DEBUG_LEVEL' glitch

  1. build ror-dependencies as Release, then as Debug.
  2. (OPTIONAL) if rigs-of-rods fails to link: LNK1104 cannot open file Dependencies_Windows_Visual-Studio-17-2022\lib\debug\MyGUIEngine_d.lib', hack it around by copying "MyGuiEngine.lib"+"MyGUI.OgrePlatform.lib" from lib\Release to lib\Debug
  3. you get error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in cmake_pch.obj for all the libs.
  4. Workaround: Manually delete the 'Dependencies_Windows_Visual-Studio-17-2022' directory (doing 'Clean solution' isn't enough) and build deps as debug.

Debug/zlib+freetype '_d' glitches

  1. delete the generated Dependencies_PLATFORMNAME dir
  2. build as Debug --> LINK : fatal error LNK1104: cannot open file 'Dependencies_Windows_Visual-Studio-17-2022\lib\zlib.lib' from almost all targets
  3. Workaround: go to Dependencies_PLATFORMNAME/lib and copy+rename 'zlib_d.lib' to just 'zlib.lib'
  4. same story: freetype_d.lib -> freetype.lib to build OgreOverlay
  5. same story: fmtd.lib --> fmt.lib
  6. same story: OIS_d
  7. same story: Caelum_d
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

1 participant