Compiling troubles on Mint Linux

Building and customizing Audacity from the source code.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
cactuslegs
Posts: 6
Joined: Thu Jan 23, 2014 8:26 am
Operating System: Please select

Compiling troubles on Mint Linux

Post by cactuslegs » Tue Feb 04, 2014 1:25 am

Hi all,

I'm having some trouble compiling Audacity on Mint Linux. It's giving me an error when I run ./configure which says that it cannot locate the wxWidgets library. I've successfully built and installed wxWidgets 2.8 (I understand that it doesn't yet work with 3.0, correct?) and upon installation, it suggests that you may have to modify the LD_LIBRARY_PATH variable. I've tried doing a Google search for how to do this (I'm fairly new at Linux, in general), but all the forum posts I found were unhelpful. Any insight or advice would be much appreciated!
Attachments
wxWidge.png
wxWidgets installation confirmation
wxWidge.png (45.78 KiB) Viewed 3423 times
audacityerror.png
./configure error message
audacityerror.png (74.17 KiB) Viewed 3423 times

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Compiling troubles on Mint Linux

Post by steve » Tue Feb 04, 2014 1:41 am

When WxWidgets is installed, it installs a load of libraries that will be used when building a WxWidgets application (such as Audacity). For these libraries to be available, they need to be known to the system - that's what ldconfig does - it configures the bindings to the new libraries. Usually, rebooting the computer will do the same job.

I've recently built Audacity on Linux Mint 16 Cinnamon, and there is actually an easier way to do this, but as you have got so far, try rebooting the computer and then have another go at configuring Audacity.

If you get the same error, uninstall WxWidgets ("sudo make uninstall" from within the same folder as you previously ran "install" should do it), then call back here.
If you have problems uninstalling WxWidgets, please describe exactly what happened.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

cactuslegs
Posts: 6
Joined: Thu Jan 23, 2014 8:26 am
Operating System: Please select

Re: Compiling troubles on Mint Linux

Post by cactuslegs » Tue Feb 04, 2014 2:01 am

Hi Steve,

I appreciate the help. I restarted the computer, but it gave the same error when running ./configure. I was able to uninstall wxWidgets without issue.

Thanks!

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Compiling troubles on Mint Linux

Post by steve » Tue Feb 04, 2014 2:46 am

Try these instructions: http://wiki.audacityteam.org/wiki/Compi ... ux_Mint.29

Note that source code repositories need to be enabled (as it says in the note below the steps 1 to 8).

When you run step 3 (sudo apt-get build-dep audacity ) watch to see that it succeeds without error. If there is an error, make a note of it and post the error message here.
Don't bother trying to continue if step 3 fails.

After step 7 (make), try running:

Code: Select all

./src/audacity
Audacity should launch. If it does, then just run step 8 (sudo make install) and you're done.

The steps about "sudo apt-get install autoreconf" are not currently required.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

cactuslegs
Posts: 6
Joined: Thu Jan 23, 2014 8:26 am
Operating System: Please select

Re: Compiling troubles on Mint Linux

Post by cactuslegs » Tue Feb 11, 2014 12:41 am

Thanks again for the advice. It was still failing on the ./configure part of those commands with the same error. I was able to get past it though, by including usr/local in the LD_LIBRARY_PATH environment variable. It successfully ran the configure command. Now, though, when I make the project, it fails with the following message:

Any idea of what could be going on here? It seems like perhaps I have a bad wxWidgets install? I'm really not sure...

Thanks again for all the help, I really appreciate it :D
Attachments
makeerror.png
makeerror.png (112.83 KiB) Viewed 3239 times

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Compiling troubles on Mint Linux

Post by Gale Andrews » Mon Feb 17, 2014 8:15 pm

cactuslegs wrote:Thanks again for the advice. It was still failing on the ./configure part of those commands with the same error. I was able to get past it though, by including usr/local in the LD_LIBRARY_PATH environment variable. It successfully ran the configure command. Now, though, when I make the project, it fails with the following message:

Any idea of what could be going on here? It seems like perhaps I have a bad wxWidgets install?
Is this still a problem?

As I understand it, the steps at http://wiki.audacityteam.org/wiki/Compi ... ers#simple use the system wxWidgets - but it looks like you are still using or trying to find a local build of widgets, although you uninstalled it. Perhaps this is because you included usr/local in the LD_LIBRARY_PATH?

The initial error you got seems to be because you configured a unicode version of Audacity but built ansi release version of widgets. What does this return?

Code: Select all

wx-config --list
If it still returns ansi release then you might be able to build Audacity with ./configure --disable-unicode, or go back to building widgets locally but configure it with --enable-unicode.

Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply