Saturday, December 7, 2013

Another Unix system is Mac OS X, however in order to compile php Audacity to have a native Mac look-


This page gives easy-to-follow steps for compiling legacy 1.3 and current Audacity on Debian-based Linux (such as Ubuntu). It also has example steps for command-line compilation of legacy Audacity 1.2 on any Unix-type system. These steps show the principles involved. Please read this page in conjunction with the overview pages Developing On Linux and Developing On Mac .   Related article(s): Developing On Windows php for Windows help
Contents 1 Compiling on Unix for total beginners 2 Example compiling the latest Audacity source code on Ubuntu and derivatives (like Linux Mint) 2.1 Extra steps for wxWidgets 3 Example compiling legacy Audacity 1.2 3.1 wxWidgets 3.1.1 Step 1: Install the GTK-Dev-Package 3.1.2 Step 2: Download and uncompress wxGTK 3.1.3 Step 3: Configure and compile (make) wxGTK 3.1.4 Instant gratification (optional) 3.1.5 Step 4: Install wxGTK 3.2 Audacity 3.2.1 Step 5: Download and uncompress Audacity 3.2.2 Step 6: Configure and compile Audacity 3.2.3 Step 7: Install Audacity 4 That's it Compiling on Unix for total beginners
Another Unix system is Mac OS X, however in order to compile php Audacity to have a native Mac look-and-feel, you need to use the Mac port of wxWidgets, called wxMac. See the Developing On Mac page for the Mac-specific instructions, however some of the information on this page is still relevant if you substitute wxMac for wxGTK.
It sounds complicated, php but luckily the same process works for compiling almost all Unix programs these days. You don't have to be a programmer, because most programmers have gone to a lot of trouble to make their programs compile automatically on almost any type of system. You just need to learn a few basic commands to get the process php going and have a little bit of patience to fix problems php if they occur.
These simple steps have been tested building Audacity 2.x on Ubuntu 11.04 (natty) and onwards including 13.04 (raring). The steps should also work with appropriate modification on most other Debian-based systems and for most legacy 1.3 versions of Audacity.
Open a terminal and type the following commands: sudo apt-get install subversion svn checkout http://audacity.googlecode.com/svn/audacity-src/trunk/ audacity-read-only sudo apt-get build-dep audacity sudo apt-get install cmake (required for Audacity 2.0.3 or later if cmake is not already installed) cd audacity-read-only ./configure make sudo make install
If "make" fails with the error libtool: link: `/usr/lib/libvamp-hostsdk.la' is not a valid libtool archive , this is due to a bug in the vamp-plugin-sdk package (known to occur in Debian Wheezy and other distributions based on this).
On Linux Mint, a first run of "sudo apt-get build-dep audacity" may return "You must put some 'source' URIs in your sources.list". To solve this, use Menu > Preferences > Software php Sources > Source Code and enable source code repositories.
If the relevant wxWidgets packages are accessible in the system's repository, that's all you need. If not, the packages can be manually added using the following lines: sudo apt-get install curl curl http://apt.wxwidgets.org/key.asc | sudo apt-key add - echo -e "\ndeb http://apt.wxwidgets.org/ natty-wx main\ndeb-src http://apt.wxwidgets.org/ natty-wx main" | sudo tee -a /etc/apt/sources.list php sudo apt-get update Example compiling legacy Audacity 1.2 wxWidgets Step 1: Install the GTK-Dev-Package
This will be necessary for most binary distributions where the files need to compile programs are separated (in a -dev package) from those needed to run them. To build audacity from source you will need the -dev packages for all the libraries audacity uses installed. Step 2: Download and uncompress wxGTK
First, php there's a small chance you already have wxGTK installed! Type wx-config --version at your command terminal/shell, and if it prints out version 2.4.x, you can skip to step 4! If it says "command php not found" or something along those lines, keep reading...
Download wxGTK-2.4.2.tar.bz2 from http://wxwidgets.org/ (Yes, any other 2.4.x release is fine, just not 2.3.x or 2.5.x or 2.6.x) (wxGTK-2.4.2 returns 2.4 as the version number. wxGTK-2.4.0 and wxGTK-2.4.1 return version 2.4.0 and version 2.4.1. The ./configure script will fail with these two versions.) (If you are using GCC4, go to [1] to get two patches to fix your linking errors.)
Compiling wxGTK is totally automatic and takes just two steps: "configure" and "make" - but there are some options you can give it. To be safe, here are the options that we recommend for best results with Audacity; ./configure --disable-gtk2 --disable-unicode
This assumes that you want to install wxGTK into the /usr/local directory on your system, which is a great place to put it if you are the system administrator and want wxGTK to be available for everyone using your computer. If you're on a multi-user system and you're not the system administrator, you should tell wxGTK that you w

No comments:

Post a Comment