How to use openh323 in an exist project?
Posted: Thu Sep 18, 2014 4:12 pm
How to use openh323 in an exist project?
I have downloaded openh323_v1_18_0 source code and pwlib_v1_10_3 source code and compile them successfully with 'make optnoshared' separately.
Then I faced some problems when using the lib.
Q1. How to use the openh323 lib in an exist project?
All openh323 tutorials are about how to develop a new program instead of adding h.323 function to an exist project.
Q2. My exist project is developed in C language, but openh323 is developed in C++ language. So I'd like to code an adaptation layer as a static lib(using openh323 lib & pwlib lib), in which packaging some openh323 interface. What is like this:
Finish coding, I compile the code with 'make optlibs', but it doesn't work by prompting me like felow:
'make[1]: Entering directory '/home/ysc/code/my_openh323/pwlib'
'make[1]: *** No rule to make target 'optdepend'. Stop.'.
How should I do? I have googled for this two questions for days...
Thanks in advance.
I have downloaded openh323_v1_18_0 source code and pwlib_v1_10_3 source code and compile them successfully with 'make optnoshared' separately.
Then I faced some problems when using the lib.
Q1. How to use the openh323 lib in an exist project?
All openh323 tutorials are about how to develop a new program instead of adding h.323 function to an exist project.
Q2. My exist project is developed in C language, but openh323 is developed in C++ language. So I'd like to code an adaptation layer as a static lib(using openh323 lib & pwlib lib), in which packaging some openh323 interface. What is like this:
Code: Select all
extern "C" {
void my_api(void)
{
//api in openh323
openh323_api();
}
}
'make[1]: Entering directory '/home/ysc/code/my_openh323/pwlib'
'make[1]: *** No rule to make target 'optdepend'. Stop.'.
How should I do? I have googled for this two questions for days...
Thanks in advance.