https://bugs.kde.org/show_bug.cgi?id=123097

--- Comment #25 from Jan Wolter <onl...@wolter.re> ---
Created attachment 101781
  --> https://bugs.kde.org/attachment.cgi?id=101781&action=edit
IgnoreDirectories-Patch dk 5

Hello Gilles,

I found some time to port my fix to new dk version 5. The attached code depends
on tag v5.2.0.

It depends on the initial patch from Amilcar Lucas to ignore all @eaDir
directories (hard-coded in class collectionscanner.cpp). My part was to
configure what directories should be ignored. Therefore I added a text field to
the database settings menu. The entries a user make there will be stored in
digikamrc.

The last part to complete the task is to replace the hard-coded ignoration of
@eaDir by the entries made by users. Therefore, I need access to the database
parameters in collectionscanner class:
const DbEngineParameters prm =
ApplicationSettings::instance()->getDbEngineParameters();

Unfortunately, I get the same error as in dk 4 version:
CMakeFiles/digikamdatabase_src.dir/collection/collectionscanner.cpp.o: In
function `Digikam::CollectionScanner::CollectionScanner()':
/home/jan/Downloads/digikamGIT/core/libs/database/collection/collectionscanner.cpp:363:
undefined reference to `Digikam::ApplicationSettings::instance()'
/home/jan/Downloads/digikamGIT/core/libs/database/collection/collectionscanner.cpp:363:
undefined reference to `Digikam::ApplicationSettings::getDbEngineParameters()
const'
collect2: error: ld returned 1 exit status
make[2]: *** [core/libs/database/libdigikamdatabase.so.5.2.0] Error 1
make[1]: *** [core/libs/database/CMakeFiles/digikamdatabase.dir/all] Error 2
make: *** [all] Error 2

You guessed last year it is a linking problem. Could you please check that?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to