Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to connect Risip in Qt
Forum Updated to NodeBB v4.3 + New Features

How to connect Risip in Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
52 Posts 6 Posters 9.3k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Mikeeeeee

    Here . say that this component is available when you install Visual Studio.
    I have SDK for Windows 10 (10.0.18362.0) .
    But I haven't installed the profiling Tools .NET. It is necessary for the debugger or not? And you need to set the debugger for Qt?

    JKSHJ Offline
    JKSHJ Offline
    JKSH
    Moderators
    wrote on last edited by
    #34

    @Mikeeeeee said in How to connect Risip in Qt:

    Here . say that this component is available when you install Visual Studio.

    No, CDB is not available in the Visual Studio installer.

    You must install CDB separately: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/

    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

    1 Reply Last reply
    2
    • M Offline
      M Offline
      Mikeeeeee
      wrote on last edited by
      #35

      I configured the debugging, but still get the old error.
      0_1560493540752_1.png

      jsulmJ 1 Reply Last reply
      0
      • M Mikeeeeee

        I configured the debugging, but still get the old error.
        0_1560493540752_1.png

        jsulmJ Online
        jsulmJ Online
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #36

        @Mikeeeeee That error is unrelated to the debugger.
        Delete the build directory, run qmake and build again.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Mikeeeeee
          wrote on last edited by
          #37

          I have tried to do so, the error remained.

          jsulmJ 1 Reply Last reply
          0
          • M Mikeeeeee

            I have tried to do so, the error remained.

            jsulmJ Online
            jsulmJ Online
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #38

            @Mikeeeeee Please post your pro file

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • M Offline
              M Offline
              Mikeeeeee
              wrote on last edited by
              #39

              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
              
              
              1 Reply Last reply
              0
              • M Mikeeeeee

                Maybe it's the debugger, I only have these:!
                0_1560427300816_1.png
                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.
                error of Qt-Asterisk-Desktop-master: dependent 'phonon\seekslider.h' does not exist.
                error qt-asterisk-code-r100 : Unknown module(s) in QT: webkit
                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."
                C:\Users\New Owner\Downloads\MetaVoIP1\pjproject-2.4\pjlib\include\pj\config.h:278: error: C1189: #error: "Please specify target machine."
                C:\Users\New Owner\Downloads\MetaVoIP1\pjproject-2.4\pjlib\include\pj\config.h:278: error: C1189: #error: "Please specify target machine."
                C:\Users\New Owner\Downloads\MetaVoIP1\pjproject-2.4\pjlib\include\pj\config.h:278: error: C1189: #error: "Please specify target machine."
                C:\Users\New Owner\Downloads\MetaVoIP1\pjproject-2.4\pjlib\include\pj\config.h:278: error: C1189: #error: "Please specify target machine."

                JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #40

                @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.

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                1 Reply Last reply
                2
                • M Offline
                  M Offline
                  Mikeeeeee
                  wrote on last edited by
                  #41

                  It looks like each of these projects will be a lot of fuss. Maybe you know how to connect PJSIP?

                  JKSHJ 1 Reply Last reply
                  0
                  • M Mikeeeeee

                    It looks like each of these projects will be a lot of fuss. Maybe you know how to connect PJSIP?

                    JKSHJ Offline
                    JKSHJ Offline
                    JKSH
                    Moderators
                    wrote on last edited by
                    #42

                    @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.

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    1 Reply Last reply
                    2
                    • M Offline
                      M Offline
                      Mikeeeeee
                      wrote on last edited by
                      #43

                      How do you connect such libraries with the help of the compiler?

                      JKSHJ 1 Reply Last reply
                      0
                      • M Mikeeeeee

                        How do you connect such libraries with the help of the compiler?

                        JKSHJ Offline
                        JKSHJ Offline
                        JKSH
                        Moderators
                        wrote on last edited by
                        #44

                        @Mikeeeeee said in How to connect Risip in Qt:

                        How do you connect such libraries with the help of the compiler?

                        1. Download (or build) a version of the library that is compatible with your compiler.
                        2. Add the library to your project: https://doc.qt.io/qt-5/qmake-project-files.html#declaring-other-libraries
                        3. #include the library headers in your own code and call the library functions
                        4. Build your code

                        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                        1 Reply Last reply
                        2
                        • M Offline
                          M Offline
                          Mikeeeeee
                          wrote on last edited by
                          #45

                          But PJSIP does not have dll and lib files.

                          mrjjM JKSHJ 2 Replies Last reply
                          0
                          • M Mikeeeeee

                            But PJSIP does not have dll and lib files.

                            mrjjM Offline
                            mrjjM Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on last edited by
                            #46

                            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

                            1 Reply Last reply
                            2
                            • M Mikeeeeee

                              But PJSIP does not have dll and lib files.

                              JKSHJ Offline
                              JKSHJ Offline
                              JKSH
                              Moderators
                              wrote on last edited by
                              #47

                              @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:

                              1. 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.

                              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                              1 Reply Last reply
                              1
                              • M Offline
                                M Offline
                                Mikeeeeee
                                wrote on last edited by
                                #48

                                There is described an option for Visual Studio. But how to do it in Qt?

                                jsulmJ 1 Reply Last reply
                                0
                                • M Mikeeeeee

                                  There is described an option for Visual Studio. But how to do it in Qt?

                                  jsulmJ Online
                                  jsulmJ Online
                                  jsulm
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #49

                                  @Mikeeeeee Since you're using MSVC++ compiler (from Visual Studio) build the lib using the description for Visual Studio.

                                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  1 Reply Last reply
                                  1
                                  • M Offline
                                    M Offline
                                    Mikeeeeee
                                    wrote on last edited by
                                    #50

                                    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)?

                                    jsulmJ JKSHJ 2 Replies Last reply
                                    0
                                    • M Mikeeeeee

                                      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)?

                                      jsulmJ Online
                                      jsulmJ Online
                                      jsulm
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #51

                                      @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.

                                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      1 Reply Last reply
                                      0
                                      • M Mikeeeeee

                                        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)?

                                        JKSHJ Offline
                                        JKSHJ Offline
                                        JKSH
                                        Moderators
                                        wrote on last edited by
                                        #52

                                        @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.

                                        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                        1 Reply Last reply
                                        3

                                        • Login

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • Users
                                        • Groups
                                        • Search
                                        • Get Qt Extensions
                                        • Unsolved