ror-linux-buildscripts
ror-linux-buildscripts copied to clipboard
Issue compiling -- Did I do anything wrong?
After running the commands $ sh dependencies.sh and $ sh game.sh I am getting:
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
CMake Error at source/CMakeLists.txt:1 (include):
include could not find load file:
FetchContent
CMake Error at source/main/CMakeLists.txt:271 (FetchContent_Declare):
Unknown CMake command "FetchContent_Declare".
-- Configuring incomplete, errors occurred!
See also "/home/user/rigs-of-rods-source/rigs-of-rods/0_build/RelWithDebInfo/CMakeFiles/CMakeOutput.log".
See also "/home/user/rigs-of-rods-source/rigs-of-rods/0_build/RelWithDebInfo/CMakeFiles/CMakeError.log".
I already had one issue (outdated version of something) that I was able to solve. Am I doing anything wrong?
Hello
Looks like you're doing everything right and there's a bug in RoR's cmake scripts: we declare minimum cmake version as 3.10, but we use FetchContent module which needs 3.11+ @AnotherFoxGuy Can you verify please?
@cddepppp256 Try updating to CMake 3.11+ and see if it works.
Ok, cmake works now. It is still compiling, though.
Now I am getting an error from ninja:
/home/user/.conan/data/OGRE/1.11.4/anotherfoxguy/stable/package/101f43acc3e3a40a66f5c80253975b865d79dce2/lib/libOgreMeshLodGenerator.so /home/user/.conan/data/OGREdeps/2018-07/anotherfoxguy/stable/package/0ab9fcf606068d4347207cc29edd400ceccbc944/lib/libfreetype.a /home/user/.conan/data/OGREdeps/2018-07/anotherfoxguy/stable/package/0ab9fcf606068d4347207cc29edd400ceccbc944/lib/libzlib.a /home/user/.conan/data/OGREdeps/2018-07/anotherfoxguy/stable/package/0ab9fcf606068d4347207cc29edd400ceccbc944/lib/libFreeImage.a /home/user/.conan/data/OGREdeps/2018-07/anotherfoxguy/stable/package/0ab9fcf606068d4347207cc29edd400ceccbc944/lib/libzziplib.a /home/user/.conan/data/OGREdeps/2018-07/anotherfoxguy/stable/package/0ab9fcf606068d4347207cc29edd400ceccbc944/lib/libOIS.so && :
source/main/CMakeFiles/RoR.dir/gfx/SkyManager.cpp.o: In function `SkyManager::LoadCaelumScript(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int)':
SkyManager.cpp:(.text+0x2b1): undefined reference to `Caelum::CaelumPlugin::loadCaelumSystemFromScript(Caelum::CaelumSystem*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::Pass::setFragmentProgram(std::string const&, bool)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::Resource::Resource(Ogre::ResourceManager*, std::string const&, unsigned long long, std::string const&, bool, Ogre::ManualResourceLoader*)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::MeshManager::createManual(std::string const&, std::string const&, Ogre::ManualResourceLoader*)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::ScriptTranslator::getString(Ogre::SharedPtr<Ogre::AbstractNode> const&, std::string*)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::CompositorManager::getByName(std::string const&, std::string const&)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::CompositorManager::removeCompositor(Ogre::Viewport*, std::string const&)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::ScriptCompilerManager::registerCustomWordId(std::string const&)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::ResourceManager::createResource(std::string const&, std::string const&, bool, Ogre::ManualResourceLoader*, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const*)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::TextureUnitState::setTextureName(std::string const&, Ogre::TextureType)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::ScriptCompiler::addError(unsigned int, std::string const&, int, std::string const&)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::ResourceManager::getResourceByName(std::string const&, std::string const&)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::ResourceGroupManager::openResourceImpl(std::string const&, std::string const&, bool, Ogre::Resource*) const'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::Exception::getFullDescription() const'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::PixelUtil::getFormatName(Ogre::PixelFormat)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::ScriptCompiler::getResourceGroup() const'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::ResourceGroupManager::getResourceGroups() const'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::SceneManager::createBillboardSet(std::string const&, unsigned int)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::GpuProgramParameters::_findNamedConstantDefinition(std::string const&, bool) const'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::Log::logMessage(std::string const&, Ogre::LogMessageLevel, bool)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::MaterialManager::getByName(std::string const&, std::string const&)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::SceneManager::createManualObject(std::string const&)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::Exception::Exception(int, std::string const&, std::string const&, char const*, char const*, long)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::LogManager::logMessage(std::string const&, Ogre::LogMessageLevel, bool)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::MeshManager::createPlane(std::string const&, std::string const&, Ogre::Plane const&, float, float, int, int, bool, unsigned short, float, float, Ogre::Vector<3, float> const&, Ogre::HardwareBuffer::Usage, Ogre::HardwareBuffer::Usage, bool, bool)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::Technique::getSchemeName() const'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::ResourceManager::createOrRetrieve(std::string const&, std::string const&, bool, Ogre::ManualResourceLoader*, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const*)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::ResourceGroupManager::_unregisterResourceManager(std::string const&)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::Resource::changeGroupOwnership(std::string const&)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::TextureUnitState::getTextureName() const'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::Image::load(std::string const&, std::string const&)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::Entity::setMaterialName(std::string const&, std::string const&)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::ResourceGroupManager::createResourceGroup(std::string const&, bool)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::SceneManager::createEntity(std::string const&, Ogre::SceneManager::PrefabType)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::ResourceGroupManager::_registerResourceManager(std::string const&, Ogre::ResourceManager*)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::SceneManager::createEntity(std::string const&, std::string const&, std::string const&)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::Exception::Exception(int, std::string const&, std::string const&, char const*, char const*, long)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::CompositorManager::addCompositor(Ogre::Viewport*, std::string const&, int)'
/home/user/.conan/data/ogre-caelum/0.6.3/anotherfoxguy/stable/package/f5109b3ede3c5eef229ccd5c580c6e5b9f4ebe37/lib/libCaelum.so: undefined reference to `Ogre::Material::clone(std::string const&, bool, std::string const&) const'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.