[sword-devel] Bibletime 2.0.alpha3 FTBFS with sword 1.6.0RC1 library
Eeli Kaikkonen
eekaikko at mail.student.oulu.fi
Mon Apr 13 00:26:38 MST 2009
Jonathan Marsden wrote:
> I'm seeing a problem building BT 2.0.alpha3 with the new 1.6.0RC1 SWORD
> library code. At this point I have no idea if this is my bad packaging,
> or an issue with the new library, or an issue with BT revealed by the
> new library.
>
> Jonathan
>
> ---------------------------------------------------------------------
> /home/jonathan/packages/sword/bibletime/export-rc1/src/backend/managers/cswordbackend.cpp:
> In member function ‘void
> CSwordBackend::reloadModules(CSwordBackend::SetupChangedReason)’:
> /home/jonathan/packages/sword/bibletime/export-rc1/src/backend/managers/cswordbackend.cpp:498:
> error: ‘sysconfig’ was not declared in this scope
'sysconfig' is used in our CSwordBackend class which inherits SWMgr.
sysconfig is, as far as I know, a public data member of SWMgr. Here's
the code:
/** Reload all Sword modules. */
void CSwordBackend::reloadModules(SetupChangedReason reason) {
shutdownModules();
//delete Sword's config to make Sword reload it!
if (myconfig) { // force reload on config object because we may have
changed the paths
delete myconfig;
config = myconfig = 0;
// we need to call findConfig to make sure that augPaths are reloaded
findConfig(&configType, &prefixPath, &configPath, &augPaths, sysconfig);
// now re-read module configuration files
loadConfigDir(configPath);
}
else if (config) {
config->Load();
}
initModules(reason);
}
It reloads the sword config in case it has been changed, e.g. the module
data paths have been changed. I hope someone could help - I haven't
written this and mgruner was the last one to edit this.
--Eeli Kaikkonen
More information about the sword-devel
mailing list