Open Creteil opened 2 years ago
You seem to have libportal installed but still the build fails , I will try on my machine to build the same and check for any errors
Maybe this information can help :
bigbob@bigbob-UX331UN:~/tmp/Building/TextSnatcher/TextSnatcher$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.04
Release: 21.04
Codename: hirsute
bigbob@bigbob-UX331UN:~/tmp/Building/TextSnatcher/TextSnatcher$ dpkg -l "vala*" | grep ii
ii valac 0.48.17-1 amd64 C# like language for the GObject system
ii valac-0.48-vapi 0.48.17-1 all C# like language for the GObject system - vapi files
ii valac-bin 0.48.17-1 amd64 internal package for C# like language for the GObject system
bigbob@bigbob-UX331UN:~/tmp/Building/TextSnatcher/TextSnatcher$
@RajSolai, what does this command report on your system ? :
locate .vapi | grep portal
OK, found the problem...
Need to backport the version « 0.5-2 » of « libportal » from « jammy » :
bigbob@bigbob-UX331UN:~/tmp/Building/TextSnatcher/TextSnatcher$ dpkg -l | grep "libportal"
ii libportal-dev:amd64 0.5-2 amd64 Flatpak portal library (development files)
ii libportal0:amd64 0.4-2~21.04.sav0 amd64 Flatpak portal library
ii libportal1:amd64 0.5-2 amd64 Flatpak portal library - non-GUI part
bigbob@bigbob-UX331UN:~/tmp/Building/TextSnatcher/TextSnatcher$ locate .vapi | grep portal
/usr/share/vala/vapi/libportal.vapi
bigbob@bigbob-UX331UN:~/tmp/Building/TextSnatcher/TextSnatcher$
Without this backport, old version doesn't provide « /usr/share/vala/vapi/libportal.vapi ».
Hope it help.
Regards.
hmm,
Dependencies seem broken (at least under ubuntu...) :
bigbob@bigbob-UX331UN:~/tmp/Building/TextSnatcher$ sudo apt install com.github.rajsolai.textsnatcher
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation :
Les paquets suivants contiennent des dépendances non satisfaites :
com.github.rajsolai.textsnatcher : Dépend: tessdata-best (>= 4.0) mais il n'est pas installable
Recommande: tesseract-ocr-all mais ne sera pas installé
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».
bigbob@bigbob-UX331UN:~/tmp/Building/TextSnatcher$
To be able to install the package without error I have removed the dependency to « tessdata-best » package.
By the way, where can you able to find a debian package named « tessdata-best » ?
I have looked everywhere, but not able to find it...
Guess I made a typo on the package names I will commit the changes, Thanks for reporting the issue @Creteil
I built the deb package with some changes in deb/control and deb/rules and tested in elementary OS Odin (Ubuntu 20.04) but it needs libportal shared library may be you could try the deb package as Ubuntu 21.04 ships with libportal can you please try it out @Creteil
https://u.pcloud.link/publink/show?code=XZUdOyVZ3njXolTBJn5qJ8IJmCJhIpMh9Wu7
Unfortunately, your build depend from « libgranite.so.6 », where under Ubuntu 21.04, the version installed is « libgranite5 ».
I have successfully build the package on my side, BTW, running it doesn't do something useful.
The windows decoration include buttons :
And trying to use it doesn't do anything...
Here is a video showing the fact I can't grab anything :
Sorry @Creteil for a late reply, caught up in some college works. I will look in the issue and btw the v2.0.0 application does not rely on libportal for screenshots hence I think it is worth to try the build again.
OK, so...
Upgraded my laptop to 22.04 LTS and give it another try from source code...
This time it work, with a little fix :
Added the « libgranite6 » as a dependency :
bigbob@bigbob-ux31a:~/tmp/Building/TextSnatcher/TextSnatcher$ cat debian/control Source: com.github.rajsolai.textsnatcher Section: utils Priority: optional Maintainer: Solai Raj <solairaj@gmail.com> Build-Depends: debhelper-compat (= 12), meson, valac, libglib2.0-dev, libgtk-3-dev, libgranite-dev, libhandy-1-dev, libgdk-pixbuf-2.0-dev, libgirepository1.0-dev, libportal-dev Standards-Version: 4.4.1 Homepage: https://github.com/RajSolai/TextSnatcher Vcs-Browser: https://github.com/RajSolai/TextSnatcher Vcs-Git: https://github.com/RajSolai/TextSnatcher.git Package: com.github.rajsolai.textsnatcher Architecture: any Depends: ${misc:Depends}, tesseract-ocr (>= 4.0.0), tesseract-ocr-tha, tesseract-ocr-tam, tesseract-ocr-eng, tesseract-ocr-hin, tesseract-ocr-jpn, tesseract-ocr-ara, tesseract-ocr-rus, tesseract-ocr-fra, tesseract-ocr-chi-sim, tesseract-ocr-spa, libgranite6 Description: Snatch Text with just a Drag Multiple Language Support. Copy Text from images with a Drag. Drag over any Image and Paste. Fast and Easy to Use. bigbob@bigbob-ux31a:~/tmp/Building/TextSnatcher/TextSnatcher$
Hi,
It look like the build process can't finish.
Here is the error :
Do you have any advice on what missing ?