Is there updated build instructions for compiling Audacity?

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

Is there updated build instructions for compiling Audacity?

Permanent link to this post Posted by richabhawsar » Tue Apr 26, 2016 12:56 pm

I have MacOSx 10.10.5 and xcode version 7.2.
I am trying to install wxWidget 3.0.2 for Audacity project 2.1.2
, but can't succeed,have spend around 4-5 days but still not able to compile audacity.

I have gone through instructions given in following links :
http://wiki.audacityteam.org/wiki/Building_On_Mac
https://audacity.googlecode.com/svn/audacity-src/trunk/mac/compile.txt
and also gone thru instructions given in build.txt of audacity project.

Errors :
for wxWidget "make" command I am getting this error :
make *** no rule to make target install'. stop.


and therefore while compiling project I am getting erros like
wx/defs.h not found
etc.

Please help me in compiling Audacity with above configurations.
richabhawsar
 
Posts: 10
Joined: Tue Apr 26, 2016 12:33 pm
Operating System: OS X 10.10 Yosemite

Re: Is there updated build instructions for compiling Audaci

Permanent link to this post Posted by Gale Andrews » Tue Apr 26, 2016 1:39 pm

Audacity is no longer using SVN. Please use https://github.com/audacity/audacity/blob/master/mac/Build.txt.

Extra hacks may be needed if you use later than Xcode 7.1.

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

Re: Is there updated build instructions for compiling Audaci

Permanent link to this post Posted by richabhawsar » Tue Apr 26, 2016 1:46 pm

Hi Gale, thank you so much for the reply.

I have already followed instructions given at https://github.com/audacity/audacity/blob/master/mac/Build.txt , but no luck.

Can you please describe which kind of extra hacks is needed for later than Xcode 7.1 ?
richabhawsar
 
Posts: 10
Joined: Tue Apr 26, 2016 12:33 pm
Operating System: OS X 10.10 Yosemite

Re: Is there updated build instructions for compiling Audaci

Permanent link to this post Posted by Gale Andrews » Tue Apr 26, 2016 1:49 pm

More on the hacks. As I understand it if you have greater than Xcode 7.1, you should only use the 10.11 SDK which is the minimum allowed. In src\MemoryX.h change

#if !(_MSC_VER >= 1800 || __cplusplus >= 201402L)

to

#if !(_MSC_VER >= 1800 || __cplusplus >=201603L)

(or other value appropriate to your Clang compiler).

Or see https://forums.developer.apple.com/thread/43381.



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

Re: Is there updated build instructions for compiling Audaci

Permanent link to this post Posted by richabhawsar » Tue Apr 26, 2016 2:33 pm

Hi Gale, succeed to install wxWidget somehow but now there are 31 errors on compiling audacity like below :

Undefined symbols for architecture i386:
"non-virtual thunk to wxGrid::GetSizeAvailableForScrollTarget(wxSize const&)", referenced from:
vtable for Grid in Grid.o


I ahev also attached screenshot for issue.

Any solutions/suggestions ? :(
Attachments
Screen Shot 2016-04-26 at 8.01.56 pm.png
Screenshot of issue.
Screen Shot 2016-04-26 at 8.01.56 pm.png (515.18 KiB) Viewed 927 times
richabhawsar
 
Posts: 10
Joined: Tue Apr 26, 2016 12:33 pm
Operating System: OS X 10.10 Yosemite

Re: Is there updated build instructions for compiling Audaci

Permanent link to this post Posted by richabhawsar » Wed Apr 27, 2016 5:45 am

Does these issue
non-virtual thunk to....
related to build settings of Xcode ?

Current Xcode setting of my machine is :-

Compiler for C/C++/Objective-c -- Default compiler (Apple LLVM 7.0)
and settings for Apple LLVM 7.0 - Language - C++ section is in attached image.

Please if anybody have any idea about this settings so that error of
non-virtual thunk to....
can be resolved.. kindly help me to get rid of this.
Attachments
Screen Shot 2016-04-27 at 11.12.01 am.png
Screen Shot 2016-04-27 at 11.12.01 am.png (75.99 KiB) Viewed 916 times
richabhawsar
 
Posts: 10
Joined: Tue Apr 26, 2016 12:33 pm
Operating System: OS X 10.10 Yosemite

Re: Is there updated build instructions for compiling Audaci

Permanent link to this post Posted by rachalmers » Wed Apr 27, 2016 6:39 am

Hi
wxWidgets needs building, but not installing.
Once built, put an environment variable in pointing to its directory.
wxWidgets-3.1 is out and very stable.
Be careful if you apply the suggested patches.
Audacity will almost certainly not build with XXode. You mat need to use Xcodebuild on the command line.
You need/must have, earlier SDK's installed.
It wont build with 10.11.4 + 10.11 SDK

Unless something has changed in the last few days....

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

Re: Is there updated build instructions for compiling Audaci

Permanent link to this post Posted by steve » Wed Apr 27, 2016 8:47 am

rachalmers wrote:wxWidgets-3.1 is out and very stable.

Is that officially supported by Audacity? I'd need to check the "compile.txt" file. I've been using 3.0.2 which is the latest "stable release" (and definitely IS officially supported by Audacity) https://www.wxwidgets.org/downloads/
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 43227
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux Debian

Re: Is there updated build instructions for compiling Audaci

Permanent link to this post Posted by steve » Wed Apr 27, 2016 8:50 am

For Ma OS X: https://github.com/audacity/audacity/bl ... /Build.txt
7) Download wxWidgets. We currently require version 3.0.2, which can be downloaded from:

http://sourceforge.net/projects/wxwindo ... .2.tar.bz2
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 43227
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux Debian

Re: Is there updated build instructions for compiling Audaci

Permanent link to this post Posted by richabhawsar » Wed Apr 27, 2016 9:41 am

Hi Steve, Thanks for the reply.. :)

I followed steps given at https://github.com/audacity/audacity/blob/master/mac/Build.txt , but after running 10th step i.e.
sudo <path to Audacity source>/mac/build_wxwidgets
I am getting this error :

make: *** No rule to make target `install'. Stop.


Again the same error from xcodebuild command is :

Undefined symbols for architecture i386:
"non-virtual thunk to wxGrid::GetSizeAvailableForScrollTarget(wxSize const&)", referenced from:
vtable for Grid in Grid.o

I am clueless at this point of time now because I have tried same steps many times..but no success till yet. :|
richabhawsar
 
Posts: 10
Joined: Tue Apr 26, 2016 12:33 pm
Operating System: OS X 10.10 Yosemite

Next

Return to Compiling Audacity



Who is online

Users browsing this forum: No registered users and 1 guest