Building JUCE on Kubuntu 7.10

Date Arrow  November 16, 2007

JUCE is a gorgeous thing:

JUCE (Jules’ Utility Class Extensions) is an all-encompassing C++ class library for developing cross-platform applications.

It’s particularly good for creating highly-specialised user interfaces and for handling graphics and sound.

For Mac OS X (with the Developer Tools installed) and Windows (using Visual Studio 6, 2003 or 2005), the library builds out-of the box (well, almost: on Windows you need to have QuickTime and the ASIO SDK installed). However, for Linux there are a couple of external dependencies.

This is a small tutorial (and a reminder for myself, as usual) for those interested in building JUCE on Kubuntu 7.10 “Gutsy Gibbon” (these instructions should also be useful for other Linux distributions, but I cannot tell for sure).

  1. Make sure that you have the Lua programming language installed (you can use your favorite package manager to install it)
  2. Make sure that you have the following libraries installed in your Kubuntu installation using Synaptic or any other package manager (info taken from this JUCE forum post):
    • libx11-dev
    • libasound2-dev
    • libfreetype6-dev
    • libxinerama-dev
    • libglu1-mesa-dev
    • libglut3-dev (with its dependency freeglut3-dev too)
  3. Download JUCE 1.45 from Sourceforge
  4. Download premake from Sourceforge; unzip the file and install the binary where you want (typically /usr/bin). You have to do this manually, since premake is not available through the Synaptic package manager, in any repository.
  5. Unzip the JUCE distribution anywhere (for example in your ~/Desktop) and cd into the juce/build/linux folder.
  6. Run “sh runpremake” which will use premake and Lua to create a makefile
  7. Run “make” (which is equal to “make CONFIG=Debug”) or “make CONFIG=Release” to build the library; a couple of minutes later you’ll have a juce/bin/libjuce_debug.a file ready to use
  8. Optional: You can build some sample applications that use JUCE:
    • juce/extras/juce demo/
    • juce/extras/the jucer/

Hope this helps!

Similar Posts:

Tagged   Code · How to? · Ubuntu

Commenting