svenstaro / rofi-calc

🖩 Do live calculations in rofi!
MIT License
964 stars 31 forks source link

ABI version of plugin: 'calc.so' does not match: 00000006 expecting: 00000007 #116

Closed revsuine closed 6 months ago

revsuine commented 6 months ago

Hi there,

I updated rofi-lbonn-wayland to 1.7.5+wayland3-1, which causes the following error to appear whenever you either run rofi with calc mode added to my config.rasi, or run with rofi -show calc -modi calc -no-show-match -no-sort:

(process:21205): Rofi-WARNING **: 11:59:57.309: ABI version of plugin: 'calc.so' does not match: 00000006 expecting: 00000007

This is the same issue as #107, however this only started happening for me after the latest rofi-lbonn-wayland update.

I have tried rebuilding both rofi-lbonn-wayland (again after the update) and rofi-calc, both to no avail.

svenstaro commented 6 months ago

I don't believe this has anything to do with this plugin's code. It's an ABI error and so a rebuild should fix it. Are you sure you rebuilt it correctly?

revsuine commented 6 months ago

I've been using makepkg -si on the rofi-lbonn-wayland AUR package to rebuild it, and have reinstalled rofi-calc from the official Arch repos. Is there something else I should be doing?

svenstaro commented 6 months ago

You also need to rebuild rofi-calc using makepkg against your rofi. If you install it from Arch repos, you will just get a version that is compiled against the official rofi.

revsuine commented 6 months ago

Thank you, that fixed it

untainsYD commented 6 months ago

Thank you, that fixed it

so, how did u manage to fix it?

revsuine commented 6 months ago

@untainsYD clone https://gitlab.archlinux.org/archlinux/packaging/packages/rofi-calc, cd into it, makepkg -si

(if on Arch, if you're on another distro rebuild rofi-calc for that distro)

untainsYD commented 6 months ago

@untainsYD clone https://gitlab.archlinux.org/archlinux/packaging/packages/rofi-calc, cd into it, makepkg -si

(if on Arch, if you're on another distro rebuild rofi-calc for that distro)

thanks

Rolv-Apneseth commented 5 months ago

Just gonna add here for anyone else stumbling upon this issue, I added rofi-calc-git to the AUR so you should just be able to install that as it will clone the repo and build it from source.

If anyone has experience with writing PKGBUILD, I'd appreciate any feedback, as it installs just fine for me but maybe I missed something.

revsuine commented 5 months ago

@Rolv-Apneseth jsyk, the extra package also builds from source already, however it does so for a tagged release rather than the latest git commit (which yours builds). e.g. I used the extra/rofi-calc package to rebuild and fix this issue, pacman just didn't do it for me (I assume as I already had the build files cached somewhere and the version number hadn't changed), I had to clone the PKGBUILD and run makepkg -si for it to happen. (Not saying you should take the package down or anything, it still offers an option for people wanting to install the latest git commit rather than the latest tagged commit, but just that the existing makepkg also builds from source, just not the latest commit)

Btw, you should add libqualculate as a dependency. Otherwise, LGTM

Rolv-Apneseth commented 5 months ago

Ah I didn't know that, thanks. So I assume clearing cache / using paru with --rebuild should do it then.

And thanks I'll add that dependency.

Edit: So I tried installing with paru -S rofi-calc --rebuild and that didn't seem to work. How I assumed it worked, before you said it builds it, was that the rofi-calc package is already built / compiled against regular rofi. However, we need it compiled against a rofi with the ABI changes like rofi-lbonn-wayland for it to work, so any method of fully re-building while that fork is installed fixes it. Is that incorrect?