brummer10 / guitarix

guitarix virtual versatile amplification for Jack/Linux
235 stars 24 forks source link

Script to install dependencies? #164

Open g40 opened 1 week ago

g40 commented 1 week ago

Would be most helpful, thanks.

brummer10 commented 1 week ago

? How should that work across distributions ?

g40 commented 1 week ago

I'll send a PR if that works for you.

brummer10 commented 1 week ago

Yes, that will be welcome.

g40 commented 1 week ago

Hello again, so far I have installed the package below. Running configure raises the following error. Which livl-0 is required?

hecking for program 'sassc'             : /usr/bin/sassc 
Checking for 'gthread-2.0'               : yes 
Checking for 'glibmm-2.4'                : yes 
Checking for 'gtk+-3.0'                  : yes 
Checking for 'gtkmm-3.0'                 : yes 
Checking for 'giomm-2.4'                 : yes 
Checking for header ladspa.h             : yes 
Checking for 'lrdf'                      : yes 
Checking for 'lilv-0'                    : not found 
The configuration failed
(complete log in /home/moi/src/audio/guitarix/trunk/build/config.log)
sudo apt install -y libjack-dev libsndfile1-dev libgtk-3-dev ladspa-sdk libgtkmm-3.0-dev libboost-dev intltool 
sudo apt install -y libfftw3-dev libcurl4-openssl-dev fonts-roboto sassc liblrdf0-dev liblilv-0-0 lilv-utils
brummer10 commented 1 week ago

It's, on debian based distros, mostly the -dev package which is required. So here it's libliv-dev

g40 commented 1 week ago

Thanks - there is a slight typo there, it is liblilv-dev. Now another issue, libzita-convolver4 is installed but the configure fails with

Checking for boost_iostreams >= 1.42     : yes 
Checking for zita-convolver >= 3.0       : Zita-convolver version 3 not found, trying version 4 
Checking for zita-convolver >= 4.0       : Zita-convolver version 4 not found 
The configuration failed
(complete log in /home/moi/src/audio/guitarix/trunk/build/config.log)

More detail. zita-convolver.h exists in several but I'm not sure if the setup references the right one.

/home/moi/src/audio/guitarix/trunk/src/zita-convolver/zita-convolver.h
/home/moi/src/audio/guitarix/trunk/src/zita-convolver-ffmpeg/zita-convolver.h

----------------------------------------
Checking for zita-convolver >= 4.0
==>

            #include <zita-convolver.h>
            #if ZITA_CONVOLVER_MAJOR_VERSION != 4
            #error
            #endif
            int main(){ return 0; }

<==
[1/2] Compiling build/.conf_check_d3b1b70f8f116b9570d676fadd3ff626/test.cpp

['/usr/bin/g++', '-DIS_LINUX="linux"', '-DLOCALEDIR="/usr/share/locale"', '-DGETTEXT_PACKAGE="guitarix"', '-DENABLE_NLS=1', '-DHAVE_SNDFILE=1', '-DHAVE_FFTW3_H=1', '-DHAVE_FFTW3=1', '-DHAVE_JACK=1', '-DHAVE_GMODULE_EXPORT=1', '-DHAVE_CURL=1', '-DHAVE_GTHREAD=1', '-DHAVE_GLIBMM=1', '-DHAVE_GTK2=1', '-DHAVE_GTKMM=1', '-DHAVE_GIOMM=1', '-DHAVE_LADSPA_H=1', '-DHAVE_LRDF=1', '-DHAVE_LILV=1', '../test.cpp', '-c', '-o/home/moi/src/audio/guitarix/trunk/build/.conf_check_d3b1b70f8f116b9570d676fadd3ff626/testbuild/test.cpp.1.o']
err: ../test.cpp:2:22: fatal error: zita-convolver.h: No such file or directory
    2 |             #include <zita-convolver.h>
brummer10 commented 1 week ago

It's the same , you need libzita-convolver-dev

But, recommended is to use the included zita-packages by using the configure flags --includeresampler --includeconvolver

g40 commented 1 week ago

Indeed. Thanks again.

OK, so the final list here for apt users is this: (I use a makefile as a driver for all of these tasks).

# install all dev packages
install:
    sudo apt install -y libjack-dev libsndfile1-dev libgtk-3-dev ladspa-sdk libgtkmm-3.0-dev libboost-all-dev intltool libfftw3-dev libcurl4-openssl-dev fonts-roboto sassc liblrdf0-dev liblilv-dev lilv-utils libzita-convolver-dev libzita-resampler-dev libavahi-gobject-dev libeigen3-dev gperf faust
kprox0 commented 1 week ago

On a fresh Fedora 40 distribution that was not set up for S/W development, this was required.

Perhaps there should be scripts per Linux distubution.

#!/bin/bash

RPMS2INSTALL = "libcairo2-dev cairo-devel libX11-devel lv2-devel cmake \
intltool sndfile libsndfile-devel fftw-devel jack-audio-connection-kit-devel \
lv2-devel pipewire-jack-audio-connection-kit-devel libcurl-devel sassc \
glibmm2.4-devel gtk+-devel gtk3-devel gtk3mm-devel gtk3mm gtkmm gtk gtkmm3.0-devel \
ladspa-devel liblrdf-devel lilv-devel boost-system boost-devel faust gperftools-devel \
avahi-gobject-devel bluez-libs-devel liblo-devel eigen3-devel zita-convolver-devel"

dnf install $RPMS2INSTALL