Compile audacity Method

Source: Internet
Author: User
Tags wxwidgets

First of all, this is the first time I have compiled such a large project, so I have taken some detours. Because I want to learn about speech processing, I will compile the source code of audacity under sf. I use audacity1.3.9 version. first, find the compile.txt file in win.com. This is the instruction file compiled in windows. The instructions above are clear (only in English) and the compilation tool is vs2008.

1. to compile audacity successfully, you must compile widgets first. This is a cross-platform UI development tool, which will generate some after compilation. lib static Link Library and. without these dll dynamic link libraries, audacity cannot be compiled. However, during compilation, you should be sure to select the right project. If you select all, it will take a long time (I did this), and the compilation configuration must be the same as the configuration during audacity compilation, for example, if you compile widgets and select release, you need to select release when compiling audacity, and select it next to the generate button (I chose unicode release, I am not quite sure about the specific differences), this is definitely not an option, because different configurations require different link files.

2. Configure the system environment variable, which is used by audacity WXWIN. Therefore, add one to the system environment variable. The path is the installation path of widgets.

3 .. he also asked you to Copy two files, * Copy setup. h to "C:/wxWidgets-2.8.10/include/wx/msw/" This I think is wrong, it should be copied to C:/wxWidgets-2.8.10/include/wx, this is because/wx/setup is not found during compilation of audacity. h file error.

4. The following is the compilation of audacity. Open audacity. sln in the win directory, and vs will automatically load all projects. This is a long wait for compilation. When I thought everything was okay, it reported an error, and the. rc resource file reported an error indicating this line of VALUE "ProductVersion ?, AUDACITY_FILE_VERSION is wrong. I thought about it for a long time (I am stupid). They used to write ?, It's okay after the change. I'm so dizzy. Although this is an open-source software, you should also take some responsibility. This kind of mistake is also made...

5.compile the program again to generate audacity.exe successfully, but the runtime error still occurs because it cannot be found. DLL file, this is the need to copy the DLL file under C:/wxWidgets-2.8.10/lib/vc_dll to the running directory, you can run normally.

Note: Although I have finally completed compilation for a long time, I am still confused about the working principle of audacity. I hope any man who has studied it will not be enlightened. I am very grateful!

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.