Details
- Reviewers
adridg - Group Reviewers
Baloo Frameworks
library compiles
test compile produces linker error
Diff Detail
- Repository
- R293 Baloo
- Branch
- use-class (branched from flexible-docid)
- Lint
No Linters Available - Unit
No Unit Test Coverage
To solve this warning you need to fix DocumentId class, add operator<<() for QDebug.
In D10826 add:
QDebug operator<<(QDebug stream, const Baloo::DocumentId &docId); outside of baloo namespace, don't forget to #include <QDebug> in header
Implement this operator in .cpp file (or inline), eg. stream << docId.inode() << docId.deviceId(); return stream or whatever, as it is done in src/engine/document.h line 103
@alexeymin: Could you use inline comments, please. That would help me a lot. And: thank you for your comments. It is really nice to have someone commenting without me poking first. ;-)
That's great. Any clues to solve this?
[ 35%] Building CXX object src/file/extractor/autotests/CMakeFiles/extractorIOTest.dir/__/iohandler.cpp.o [ 35%] Linking CXX executable ../../../../bin/extractorIOTest CMakeFiles/extractorIOTest.dir/__/iohandler.cpp.o: In function `Baloo::IOHandler::nextId()': /home/super/devel/kde/src/frameworks/baloo-flex/src/file/extractor/iohandler.cpp:46: undefined reference to `Baloo::DocumentId::DocumentId(unsigned long long)' /home/super/devel/kde/src/frameworks/baloo-flex/src/file/extractor/iohandler.cpp:49: undefined reference to `Baloo::DocumentId::operator unsigned long long() const' collect2: error: ld returned 1 exit status
I know cmake only a very little bit and baloo seems very complicated an that respect.
Error compiling tests. Probably you need to add sources (.cpp - files) containing mentioned references to test target in CMakeLists.txt too