PDA

View Full Version : Lỗi khi biên dịch MyPhone



ts4is
24-06-2004, 06:26 PM
Khi mình compile MyPhone thì bị các lỗi sau: (Thư viện PWLib và H323Lib đã biên dịch thành công). Ko hiểu lỗi tại sao, mong các bạn chỉ giúp. (Tất nhiên là không thể có lỗi về cú pháp được :) )



--------------------Configuration: MyPhone - Win32 Release Static--------------------
Compiling...
MyPhoneEndPoint.cpp
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\codecs.h( 88 ) : error C2011: 'IInstallAudioCodecs' : 'struct' type redefinition
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\codecs.h( 98 ) : error C2011: 'IInstallVideoCodecs' : 'struct' type redefinition
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\codecs.h( 108 ) : error C2011: 'IInstallCodecs' : 'struct' type redefinition
D:\MyPhone0.2b10_src\MyPhone\MyPhoneEndPoint.cpp(4 29) : error C2061: syntax error : identifier 'H323_G729ACapability'
D:\MyPhone0.2b10_src\MyPhone\MyPhoneEndPoint.cpp(4 30) : error C2061: syntax error : identifier 'H323_G729Capability'
D:\MyPhone0.2b10_src\MyPhone\MyPhoneEndPoint.cpp(4 30) : error C2143: syntax error : missing ')' before ';'
D:\MyPhone0.2b10_src\MyPhone\MyPhoneEndPoint.cpp(4 49) : error C2143: syntax error : missing ')' before ';'
D:\MyPhone0.2b10_src\MyPhone\MyPhoneEndPoint.cpp(4 49) : error C2143: syntax error : missing ';' before ')'
D:\MyPhone0.2b10_src\MyPhone\MyPhoneEndPoint.cpp(4 49) : error C2143: syntax error : missing ';' before ')'
D:\MyPhone0.2b10_src\MyPhone\MyPhoneEndPoint.cpp(4 49) : error C2143: syntax error : missing ';' before ')'
D:\MyPhone0.2b10_src\MyPhone\MyPhoneEndPoint.cpp(4 50) : error C2143: syntax error : missing ';' before '{'
D:\MyPhone0.2b10_src\MyPhone\MyPhoneEndPoint.cpp(4 54) : error C2043: illegal break
D:\MyPhone0.2b10_src\MyPhone\MyPhoneEndPoint.cpp(4 69) : error C2043: illegal break
D:\MyPhone0.2b10_src\MyPhone\MyPhoneEndPoint.cpp(5 37) : error C2061: syntax error : identifier 'H323_H263Capability'
D:\MyPhone0.2b10_src\MyPhone\MyPhoneEndPoint.cpp(5 56) : error C2143: syntax error : missing ')' before '}'
D:\MyPhone0.2b10_src\MyPhone\MyPhoneEndPoint.cpp(5 56) : error C2143: syntax error : missing ';' before ')'
Error executing cl.exe.

MyPhone.exe - 16 error(s), 0 warning(s)

txhong
30-08-2004, 03:46 PM
Bạn check lại các thông tin sau:
1. đường dẫn include và lib
+ Nếu bạn dùng version PWLIB và OpenH323 cũ thì bạn kiểm tra xem như sau:
- nếu VC6 thì bạn vào Tools\Open\Directory chỉnh lại như sau:
*INCLUDE
$root_install\pwlib\ptlib\include\msos
$root_install\pwlib\pwlib\include\mswin
$root_install\pwlib\include\
$root_install\openh323\include\
*LIB
$root_install\pwlib\lib
$root_install\openh323\lib
+ Nếu dùng last version
- nếu VC6 thì bạn vào Tools\Open\Directory chỉnh lại như sau:
*INCLUDE
$root_install\pwlib\include\
$root_install\openh323\include\
*LIB
$root_install\pwlib\lib
$root_install\openh323\lib
2. Theo mình biết thì MyPhone tuy OpenSource, nhung trong Source Code của MyPhone không support phần Codec, đặt biệt là codec G723.1, và codec này trong Open H323 cũng không support luôn. Cho nen bạn phải định nghĩa lại phần codec trong MyPhone, và viết thêm codec G723.1 cho Open H323.

Với cách trên Hồng đã build và chạy được MyPhone

Trần Xuân Hồng