[Solved] Guitarix 0.44.1 does not compile on KDE Neon 22.04

All your LV2 and LADSPA goodness and more.

Moderators: MattKingUSA, khz

Post Reply
RockVice77
Established Member
Posts: 16
Joined: Sat Feb 24, 2018 5:37 pm

[Solved] Guitarix 0.44.1 does not compile on KDE Neon 22.04

Post by RockVice77 »

I am struggling to compile Guitarix on KDE Neon 22.04 (based on Ubuntu 22.04)
The command ./waf configure seems succesful, but during the build process I get this error:

Code: Select all

[ 642/1039] Compiling src/gx_head/gui/gx_portmap.cpp
In file included from ../src/headers/guitarix.h:78,
                 from ../src/gx_head/gui/gx_stackbox_builder.cpp:2:
../src/headers/engine.h:51:10: fatal error: lv2/lv2plug.in/ns/ext/presets/presets.h: File o directory non esistente
   51 | #include "lv2/lv2plug.in/ns/ext/presets/presets.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

In file included from ../src/headers/guitarix.h:78,
                 from ../src/gx_head/gui/gx_main_window.cpp:25:
../src/headers/engine.h:51:10: fatal error: lv2/lv2plug.in/ns/ext/presets/presets.h: File o directory non esistente
   51 | #include "lv2/lv2plug.in/ns/ext/presets/presets.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

In file included from ../src/headers/guitarix.h:78,
                 from ../src/gx_head/gui/gx_portmap.cpp:25:
../src/headers/engine.h:51:10: fatal error: lv2/lv2plug.in/ns/ext/presets/presets.h: File o directory non esistente
   51 | #include "lv2/lv2plug.in/ns/ext/presets/presets.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Waf: Leaving directory `/home/rock/Programs/guitarix-0.44.1/build'

I cannot understand if I am missing something or if I am using an uncompatible library.
Is there anyone that can help me to figure out the issue?

Thank you for any hint or support!

Last edited by RockVice77 on Thu Nov 02, 2023 7:42 am, edited 1 time in total.
novalix
Established Member
Posts: 108
Joined: Wed Aug 11, 2021 1:12 pm
Has thanked: 6 times
Been thanked: 39 times

Re: Guitarix 0.44.1 does not compile on KDE Neon 22.04

Post by novalix »

Hola,

what is the output of

Code: Select all

apt-cache policy lv2-dev

?

RockVice77
Established Member
Posts: 16
Joined: Sat Feb 24, 2018 5:37 pm

Re: Guitarix 0.44.1 does not compile on KDE Neon 22.04

Post by RockVice77 »

novalix wrote: Wed Nov 01, 2023 9:23 am

Hola,
what is the output of

Code: Select all

apt-cache policy lv2-dev

?

Thank you for your help, @novalix .

This is the output from the terminal:

Code: Select all

lv2-dev:
  Installato: 6:1.18.10-1kxstudio2
  Candidato:  6:1.18.10-1kxstudio2
  Tabella versione:
 *** 6:1.18.10-1kxstudio2 500
        500 http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
     5:1.18.2+git20210918.4 500
        500 http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu bionic/main amd64 Packages
     1.18.2-1 500
        500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
User avatar
Impostor
Established Member
Posts: 1392
Joined: Wed Aug 17, 2022 1:55 pm
Has thanked: 148 times
Been thanked: 366 times

Re: Guitarix 0.44.1 does not compile on KDE Neon 22.04

Post by Impostor »

I had a similar problem before:

Upgrading from ubuntu's 1.16 to kx's 1.18 removes the usr/include/lv2/lv2plug.in folder. It just contains symlinks to targets inside /usr/lib/lv2/. Reinstating that folder manually may work. (downgrade to 1.16 /copy folder/upgrade to 1.18/copy folder back)

novalix
Established Member
Posts: 108
Joined: Wed Aug 11, 2021 1:12 pm
Has thanked: 6 times
Been thanked: 39 times

Re: Guitarix 0.44.1 does not compile on KDE Neon 22.04

Post by novalix »

Try the Ubuntu version of the package.
It's possible that @falktx version is .. erm .. somewhat ahead of the time.

https://github.com/KXStudio/Repository/issues/303

User avatar
sunrat
Established Member
Posts: 925
Joined: Wed Jul 22, 2020 2:08 pm
Has thanked: 152 times
Been thanked: 247 times

Re: Guitarix 0.44.1 does not compile on KDE Neon 22.04

Post by sunrat »

I also had the same problem a while ago with KX lv2-dev in Debian Bullseye. Fixed by removing the KX version and installing the Debian version, then using

Code: Select all

apt-mark hold lv2-dev

to ensure the Debian version remains. Same issue with the sordi package in case you ever need that for compiling.
KX has the annoying habit of using a higher epoch than distro versions to give them preference over distro-supplied versions.

RockVice77
Established Member
Posts: 16
Joined: Sat Feb 24, 2018 5:37 pm

Re: Guitarix 0.44.1 does not compile on KDE Neon 22.04

Post by RockVice77 »

I disabled the Kxstudio repositories and then I had to reinstall lv2-dev, liblilv-dev and libsratom-dev from the official Ubuntu repository.
After that I was able to build succesfully Guitarix from source code.

Thank you all for the answers!

novalix
Established Member
Posts: 108
Joined: Wed Aug 11, 2021 1:12 pm
Has thanked: 6 times
Been thanked: 39 times

Re: [Solved] Guitarix 0.44.1 does not compile on KDE Neon 22.04

Post by novalix »

Nice to hear that it worked out.
If you would want to readd the kxstudio repos someday be sure to ether mark the packages you don't want to be "updated" on hold (like in @sunrats example) or (better) to pin them down.

Btw: If one wants to use an up to date version of lv2-dev (1.18.10) on debian/ubuntu and derivates. This is now available in the corresponding unstable repos (should be installable on stable, too). There has been a small bug in the packaging, which prevented the package from being updated. That is resolved now.

buscon
Established Member
Posts: 27
Joined: Wed Feb 26, 2020 9:07 pm
Has thanked: 7 times
Been thanked: 4 times

Re: [Solved] Guitarix 0.44.1 does not compile on KDE Neon 22.04

Post by buscon »

hi everyone,

I was struggling with this very same problem and I finally fixed it thanks to this post.
I think this post should be a must read for anyone using guitarix on a debian based machine.

Thank you!

Post Reply