Wednesday, 18 September 2013

Build project with h323plus lib, using Qt

Build project with h323plus lib, using Qt

I built h323plus and PWLib using msvc 2008. Then I built samples and it
works fine, but now I need to use this libs with Qt. Using msvc I'm adding
include directories, lib directories and also libs which I want to add to
project. It is enough to make work the following code:
#include <ptlib.h>
#include <h323.h>
class SimpleClass : public PProcess
{
PCLASSINFO(SimpleClass, PProcess)
public:
void Main()
{
std::cout << "Hello World" << std::endl;
}
};
PCREATE_PROCESS(SimpleClass)
I'm trying to do same actions using Qt (MinGW). I added INCLUDEPATH and
LIBS to .pro file. It seems it included correctly. But I have a lot of
errors:
C:\Qt\projetcs\test1\main.cpp:16: error: undefined reference to
`PProcess::PreInitialise(int, char*, char*)'
I believe the header was found and successfully included, but I don't
understand why PProccess functions were not founded. It's maybe need to
define some flags or have special config for compiler. What am I doing
wrong?

No comments:

Post a Comment