![]() All checks about still hard-coded as well. The new settings from DbEngineParameters about directories to ignore while scanning collections is just not used. Note2 : In CollectionScanner, i suppose that all is not yet implemented. To get DbEngineParameters in CollectionScanner, just use DbCoreAcess.parameters() as well. This is not permit at linking time to prevent cycling symbols linking. In fact you just want to print as debug statement the DB engine parameters from ApplicationSettings in CollectionScanner. Symbols are separated due to use libdigikam with showfoto which is database free. You try to use symbols defined in libdigiKam into libdigikamdatabase. home/gilles/Devel/5.x/core/libs/database/collection/collectionscanner.cpp:363: undefined reference to `Digikam::ApplicationSettings::getDbEngineParameters() const' home/gilles/Devel/5.x/core/libs/database/collection/collectionscanner.cpp:363: undefined reference to `Digikam::ApplicationSettings::instance()' Linking CXX shared library libdigikamdatabase.so Linking CXX shared library libdigikamcore.so You guessed last year it is a linking problem. home/jan/Downloads/digikamGIT/core/libs/database/collection/collectionscanner.cpp:363: undefined reference to `Digikam::ApplicationSettings::getDbEngineParameters() const' ![]() home/jan/Downloads/digikamGIT/core/libs/database/collection/collectionscanner.cpp:363: undefined reference to `Digikam::ApplicationSettings::instance()' Unfortunately, I get the same error as in dk 4 version:ĬMakeFiles/digikamdatabase_src.dir/collection/: In function `Digikam::CollectionScanner::CollectionScanner()': Therefore, I need access to the database parameters in collectionscanner class:Ĭonst DbEngineParameters prm = ApplicationSettings::instance()->getDbEngineParameters() The last part to complete the task is to replace the hard-coded ignoration of by the entries made by users. The entries a user make there will be stored in digikamrc. Therefore I added a text field to the database settings menu. My part was to configure what directories should be ignored. It depends on the initial patch from Amilcar Lucas to ignore all directories (hard-coded in class collectionscanner.cpp). I found some time to port my fix to new dk version 5. home/jan/Downloads/digikamGIT/core/libs/database/collectionscanner.cpp:376: undefined reference to `Digikam::ApplicationSettings::getIgnoredDirectories() const'Ĭollect2: error: ld returned 1 exit statusĬould you give me hint, what I make wrong? home/jan/Downloads/digikamGIT/core/libs/database/collectionscanner.cpp:376: undefined reference to `Digikam::ApplicationSettings::instance()' QString ignoredDirectories = ApplicationSettings::instance()->getIgnoredDirectories() ĬMakeFiles/digikamdatabase.dir/_/libs/database/: In function `Digikam::CollectionScanner::CollectionScanner()': There I include applicationsettings.h and want to access the settings by the following command: The settings are correctly stored in the digikamrc config file.īut now I have a problem when I try to access the settings in the collection scanner. ![]() I have extended the setupdatabase and it is possible to add directory names that should be ignored. Patch to ignore subdirectories and their content
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |