Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script to install dependencies? #164

Open
g40 opened this issue Jul 5, 2024 · 9 comments
Open

Script to install dependencies? #164

g40 opened this issue Jul 5, 2024 · 9 comments

Comments

@g40
Copy link

g40 commented Jul 5, 2024

Would be most helpful, thanks.

@brummer10
Copy link
Owner

? How should that work across distributions ?

@g40
Copy link
Author

g40 commented Jul 5, 2024

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

@brummer10
Copy link
Owner

Yes, that will be welcome.

@g40
Copy link
Author

g40 commented Jul 6, 2024

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
Copy link
Owner

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

@g40
Copy link
Author

g40 commented Jul 6, 2024

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 �[32mbuild/.conf_check_d3b1b70f8f116b9570d676fadd3ff626/test.cpp�[0m

['/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
Copy link
Owner

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
Copy link
Author

g40 commented Jul 6, 2024

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
Copy link

kprox0 commented Jul 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants