"non-virtual thunk" error when compling audacity on yosemite

Building and customizing Audacity from the source code.

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

"non-virtual thunk" error when compling audacity on yosemite

Permanent link to this post Posted by ambujshukla » Mon May 02, 2016 7:09 am

Hi,

I am using Audacity 2.1.2 and wxwidgtes 3.0.2.

I have successfully built wx-widget as I can see the desired output on console.
But when I am building the Audacity project I am getting too many errors of -

non-virtual thunk to ...
"non-virtual thunk to wxTextCtrlBase::SetHint(wxString const&)", referenced from:
vtable for TimerRecordPathCtrl in TimerRecordDialog.o
vtable for HighlightTextCtrl in Lyrics.o


I have also tried solution given on these links :

http://stackoverflow.com/questions/2544152/mac-gcc-non-virtual-thunk-error and http://stackoverflow.com/questions/17275348/how-to-specify-new-gcc-path-for-cmake

but on the 3rd step after export i.e.

ambuj66s-iMac:cmake-3.5.2 ambujshukla$ cmake /Users/ambujshukla/src/AudacitySRC/
CMake Error: The current CMakeCache.txt directory /Users/ambujshukla/src/cmake-3.5.2/CMakeCache.txt is different than the directory /Volumes/data/Downloads/cmake-3.5.2 where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source directory "/Users/ambujshukla/src/AudacitySRC" does not appear to contain CMakeLists.txt.


Could anybody please provide the working solution of this error.

Thanks..
ambujshukla
 
Posts: 3
Joined: Mon May 02, 2016 6:56 am
Operating System: OS X 10.10 Yosemite

Re: "non-virtual thunk" error when compling audacity on yose

Permanent link to this post Posted by Gale Andrews » Mon May 02, 2016 1:01 pm

Please note there is no need for you to build Audacity. You can download it from http://audacityteam.org/download/mac.

I only see the same "solutions" that you found.

What version of Xcode are you using? You should be using Xcode 7.1 or earlier. Later Xcode is not officially supported by Audacity.

Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Gale Andrews
Quality Assurance
 
Posts: 26089
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: "non-virtual thunk" error when compling audacity on yose

Permanent link to this post Posted by ambujshukla » Mon May 02, 2016 1:37 pm

Ok.. I am using Xcode 7.2 :(

So I should try with earlier Xcode version.. let me try..
ambujshukla
 
Posts: 3
Joined: Mon May 02, 2016 6:56 am
Operating System: OS X 10.10 Yosemite

Re: "non-virtual thunk" error when compling audacity on yose

Permanent link to this post Posted by rachalmers » Mon May 02, 2016 2:18 pm

and as I see it, building with XCode is broken, and has been for sometime ... of any version of XCode especially with the github version.

The only success I ever had with the mac sources was when using the exact, early and recommended versions of everything, and following the build.txt guidelines. But then it broke one night with some commit or other to github.

A builder may have some success if using the EXACT same specifically correct versions of everything supported, including the Downloaded source. Not the git hub source.

It's not only XCode versions, it's osx versions, and the SDK versions. then, you have to have to have the correct version of wxWidgets to go with it.

Start mixing C compiler versions as well ... and you are in for an interesting ride :-)

robert
rachalmers
 
Posts: 163
Joined: Wed Jan 06, 2016 10:53 am
Operating System: OS X 10.11 El Capitan or later (macOS)

Re: "non-virtual thunk" error when compling audacity on yose

Permanent link to this post Posted by ambujshukla » Tue May 03, 2016 5:26 am

Hi Robert,

Ok.. What I understand from past few days experience and your answer that with the combination of OSx 10.10, Xcode 7.2, audacity source-code GitHub version and wxWidgets 3.0.2 I can not build/compile the Audacity source code using XCode :cry: am I correct ?

Can you please specify the correct versions of OSx, Xcode, SDKs, source code etc to building with Xcode successfully.

Thanks..
ambujshukla
 
Posts: 3
Joined: Mon May 02, 2016 6:56 am
Operating System: OS X 10.10 Yosemite

Re: "non-virtual thunk" error when compling audacity on yose

Permanent link to this post Posted by Gale Andrews » Tue May 03, 2016 11:06 am

ambujshukla wrote:Can you please specify the correct versions of OSx, Xcode, SDKs, source code etc to building with Xcode successfully.

Those are specified in https://github.com/audacity/audacity/blob/master/mac/Build.txt. That is, no greater than Xcode 7.1, and use the 10.6 SDK as well as the SDK that came with Xcode. WxWidgets 3.0.2 is fine.

When you follow those instructions you should be able to build with any version of OS X Lion or greater.

Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Gale Andrews
Quality Assurance
 
Posts: 26089
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: "non-virtual thunk" error when compling audacity on yose

Permanent link to this post Posted by Gale Andrews » Tue May 03, 2016 11:10 am

Also, these are good instructions for uninstalling Xcode so you can start over with a new Xcode installation: http://osxdaily.com/2012/02/20/uninstall-xcode/.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Gale Andrews
Quality Assurance
 
Posts: 26089
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10


Return to Compiling Audacity



Who is online

Users browsing this forum: No registered users and 2 guests