Closed AnotherFoxGuy closed 1 year ago
Trying with conan 2.0.2.
With Debug, OIS 1.4.1 works for some reason but Caelum isn't working - the sky falls back to 'sandstorm' skybox but the terrain gets no light.
# ror.log
13:45:43: Loading library .\Caelum_d
13:45:43: Ogre::InternalErrorException::InternalErrorException: Could not load dynamic library .\Caelum_d. System Error: The specified module could not be found.
in DynLib::load at C:\Users\Petr\.conan2\p\t\ogre311e98a6feda0f\b\OgreMain\src\OgreDynLib.cpp (line 112)
Apparently Caelum doenst use the _d suffix, I looked in 'Caelum-*-data.cmake' files, found the conan package dirs and both debug/rel DLLs were Caelum.dll, just with different filesizes.
rel: Caelum.dll 553 984
dbg: Caelum.dll 1 294 848
However, copying the debug DLL as 'Caelum_d.DLL' didn't work for some reason: UPDATE: and removing the _d from plugins_d.cfg yields this same error because the DLLs are actually identical.
# ror.log
14:00:50: Loading library .\Caelum_d
14:00:50: Ogre::ItemIdentityException::ItemIdentityException: Cannot find symbol dllStartPlugin in library .\Caelum_d in Root::loadPlugin at C:\Users\Petr\.conan2\p\t\ogre311e98a6feda0f\b\OgreMain\src\OgreRoot.cpp (line 1233)
Caelum now works perfectly under Debug, Release still crashes on OIS startup.
When I change conanfile to self.requires("ois/1.5.1@anotherfoxguy/stable")
, both work OK.
I still need to test with ror-dependencies.
Replaced the overcomplicated cmake script with the new CMakeToolchain This should make it a lot easier to build with
ror-dependencies
How to build on windows with conan Add the remote
conan remote add ror-conan https://git.anotherfoxguy.com/api/packages/rorbot/conan -f
Install the deps with conanconan install . -b missing -pr:b=tools/conan-profiles/vs-19-release -pr=tools/conan-profiles/vs-19-release -of build
conan install . -b missing -pr:b=tools/conan-profiles/vs-19-debug -pr=tools/conan-profiles/vs-19-debug -of build
Generate the VS project filescmake --preset conan-default
How to build on windows with ror-dependencies Build ror-dependencies Copy the
Dependencies_Windows_Visual-Studio-*
folder to<project-root>/dependencies
Generate the VS project filescmake ..
Build RoR Copy all the .dll files from<project-root>/dependencies/bin/
to<build-folder>/bin