[L2Ork-dev] Problems installing on Ubuntu Studio 20.04

Albert Graef aggraef at gmail.com
Tue Apr 20 07:04:33 EDT 2021


Hi all,

Here's another list which I have been using to build purr-data on both
Raspbian and Ubuntu Mate for the Raspberry Pi, so this should work on *any*
current Debian (10+) and Ubuntu (20.04+) system. This is probably the most
definitive list, since I actually tested it quite recently.

sudo apt install build-essential bison flex libgtk2.0-dev libgtk-3-dev
python2-dev flite1-dev ladspa-sdk libasound2-dev libjack-jackd2-dev
libbluetooth-dev libcairo2-dev libgl1-mesa-dev libglew1.6-dev libgsl-dev
libmagick++-dev libavifile-0.7-dev libdc1394-22-dev libfftw3-dev
libfluidsynth-dev libftgl-dev libgmerlin-avdec-dev libgsm1-dev libjpeg-dev
libmp3lame-dev libmpeg3-dev libquicktime-dev libraw1394-dev libsmpeg-dev
libspeex-dev libstk0-dev libtiff5-dev libv4l-dev libdv4-dev libiec61883-dev
libxv-dev libvorbis-dev libgconf2-dev libnss3-dev libxss-dev liblua5.3-dev

(On Ubuntu 20.10 and later you can replace liblua5.3-dev with liblua5.4-dev
to get the latest Lua version for the pd-lua plugin.)

With the above dependencies installed, running `make` in the toplevel
source directory should just work. Note that if you have a multi-core
system, you might want to run something like `make GEM_MAKEFLAGS=-j4` which
will speed up the build considerably. A `make check` afterwards will run
the regression tests.

To use the debuild stuff that I'm using for my OBS builds, you'll also need
debuild and friends which can be installed as follows:

sudo apt install devscripts pbuilder

You should then be able to run debuild as follows (please check
debuild/Makefile first for details):

cd debuild
make debchange
make debsrc-us    # to build a Debian source package for upload to, say,
OBS or Launchpad
make deb-us         # to build a binary package ready to be installed

This is the preferred method if all you want is a Debian package. It will
leave an unsigned source or binary package in the debuild directory, and it
won't touch any of the sources in the main source directory. Run `make
debclean` to get rid of the build artifacts again. If you want signed
packages, leave away the -us suffix, but then you'll have to jump through
some additional hoops first, see debuild/Makefile for details.

This will even work on Arch/Manjaro if you have the Debian packaging tools
installed. (That's how I do my scripted OBS uploads on my main development
system which is running Manjaro.)

HTH,
Albert


On Sun, Apr 11, 2021 at 12:51 PM Albert Graef <aggraef at gmail.com> wrote:

> On Sun, Apr 11, 2021 at 10:39 AM Rukshan J. Senanayaka <
> rjsenanayaka at gmail.com> wrote:
>
>> Two of the packages were not supporting Ubuntu 20.04 so I had to manually
>> install them.
>>
>
> The problem with such dependency lists on Debian/Ubuntu is that the
> package names and versioning keep changing all the time, so any such list
> falls victim to bitrot rather sooner than later. Specifically, nobody has
> been using slv2 any more for a *very* long time, that dependency probably
> dates back to the days of Ubuntu 12.04 and pd-l2ork 1 (and AFAICT has never
> been needed to compile Purr Data anyway).
>
> Marcelo, Jonathan already pointed you to the wiki, which tells you how to
> install a ready-made binary package for your system from the package
> repositories that we maintain on the OBS. That's the easiest way to go.
> There are packages for all recent Ubuntu and Debian releases, so make sure
> you find the right repository for your system (xUbuntu_20.04 in your case).
> Once you've added the repository as described in the wiki, `apt update` and
> then `apt install purr-data` will install Purr Data **and** all required
> dependencies (of which there are quite a few). It will also make sure that
> you always get the latest version if you use Ubuntu's update tool or `apt`
> to update your system.
>
> If you want or need to compile the sources yourself, the wiki has some
> instructions for that, too:
> https://github.com/agraef/purr-data/wiki/Installation#installing-from-source.
> But you will have to figure out the right build dependencies first. Your
> best bet for that is currently the list of build dependencies in the
> control file straight from the source:
> https://git.purrdata.net/jwilkes/purr-data/-/blob/master/debuild/debian/control.
> I maintain this to do the OBS builds, so this is *always* up-to-date and I
> *know* that it works because otherwise the OBS builds break. ;-) There are
> some alternative dependencies in there (delimited with the `|` character),
> to account for different Debian and Ubuntu versions, but as far as I can
> tell, the following list of build dependencies should work on modern Ubuntu
> systems (20.04 or later):
>
> autoconf automake libtool pkg-config bison flex libgtk2.0-dev libgtk-3-dev
> python2-dev flite1-dev ladspa-sdk libasound2-dev libjack-dev
> libbluetooth-dev libcairo2-dev libgl1-mesa-dev libglew1.6-dev libgsl-dev
> libmagick++-dev libavifile-0.7-dev libdc1394-22-dev libfftw3-dev
> libfluidsynth-dev libftgl-dev libgmerlin-avdec-dev libgsm1-dev libjpeg-dev
> liblua5.3-dev libmp3lame-dev libmpeg3-dev libquicktime-dev libraw1394-dev
> libsmpeg-dev libspeex-dev libstk0-dev libtiff5-dev libv4l-dev libdv4-dev
> libiec61883-dev libxv-dev libxxf86vm-dev libvorbis-dev zlib1g-dev rsync
> libgconf2-dev libnss3-dev libxtst-dev libxss-dev
>
> Maybe someone could verify that this list actually works on Ubuntu 20.04
> (and fiddle around with it if it doesn't, using the aforementioned
> debuild/debian/control file for guidance), so that we can update the
> outdated list in the README to the modern times.
>
> Best,
> Albert
>
> --
> Dr. Albert Gr"af
> Computer Music Research Group, JGU Mainz, Germany
> Email: aggraef at gmail.com, web: https://agraef.github.io/
>


-- 
Dr. Albert Gr"af
Computer Music Research Group, JGU Mainz, Germany
Email: aggraef at gmail.com, web: https://agraef.github.io/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://disis.music.vt.edu/pipermail/l2ork-dev/attachments/20210420/c4ba915b/attachment.html>


More information about the L2Ork-dev mailing list