Skip to content

3rd Party Software

Combining Qt with 3rd party libraries or components? Ask here!
1.1k Topics 5.5k Posts
  • How to Add CppUTest toexisting Qt 5 Project?

    Unsolved
    2
    0 Votes
    2 Posts
    517 Views
    SGaistS

    Hi,

    You need to link to the Cpputest libraries as well as explained in their documentation.

  • lld-link : error : undefined symbol:

    Unsolved
    1
    0 Votes
    1 Posts
    472 Views
    No one has replied
  • 0 Votes
    2 Posts
    684 Views
    SGaistS

    Hi and welcome to devnet,

    You might want to consider moving to a more recent version of Qt because 5.0.1 is clearly outdated and had not cmake integrated yet.

    Otherwise, you will need to either implement the Qt5 find module yourself. Or maybe KDE's ecm module might also help.

  • Versions info for libs used in Qt5.12.3

    Unsolved
    2
    0 Votes
    2 Posts
    349 Views
    SGaistS

    Hi,

    If you are talking about the librairies that are available because embedded within Qt, you have the full details within the Qt sources. Search for the qt_attribution.json files.

    You can also use qtattributionsscanner to grab the information.

  • 0 Votes
    5 Posts
    1k Views
    SGaistS

    One thing about the static linking problem: it might be as simple as not having the libraries in the correct order.

  • CMake issues

    Unsolved
    2
    0 Votes
    2 Posts
    402 Views
    SGaistS

    Hi and welcome to devnet,

    Why are you stating that your application's language is C when using in fact C++ ? (That's what the .cpp extension hints to).

  • qextserialport crashes prigramm

    Unsolved
    2
    0 Votes
    2 Posts
    342 Views
    kkoehneK

    qwineventnotifier_p.h is a private header of Qt Core. Having a copy of it in your app is calling for problems, especially if the version of it doesn't match the exact version that Qt Core is built with.

    I assume qextserialport needs access to this private header; in this case, make sure that private headers are installed, and try to include the header from Qt.

  • 0 Votes
    10 Posts
    3k Views
    S

    I needed to switch my project to Qt5 and tried using setMedia and gst:pipeline but that wasn't working for me either. Right now, the pipeline below works as it connects to the camera I need it to and opens the gstreamer output. However, it opens it in a new window and not the Qt Video Widget I am using. I know autovideosink ignores the window overlay, but I tried other sinks and just got a black screen. How could I get this to work? I tried glimagesink which worked for the videotestsrc but it did not work for this.

    w->pipeline = gst_parse_launch( "udpsrc port=8000 ! application/x-rtp, encoding-name=H264, payload=109 ! rtph264depay ! h264parse ! queue ! avdec_h264 ! videoconvert ! autovideosink", NULL); /* [4] Set video overlay */ gst_video_overlay_set_window_handle(GST_VIDEO_OVERLAY(w->pipeline), w->getVideoWinID()); /* [5] Run the pipeline */ qDebug() << "------------------------------ Starting pipeline ------------------------------"; GstStateChangeReturn sret = gst_element_set_state(w->pipeline, GST_STATE_PLAYING); if (sret == GST_STATE_CHANGE_FAILURE) { gst_element_set_state(w->pipeline, GST_STATE_NULL); gst_object_unref(w->pipeline); }
  • Qt 5 OpenCV windows deployment error

    Unsolved
    8
    0 Votes
    8 Posts
    823 Views
    SGaistS

    Did you try to replicate that with a minimal example that uses only a simple call from the OpenCV library ?

  • 0 Votes
    2 Posts
    501 Views
    SGaistS

    Hi and welcome to devnet,

    Are you sure you are linking all the required libraries ?
    Are they all from compatible compilers ?

  • Unable to build QCA with pkcs11 support

    Unsolved
    1
    0 Votes
    1 Posts
    293 Views
    No one has replied
  • Linking error while compiling taglib in Qt 6

    Unsolved
    14
    0 Votes
    14 Posts
    1k Views
    PbaodogeP

    @SGaist said in Linking error while compiling taglib in Qt 6:

    I am unsure about your answer. So were you indeed missing that before the library path ?

    Yes, I was missing that one.

  • Объединить Ардуино и Qt по modbus

    Unsolved
    2
    0 Votes
    2 Posts
    446 Views
    jsulmJ

    @Annna https://doc.qt.io/qt-6/qtmodbus-backends.html
    https://doc.qt.io/qt-5/qtserialbus-modbus-master-example.html

  • Cannot found clang++-10 with cmake and clazy

    Unsolved
    1
    0 Votes
    1 Posts
    681 Views
    No one has replied
  • Error while link libraries between Qt and ITK.

    Unsolved
    5
    0 Votes
    5 Posts
    545 Views
    M

    ITK is much easier to work with if you use CMake instead of qmake .pro project files. Your link command is missing a library that would have been automatically added to the linking if you used CMake.

  • QLocation with Qt 6

    Unsolved
    3
    0 Votes
    3 Posts
    604 Views
    D

    @SGaist said in QLocation with Qt 6:

    git submodule update --init

    Sorry for the late reply, thanks for taking the time to answer. Yes I did the "git submodule update --init" command. The issue is that many of the modules located in src/3rdparty are simply not in the Qt 6.3 branch, so I just copied them in from the 5.15.2 branch of QLocation. This got everything to compile

  • OpenAL-Soft does not allow to stop Qt5 application

    Unsolved
    5
    0 Votes
    5 Posts
    490 Views
    8Observer88

    I found another library that works fine:

    Widget.h

    #ifndef WIDGET_H #define WIDGET_H #include <QtWidgets/QWidget> #include <fmod.h> class Widget : public QWidget { Q_OBJECT public: Widget(QWidget *parent = nullptr); ~Widget(); private: FMOD_SYSTEM *m_pSystem; FMOD_SOUND *m_pSound; }; #endif // WIDGET_H

    Widget.cpp

    #include "Widget.h" #include <QtCore/QFile> #include <QtCore/QDebug> // https://forum.qt.io/topic/49342/solved-fmod-does-not-play-a-sound-from-qresource/2 Widget::Widget(QWidget *parent) : QWidget(parent) { FMOD_System_Create(&m_pSystem, FMOD_VERSION); FMOD_System_Init(m_pSystem, 32, FMOD_INIT_NORMAL, 0); // FMOD_System_CreateSound(m_pSystem, "Assets/spell.ogg", FMOD_DEFAULT, 0, &m_pSound); QString soundPath(":/Assets/spell.ogg"); QFile f(soundPath); if (!f.open(QIODevice::ReadOnly)) { qDebug() << "Faild to open the file: " << soundPath; return; } QByteArray soundData = f.readAll(); FMOD_CREATESOUNDEXINFO* exinfo = new FMOD_CREATESOUNDEXINFO(); exinfo->length = static_cast<unsigned int>(soundData.length()); exinfo->cbsize = sizeof(FMOD_CREATESOUNDEXINFO); FMOD_System_CreateSound(m_pSystem, soundData.data(), FMOD_OPENMEMORY, exinfo, &m_pSound); FMOD_Sound_SetMode(m_pSound, FMOD_LOOP_OFF); FMOD_System_PlaySound(m_pSystem, m_pSound, 0, false, 0); } Widget::~Widget() { }

    main.cpp

    #include "Widget.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); Widget w; w.show(); return a.exec(); }

    .pro

    QT += core gui INCLUDEPATH += "C:\Program Files (x86)\FMOD SoundSystem\FMOD Studio API Windows\api\core\inc" LIBS += -L"C:\Program Files (x86)\FMOD SoundSystem\FMOD Studio API Windows\api\core\lib\x86" LIBS += -lfmod greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++11 # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ main.cpp \ Widget.cpp HEADERS += \ Widget.h # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target RESOURCES += \ Assets.qrc
  • 0 Votes
    2 Posts
    327 Views
    R

    it's probably linked to the graphics drivers i have on the PC.
    I make the distribution run on an other linux and it is working fine.

  • 0 Votes
    4 Posts
    554 Views
    SGaistS

    No worries !

    You manage to find a solution so that's the essential point.

  • GammaRay Quick Scenes deep information missing

    Unsolved
    1
    0 Votes
    1 Posts
    243 Views
    No one has replied