Error building 2.2.2 in 64-bit

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
RandomTroll
Posts: 29
Joined: Tue Jan 12, 2010 5:53 am
Operating System: GNU/Linux other

Error building 2.2.2 in 64-bit

Post by RandomTroll » Wed Jun 13, 2018 9:31 pm

I switched to 64-bit (Slackware 14.2, updated daily, kernel 4.17.1, self-built). I downloaded the latest Audacity (2.2.2-rc1) When I build I get:

In file included from gtk/FileDialogPrivate.cpp:23:0:
/usr/local/include/wx-3.0/wx/filename.h: In static member function 'static wxUniChar wxFileName::GetPathSeparator(wxPathFormat)':
/usr/local/include/wx-3.0/wx/filename.h:473:43: error: ambiguous overload for 'operator[]' (operand types are 'wxString' and 'unsigned int')
{ return GetPathSeparators(format)[0u]; }
^
/usr/local/include/wx-3.0/wx/filename.h:473:43: note: candidate: operator[](const char*, long int)
/usr/local/include/wx-3.0/wx/filename.h:473:43: note: candidate: operator[](const wchar_t*, long int)
In file included from /usr/local/include/wx-3.0/wx/filectrl.h:19:0,
from gtk/../FileDialog.h:21,
from gtk/FileDialogPrivate.cpp:14:

/usr/local/include/wx-3.0/wx/string.h:1544:15: note: candidate: wxUniChar wxString::operator[](int) const
wxUniChar operator[](int n) const
^~~~~~~~
/usr/local/include/wx-3.0/wx/string.h:1546:15: note: candidate: wxUniChar wxString::operator[](long int) const
wxUniChar operator[](long n) const
^~~~~~~~
/usr/local/include/wx-3.0/wx/string.h:1548:15: note: candidate: wxUniChar wxString::operator[](size_t) const
wxUniChar operator[](size_t n) const
^~~~~~~~
/usr/local/include/wx-3.0/wx/string.h:1556:18: note: candidate: wxUniCharRef wxString::operator[](int)
wxUniCharRef operator[](int n)
^~~~~~~~
/usr/local/include/wx-3.0/wx/string.h:1558:18: note: candidate: wxUniCharRef wxString::operator[](long int)
wxUniCharRef operator[](long n)
^~~~~~~~
/usr/local/include/wx-3.0/wx/string.h:1560:18: note: candidate: wxUniCharRef wxString::operator[](size_t)
wxUniCharRef operator[](size_t n)
^~~~~~~~
make[2]: *** [Makefile:585: gtk/libFileDialog_la-FileDialogPrivate.lo] Error 1
make[1]: *** [Makefile:1013: all-recursive] Error 1
make: *** [Makefile:808: all-recursive] Error 1
Is this a wxWidgets problem? I can't build it either.

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

Re: Error building 2.2.2 in 64-bit

Post by steve » Thu Jun 14, 2018 9:57 am

RandomTroll wrote:Is this a wxWidgets problem? I can't build it either.
Are you saying that you don't have a working version of WxWidgets?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

RandomTroll
Posts: 29
Joined: Tue Jan 12, 2010 5:53 am
Operating System: GNU/Linux other

Re: Error building 2.2.2 in 64-bit

Post by RandomTroll » Fri Jun 15, 2018 6:09 pm

I had a working version of wxWidgets. It seemed to be the current version the first place I looked. I downloaded the source anew but still couldn't build. More searching turned up version 3.04 which I could build, then I could build Audacity. Apologize for my bungling.

Post Reply