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

pg_tips <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |---
                 CC|                            |[email protected]
             Status|RESOLVED                    |REOPENED

--- Comment #9 from pg_tips <[email protected]> ---
This isn't working correctly in spectacle 6.6.3-1 on Fedora 43.

On a system which has the 'tesseract-libs' package installed (and therefore has
library files at '/usr/lib64/libtesseract.so.5.5.2' and
'/usr/lib64/libtesseract.so.5.5', but no file simply called 'libtesseract.so'),
Spectacle reports that OCR is not available. Starting Spectacle from the
command line gives the messages:

```
spectacle: Unable to load Tesseract candidate "tesseract" : "Cannot load
library tesseract: tesseract: cannot open shared object file: No such file or
directory"
spectacle: Unable to locate a suitable Tesseract shared library
spectacle: Tesseract runtime library not available
```

Looking at the documentation of the QLibrary class, does it actually do what we
need here, i.e. to find 'libtesseract.so.5.5" or 'libtesseract.5.5.2.so'?

According to the docs, it "tries the name with different platform-specific file
prefixes, like "lib" on Unix and Mac ... and suffixes, like ".so" on Unix...".

So, if you tell it to look for 'tesseract', you'd expect it to find
'libtesseract.so', but there's nothing to say that it will find files with
version-specific suffices like 'libtesseract.so.5.5"

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

Reply via email to