Steps and precautions for compiling audacity in Windows

Source: Internet
Author: User
Tags wxwidgets

The introduction to audacity and wxWidgets is omitted.
Compiling environment:
Operating System: Windows 7
Development ide: vs2008 (compile wxWidgets) and vs2010 (compile audacity)
Bytes ------------------------------------------------------------------------------------------

Compile now:

Step 1: Download wxWidgets

Before you try to compile audacity, you must download and compile wxWidgets; otherwise, compilation will fail!
WxWidgets can be obtained at http://www.wxwidgets.org/. wxWidgets 2.8.12 is required for audacity 1.3.14. Compile and download the wxmsw package in Windows (installer or zip, my installer)

Step 2: Compile wxWidgets

When you have downloaded and installed wxWidgets, the next step is to build it.
When you download and install wxWidgets, compile it.

1. Open "C: \ wxWidgets-2.8.12 \ build \ MSW \ wx_dll.dsw" with vs 2008, make sure you open wx_dll.dsw instead of Wx. DSW because wx. DSW creates DLL without dependency. When you open wx_dll.dsw, Visual Studio prompts you whether to convert and click "all" (Save the project after completion ), next time you can open Visual Studio directly through "C \ wxWidgets-2.8.12 \ build \ MSW \ wx_dll.sln" to avoid prompting, instead of opening it with wx_dll.dsw.

2. if you want to use the accessibility (Accessibility) feature, we need to modify a file in wxWidgets, instead of making a patch. We save any modified files in the audacity code base, then you can replace the corresponding wxWidgets file.

There is a. h file in "Audacity \ win \ wxwidgets_additions". You may want to back up the original wxWidgets file so that you can compile it without the accessibility features.

* Copy setup. h to "C: \ wxWidgets-2.8.12 \ include \ wx \ MSW.

Audacity's releases version uses the accessibility feature for compilation.

3. You want to create the corresponding wxWidgets for all configurations of audacity
* Generate the "DLL release" version used for audacity.
* Generate "DLL Unicode release" for the "Unicode release" version of audacity (I used this to support Unicode encoding)
* Generate "DLL debug" for the "debug" version of audacity
* Generate the "DLL Unicode debug" for the "Unicode debug" version of audacity.

See "Step 6: Compile Audacity" to learn about the differences between different versions.

If you use "batch generation" under the "generate" menu, you only need to select the following five projects for compilation (not the entire solution). They are:
* Adv
* Base
* Core
* Html
* Net

As a result of dependency, the following items should also be generated:
* Wxexpat
* Wxjpeg
* Wxpng
* Wxregex
* Wxtiff
* Wxzlib

If you generate the entire solution, ignore the connection error during compilation (wxbase28 * _ ODBC *.*)

Step 3: Download audacity

Now you can compile audactiy, SVN: http://audacity.sourceforge.net/community/developers
Or git: https://github.com/nlphacker/Audacity (I used this)

Step 4: Set the wxWidgets location for audacity 

Before you can start the build process, you must update
Project settings to tell visual c ++ where to find wxWidgets.

Before compiling, you must update the project settings to tell visual c ++ where wxWidgets can be found. Here, the three settings need to be changed:
1. Include directory (e.g., "C: \ wxWidgets-2.8.12 \ include ")
2. Resource Directory (e.g., "C: \ wxWidgets-2.8.12 \ include ")
3. Library directory (e.g., "C :\ wxWidgets-2.8.12 \ Lib ")

We need to modify the system environment variables to implement, add the environment variable wxwin, the value is c: \ wxWidgets-2.8.12, In the audacity project is defined like this, such as $ (wxwin) \ include, after setting environment variables, You need to disable ide To make sure the environment variables take effect. The safest way is to restart the computer.

 Step 5: Consider and configure optional features

Not yet to be continued ....

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.