Internet DJ Console Homepage IDJC

website logo

Deciding if this is a good idea

The following list contains valid reasons for going to the trouble of installing IDJC from source.

  • IDJC is absent from the repository.
  • The repository version is ancient but functional.
  • The repository version has features removed for fear of legal action.
  • The repository version has a minimum set of features generally.
  • The repository version is broken.

Removing old versions

It's a good idea to remove any old versions of IDJC at this point.

Installing dependencies

The following software is required to build IDJC or is used by IDJC at run-time. There should be similarly named binary packages in your package management system for all of these of which you typically want the library development packages whose names carry the -dev or -devel suffix.

Project nameVersionComment
libshout-idjc2.4.1+Required—A specially modified version of libshout
Python3.7+Required—probably installed already
mutagen1.44+Required
Jack Audio Connection Kit0.116.0+Required—need library and server
PyGObject3.36+Required
vorbis-tools1.2.0+Required
libsndfile1.0.12+Required
libsamplerate0.1.4+Required
GLib22.0.0+Required
libebur1281.2.4Required—for loudness metering
mpg1231.13+Recommended—for mp2/mp3 playback
TwoLAME0.3+Recommended—for streaming/recording in the mp2 format
Lame3.97+Recommended—for streaming/recording in the mp3 format
FFmpeg4.0.6+Recommended—for mp4/m4a, ape, mpc, aac(+)
FLAC1.1.3+Recommended—for FLAC playback, recording, and streaming
Speex1.2rc1+Recommended—for Speex playback and streaming
Opus1.0+Recommended—for Opus playback and streaming

For Ubuntu 22.10 users the following command installs the dependencies.

$ sudo apt install build-essential libc6-dev libglib2.0-dev jackd2 libjack-jackd2-dev libvorbis-dev libsamplerate0-dev libsndfile1-dev python-gi-dev libmpg123-dev libavcodec-dev libavformat-dev libtwolame-dev libmp3lame-dev libflac-dev python3-mutagen libspeex-dev libswscale-dev python3-gi-cairo libebur128-dev

If during the execution of the above command you are asked whether to configure your system for JACK/realtime the sensible choice is yes.

The following command is a relic from the Python 2 to Python 3 transition era. If it fails you don't need it.

$ sudo apt install python-is-python3

Obtaining the IDJC source code

There are two options available to you. One is to get the official release (recommended), the other is to obtain the development sources which are only casually tested.

Option 1: Build the latest official release

Click the relevant link above to download libshout-idjc, then in a console type the following. If you have connection or metadata issues feel free to try a different version.

$ cd Downloads
$ tar xzvf libshout-idjc-[version].tar.gz
$ cd libshout-idjc-[version]/
$ ./configure CFLAGS="-O2" --prefix=/usr --libdir=/usr/lib64
$ make
$ sudo make install
$ sudo ldconfig

Some distributions primarily keep 64 bit libraries in a directory called lib64 and if that is the case the libdir directive may be necessary (green italic text above and further down the page).

Note that prefix is set to /usr due to some Linux distributions not having a nicely configured /etc/ld.so.conf file.

Navigate to https://sourceforge.net/projects/idjc/.

Hit the big green Download button and wait for the download to finish. Make a note of the version number.

$ cd Downloads
$ tar xzvf idjc-[version].tar.gz
$ cd idjc-[version]/
$ ./configure CFLAGS="-O2" --prefix=/usr --libdir=/usr/lib64
$ make
$ sudo make install
Option 2: Build from the development sources

First install the latest libshout-idjc as per option 1 above.

Install the additional build dependencies. For Linux Mint 20.1 that would be the following line.

$ sudo apt install git-core autoconf libtool-bin autopoint imagemagick

Then type the following.

$ git clone git://idjc.git.sourceforge.net/gitroot/idjc/idjc
$ cd idjc/
$ ./bootstrap
$ ./configure CFLAGS="-O2" --prefix=/usr --libdir=/usr/lib64
$ make
$ sudo make install

For systems that don't have sudo configured, use the following form instead.

su -c "make install"

Finally

At this stage it's installed but see the First run section to help iron out potential system configuration problems.