When building Audacity from source the configuration fails and prints this error:
configure: error: Could not find wx-config: is wxWidgets installed?
is wx-config in your path?
I've read the build instructions in the readme, then downloaded all the needed dependencies. The distro version is 16.04.
UPDATE
I have identified the source of the problem. I was trying to use the nonexistant Xenial repository for wxWidgets. Utopic was the latest distro listed on the repository page, so I added deb http://repos.codelite.org/wx3.0.2/ubuntu/ utopic universe
to /etc/apt/sources.list
.
./configure was successful. make failed, generating the follwing errors:
commands/CommandManager.cpp:115:21: fatal error: gtk/gtk.h: No such file or directory compilation terminated.
Makefile:3695: recipe for target 'commands/audacity-CommandManager.o' failed
make[2]: *** [commands/audacity-CommandManager.o] Error 1 make[2]: Leaving directory '/home/obalaban/Downloads/audacity-minsrc-2.1.2/src'
Makefile:1346: recipe for target 'all' failed
make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/obalaban/Downloads/audacity-minsrc-2.1.2/src' Makefile:716: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
UPDATE
After following andrew.46's recommendations, my build failed yet again.
BlockFile.cpp: In function ‘void ComputeMinMax256(float*, float*, float*, int*)’:
/usr/include/wx-3.0/wx/math.h:91:31: error: ‘isnan’ was not declared in this scope
#define wxIsNaN(x) isnan(x)
^ BlockFile.cpp:339:11: note: in expansion of macro ‘wxIsNaN’if (wxIsNaN(summary256[3*i+2])) ^
/usr/include/wx-3.0/wx/math.h:91:31: note: suggested alternative:
#define wxIsNaN(x) isnan(x) ^
BlockFile.cpp:339:11: note: in expansion of macro ‘wxIsNaN’
if (wxIsNaN(summary256[3*i+2])) ^
In file included from /usr/include/wx-3.0/wx/math.h:58:0,
from /usr/include/wx-3.0/wx/gdicmn.h:23,
from /usr/include/wx-3.0/wx/utils.h:26,
from BlockFile.cpp:51:
/usr/include/c++/5/cmath:641:5: note: ‘std::isnan’isnan(_Tp __x) ^
Makefile:2440: recipe for target 'audacity-BlockFile.o' failed
make[2]: * [audacity-BlockFile.o] Error 1
make[2]: Leaving directory '/home/obalaban/audacity-build/audacity/src'
Makefile:1362: recipe for target 'all' failed
make[1]: * [all] Error 2
make[1]: Leaving directory '/home/obalaban/audacity-build/audacity/src'
Makefile:781: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
sudo apt-get build-dep audacity
? This should pick up the required-dev
file... BTW release version 2.1.2 is available in the Xenial repositories, are you building the git version?