Unsolved How to connect Risip in Qt
-
@Mikeeeeee That error is unrelated to the debugger.
Delete the build directory, run qmake and build again. -
I have tried to do so, the error remained.
-
@Mikeeeeee Please post your pro file
-
AsteriskManager:
TEMPLATE = subdirs SUBDIRS += \ src \ test
QT += network QT -= gui TARGET = asteriskmanager TEMPLATE = lib CONFIG += staticlib c++11 SOURCES += asteriskmanager.cpp \ packet.cpp \ action.cpp \ loginaction.cpp \ logoffaction.cpp \ tcppackettransport.cpp HEADERS += asteriskmanager.h \ packettransport.h \ packet.h \ action.h \ loginaction.h \ logoffaction.h \ tcppackettransport.h unix { target.path = /usr/lib INSTALLS += target }
QT += testlib QT -= gui TARGET = tst_loginactiontest CONFIG += console c++11 CONFIG -= app_bundle TEMPLATE = app SOURCES += \ main.cpp \ loginactiontest.cpp \ logoffactiontest.cpp \ packettransportmock.cpp DEFINES += SRCDIR=\\\"$$PWD/\\\" HEADERS += \ loginactiontest.h \ logoffactiontest.h \ packettransportmock.h win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../src/release/ -lasteriskmanager else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../src/debug/ -lasteriskmanager else:unix: LIBS += -L$$OUT_PWD/../src/ -lasteriskmanager INCLUDEPATH += $$PWD/../src DEPENDPATH += $$PWD/../src win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../src/release/libasteriskmanager.a else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../src/debug/libasteriskmanager.a else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../src/release/asteriskmanager.lib else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../src/debug/asteriskmanager.lib else:unix: PRE_TARGETDEPS += $$OUT_PWD/../src/libasteriskmanager.a
-
@Mikeeeeee said in How to connect Risip in Qt:
Maybe it's the debugger
Actually, none of the errors you listed are caused by the debugger.
error of Qt-Asterisk-Desktop-master: dependent 'phonon\seekslider.h' does not exist.
This error tells you that the project is looking for a header file called seekslider.h, but it cannot find the header.
error qt-asterisk-code-r100 : Unknown module(s) in QT: webkit
This error tells you that Qt WebKit is not installed.
The Qt WebKit module was deprecated and removed from Qt 5.6.
You have 2 options:
- Downgrade to Qt 5.5, OR
- Install an unofficial version: https://github.com/annulen/webkit/tree/qtwebkit-5.212.0-alpha2
errors of metasec: C:\Users\New Owner\Downloads\MetaVoIP1\pjproject-2.4\pjlib\include\pj\config.h:278: error: C1189: #error: "Please specify target machine."
config.h requires you to
#define
a macro so that#ifdef
logic will not lead to an#error
.Read config.h, especially the lines above line #278 to figure out what you need to do.
error js AsteriskManager-master:: No rule to make target 'C:/Users/New Owner/Downloads/AsteriskManager-master/build-test-Desktop_Qt_5_12_3_MinGW_64_bit-Debug/../src/debug/libasteriskmanager.a', needed by 'debug/tst_loginactiontest.exe'. Stop.
I'm not sure about this error. Fix the others first, then come back to this one.
-
It looks like each of these projects will be a lot of fuss. Maybe you know how to connect PJSIP?
-
@Mikeeeeee said in How to connect Risip in Qt:
Maybe you know how to connect PJSIP?
I've never used PJSIP before, sorry.
I can offer help with things related to Qt, but I can't offer help with external tools that I've never used before.
If this is important to you, I recommend you hire a professional to help you.
-
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.