Openh323 compilation considerations

Source: Internet
Author: User

 

1. Download The pwlib DLL libraries, openh323 DLL libraries, pwlib source code, and openh323 source code from the official website.
2. http://www.voxgratia.org/bin/flexbison.zipdownload flexbison.zipused In gnu bison (the GNU bison tool is required to compile pwlib. GNU flex does not need to be decompressed. decompress the two pre-compiled tools under "C:/" (or the directory you choose) to create "C: /tools "directory with" flex. EXE and bison. EXE "and" bison. simple "and" bison. hairy ".

3. Check the VC header file
Many defects exist in STL-supported header files in vc6.0. These defects are critical to programs that rely on the correct behavior of Global static variables. Fortunately, the author of STL correctly solved most of the problems for the newly released msvc files. If this is not found on your machine, download it from http://www.voxgratia.org/releases/msvc6chk.zip. Run "msvc6chk upgrad" to run the msvc6chk program.

4. Preparation directory
Select "option" from the "tool" menu, and set the directory as follows:
Add installdir/pwlib/lib to Executable Directory
Add installdir/openh323/lib/to the executable directory
Add installdir/tools/to Executable Directory

Add insalldir/pwlib/include/pwlib/mswin to include directory
Add insalldir/pwlib/include/ptlib/MSOs to include directory (note the order of adding)
Add insalldir/pwlib/include to include directory
Add insalldir/openh323/include to include directory

Add installdir/pwlib/lib to library directory
Add installdir/openh323/lib/to library directory

Add installdir/tools; installdir/pwlib/LIB; installdir/openh323/lib to the path environment variable of the system;

5. Compile the pwlib project first.
Under the include directory, paste ptbuildopts. H. In copy and rename ptbuildopts. h;
Compile the following three projects in batches: asnparser-Win32 release "," pwtest-Win32 release ", and" pwtest-Win32 debug"

There will be a lot of errors during compilation, which is a good solution: locate the error and add a few 'single quotes.

6. Compile the openh323 project after compilation.
Go to the source code of the latest version, and replace openh323/configure.exe in it!
Delete the openh323buildopts. h file from your project.
Compile "openh323lib Files" and "openh323dll Files" at a time.

You can download and compile the h323 client,

 

Common Errors:
1,
The following error is reported during compilation:
G:/lxpdata/ip_phone/src/openh323/pwlib_1.5.2/pwlib/include/ptlib/object. H (585): Error c2146: syntax error: Missing '; 'before identifier' cantrace'
G:/lxpdata/ip_phone/src/openh323/pwlib_1.5.2/pwlib/include/ptlib/object. H (798): Error c2146: syntax error: Missing '; 'before

Solution:
This is caused by the include settings in the VC environment. For correct information, see:
./Pwlib/include/pwlib/mswin
./Pwlib/include/ptlib/MSOs
./Pwlib/include

2,
Compilation error:
Using ing build options
Invalid keyboard code specified
This program cannot be run in DOS mode.
Error executing C:/winnt/system32/cmd.exe.
Simple.exe-1 error (s), 0 warning (s)

Solution:
<1> download flexbison from the official website www.openh323.org and decompress it to the C root directory;
<2> set the path environment variable of the system (on the settings/control panel/system/advanced/environment variable/system variable/path), add the following path;
C:/tools
C:/pwlib/lib
C:/openh323/lib

<3> under the include directory, paste ptbuildopts. H. In copy and rename ptbuildopts. h;
<4> compile the following three projects in batches: asnparser-Win32 release "," pwtest-Win32 release ", and" pwtest-Win32 debug"

 

 

 

 

 

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.