El dimarts, 25 de gener de 2022, a les 0:22:05 (CET), Andreas Naumann va escriure: > > On 24.01.22 23:33, Albert Astals Cid wrote: > > El dilluns, 24 de gener de 2022, a les 22:51:49 (CET), Andreas Naumann va > > escriure: > >> Hey all okular developers, > >> > >> please let me first introduce my self, since i am new to the list. > >> > >> My name is Andreas and I am from Germany. I do have several years > >> experience in (scientific) Softwaredevelopment with C++. Since I use the > >> KDE desktop quite regularly, I thought, I could also give something back > >> to the community. > >> > >> So, I was looking for some task, I am interested in and which also > >> serves as a starting point to learn the code base. > >> > >> Thus I selected the bug263732 <https://bugs.kde.org/show_bug.cgi?id=263732> > >> > >> During studying the code and trying to fix it, I asked myself some > >> question on the code and workflow: > >> > >> 1. The commandline is parsed by the commandline parser from Qt. But the > >> arguments are passed around using a string. Everytime a function needs > >> to check for an argument, it deserializes the string to retrieve the value. > >> > >> That workflow has the advantage, that it requires only a QString to pass > >> the data to other functions. > >> I prefer to have a data structure, which contains the arguments as fields. > >> > >> Is there any other disadvantage in using a struct instead of a string? > > You can't pass a struct to an already running instance of okular. > > Well, yes you can, serializing it, which is what we do. > > > >> 2. Several tests fail. Is that intended, or forgotten? I did not yet dig > >> deeper into the codebase to understand, what the tests do. > > Tests should all mostly pass, what failures do you get?: > > ctest -j2 gives: > > 2 - kimgiotest (Failed) > 6 - documenttest (SEGFAULT) > 7 - searchtest (SEGFAULT) > 10 - editannotationcontentstest (Failed) > 11 - addremoveannotationtest (Failed) > 12 - translateannotationtest (Failed) > 13 - modifyannotationpropertiestest (Failed) > 14 - editformstest (Failed) > 16 - mainshelltest (SEGFAULT) > 17 - annotationtoolbartest (SEGFAULT) > > lsb_release -a: > > Distributor ID: Neon > Description: KDE neon Unstable Edition > Release: 20.04 > Codename: focal > > git show -s HEAD: commit 44c86de7e415e30572d774a3ec3e90681bc8abfa (HEAD > -> release/21.12, origin/release/21.12) > > > I appended the test result from cmake.
"You are doing it wrong" QWARN : KIMGIOTest::testExifOrientation(No Exif metadata) org.kde.okular.core: Invalid plugin factory for "/usr/lib/x86_64-linux-gnu/qt5/plugins/okular/generators/okularGenerator_kimgio.so":"Die Bibliothek /usr/lib/x86_64-linux-gnu/qt5/plugins/okular/generators/okularGenerator_kimgio.so kann nicht geladen werden: (/usr/lib/x86_64-linux-gnu/qt5/plugins/okular/generators/okularGenerator_kimgio.so: undefined symbol: _ZN6Okular9Generator24freeOpaqueActionContentsERKNS_19BackendOpaqueActionE)" Did you follow https://okular.kde.org/build-it/ carefully? Specially the source part? Cheers, Albert > > Greetings, > Andreas > > > > > > Cheers, > > Albert > > > >> > >> Greetings, > >> Andreas > >> > >> > > > > > > >