Unsolved How to connect Risip in Qt
-
How do you connect such libraries with the help of the compiler?
-
@Mikeeeeee said in How to connect Risip in Qt:
How do you connect such libraries with the help of the compiler?
- Download (or build) a version of the library that is compatible with your compiler.
- Add the library to your project: https://doc.qt.io/qt-5/qmake-project-files.html#declaring-other-libraries
#include
the library headers in your own code and call the library functions- Build your code
-
But PJSIP does not have dll and lib files.
-
Hi
You are supposed to produce the DLL and lib files your self by closely following
https://trac.pjsip.org/repos/wiki/Getting-Started/Windows -
@Mikeeeeee said in How to connect Risip in Qt:
But PJSIP does not have dll and lib files.
@mrjj is right. As I said in my previous post:
- build a version of the library that is compatible with your compiler.
Here, "build" means use your compiler to create .dll/.lib files from the library's source code.
-
There is described an option for Visual Studio. But how to do it in Qt?
-
@Mikeeeeee Since you're using MSVC++ compiler (from Visual Studio) build the lib using the description for Visual Studio.
-
But is it possible to compile this dll into Qt? I have MSVC2019, but I never used it. How can I build a Dll in MSVC2019 (I created a library project)?
-
@Mikeeeeee said in How to connect Risip in Qt:
But is it possible to compile this dll into Qt?
You don't compile a dll "into Qt". You simply compile it and then use in your app.
-
@Mikeeeeee said in How to connect Risip in Qt:
But is it possible to compile this dll into Qt?
It is important to understand:
- C++ is a language.
- PJSIP is a C++ library.
- Qt is a C++ library (mostly).
- Qt Creator is an IDE.
- Visual Studio is an IDE.
- Microsoft Visual C++ is a compiler.
You use an IDE to write code and build applications/libraries. You need to tell your IDE which compiler to use.
You can use Visual Studio to write C++ applications that link to the Qt and PJSIP libraries.
You can use Qt Creator to write C++ applications that link to the Qt and PJSIP libraries.How can I build a Dll in MSVC2019 (I created a library project)?
You must follow the instructions from PJSIP documentation. We do not know how to build PJSIP.