You will probably also need cmake installed:
I checked, it was already installed
To ensure that all dependencies are available, run:
sudo apt-get build-dep audacity
I’d already done that before I got this error.
To be on the safe side, run this first:
make distcleanTry configuring with the option:
…/configure --disable-dynamic-loading
I did these, and it came back with this error:
libtool: link: `/usr/lib/libvamp-hostsdk.la’ is not a valid libtool archive
make[2]: *** [audacity] Error 1
I followed the instructions from this post:
http://sourceforge.net/p/audacity/mailman/message/31684897/
(renamed /usr/lib/libvamp-hostsdk.la) and recompiled and it came back with:
effects/VST/VSTEffect.cpp: In member function ‘bool VSTEffect::LoadFXProgram(unsigned char**, ssize_t&, int, bool)’:
effects/VST/VSTEffect.cpp:3992:39: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
effects/VST/VSTEffect.cpp:4013:49: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
effects/VST/VSTEffect.cpp: In member function ‘void VSTEffect::SaveFXProgram(wxMemoryBuffer&, int)’:
effects/VST/VSTEffect.cpp:4270:26: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
effects/VST/VSTEffect.cpp:4270:26: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
effects/VST/VSTEffect.cpp:4270:26: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
effects/VST/VSTEffect.cpp:4270:26: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
effects/VST/VSTEffect.cpp: In member function ‘void VSTEffect::SaveFXB(const wxFileName&)’:
effects/VST/VSTEffect.cpp:4120:8: warning: ‘chunkSize’ may be used uninitialized in this function [-Wmaybe-uninitialized]
effects/VST/VSTEffect.cpp: At global scope:
effects/VST/VSTEffect.cpp:1352:12: warning: ‘trappedErrorCode’ defined but not used [-Wunused-variable]
effects/VST/VSTEffect.cpp:1353:12: warning: ‘int X11TrapHandler(Display*, XErrorEvent*)’ defined but not used [-Wunused-function]
mv -f effects/VST/.deps/audacity-VSTEffect.Tpo effects/VST/.deps/audacity-VSTEffect.Po
Then a long list of package names, then:
audacity-TrackArtist.o: In function wxStringBase': /usr/local/include/wx-2.8/wx/string.h:368: undefined reference to
wxStringBase::InitWith(wchar_t const*, unsigned long, unsigned long)’
audacity-TrackArtist.o:/usr/local/include/wx-2.8/wx/string.h:368: more undefined references to `wxStringBase::InitWith(wchar_t const*, unsigned long, unsigned long)’ follow
Then several hundred lines similar, then:
import/audacity-ImportMIDI.o: In function ImportMIDI(wxString, NoteTrack*)': /home/tim/audacity-minsrc-2.1.0/src/import/ImportMIDI.cpp:31: undefined reference to
operator+(wchar_t const*, wxString const&)’
/home/tim/audacity-minsrc-2.1.0/src/import/ImportMIDI.cpp:31: undefined reference to operator+(wxString const&, wchar_t const*)' /home/tim/audacity-minsrc-2.1.0/src/import/ImportMIDI.cpp:36: undefined reference to
wxString::CmpNoCase(wchar_t const*) const’
/home/tim/audacity-minsrc-2.1.0/src/import/ImportMIDI.cpp:43: undefined reference to wxFFile::wxFFile(wchar_t const*, wchar_t const*)' /home/tim/audacity-minsrc-2.1.0/src/import/ImportMIDI.cpp:50: undefined reference to
wxString::mb_str(wxMBConv const&) const’
/home/tim/audacity-minsrc-2.1.0/src/import/ImportMIDI.cpp:62: undefined reference to wxString::AfterLast(wchar_t) const' /home/tim/audacity-minsrc-2.1.0/src/import/ImportMIDI.cpp:62: undefined reference to
wxString::BeforeLast(wchar_t) const’
/home/tim/audacity-minsrc-2.1.0/src/import/ImportMIDI.cpp:38: undefined reference to wxString::CmpNoCase(wchar_t const*) const' import/audacity-ImportMIDI.o: In function
wxStringBase’:
/usr/local/include/wx-2.8/wx/string.h:368: undefined reference to wxStringBase::InitWith(wchar_t const*, unsigned long, unsigned long)' import/audacity-ImportMIDI.o: In function
ImportMIDI(wxString, NoteTrack*)‘:
/home/tim/audacity-minsrc-2.1.0/src/import/ImportMIDI.cpp:39: undefined reference to operator+(wchar_t const*, wxString const&)' /home/tim/audacity-minsrc-2.1.0/src/import/ImportMIDI.cpp:39: undefined reference to
operator+(wxString const&, wchar_t const*)’
/home/tim/audacity-minsrc-2.1.0/src/import/ImportMIDI.cpp:36: undefined reference to wxString::CmpNoCase(wchar_t const*) const' import/audacity-ImportMIDI.o: In function
wxStringBase’:
/usr/local/include/wx-2.8/wx/string.h:368: undefined reference to wxStringBase::InitWith(wchar_t const*, unsigned long, unsigned long)' import/audacity-ImportMIDI.o: In function
ImportMIDI(wxString, NoteTrack*)‘:
/home/tim/audacity-minsrc-2.1.0/src/import/ImportMIDI.cpp:54: undefined reference to operator+(wchar_t const*, wxString const&)' /home/tim/audacity-minsrc-2.1.0/src/import/ImportMIDI.cpp:54: undefined reference to
operator+(wxString const&, wchar_t const*)’
import/audacity-ImportMIDI.o: In function wxStringBase': /usr/local/include/wx-2.8/wx/string.h:368: undefined reference to
wxStringBase::InitWith(wchar_t const*, unsigned long, unsigned long)’
import/audacity-ImportMIDI.o: In function ImportMIDI(wxString, NoteTrack*)': /home/tim/audacity-minsrc-2.1.0/src/import/ImportMIDI.cpp:45: undefined reference to
operator+(wchar_t const*, wxString const&)’
/home/tim/audacity-minsrc-2.1.0/src/import/ImportMIDI.cpp:45: undefined reference to `operator+(wxString const&, wchar_t const*)’
collect2: error: ld returned 1 exit status
make[2]: *** [audacity] Error 1
My wxGTK is the latest stable (2.8.12). Googling for one of the wxStringBase errors points to this topic:
but it’s on Slackware and 5 years old and I can’t find anything useful on it.
Tim Angelico