Windows freeswitch1.0.7 and libpcre compilation failed

Source: Internet
Author: User

When freeswitch1.0.7 is compiled in windows, compilation fails, and many targets fail to be compiled. Taking a closer look, we found that libpcre, an external dependent library, failed to compile.

PCRE is a well-known Regular Expression Library. In the past, in Linux, it was successful in compiling the trilogy in a normal way. However, what is the xuanjicang in windows? The error message is that the source file pcre_chartables.c does not exist in the cloud. Is the source code incorrect?

Open \ freeswitch-1.0.7 \ libs \ PCRE, really don't have this source file. After looking for the information, I found that compiling PCRE in windows really requires some additional work:

1. Rename config. H. Generic to config. H. This is the generic configuration file. You need to modify the pre-compilation according to the specific environment. 2. Set PCRE. h. rename generic to PCRE. H 3. Rename pcre_chartables.c.dist to pcre_chartables.c. In the freeswitch project, the pcre_chartables.c file path points to the \ freeswitch-1.0.7 \ libs \ Win32 \ PCRE directory, point to \ freeswitch-1.0.7 \ libs \ PCRE regenerate, everything goes well.
 

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.