Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. shared library
    Log in to post
    • All categories
    • A

      Unsolved Warning: QObject::startTimer: Timers can only be used with threads started with QThread
      General and Desktop • qt 5.12 qtimer shared library qthread static library • • adw0022

      2
      0
      Votes
      2
      Posts
      1107
      Views

      Christian Ehrlicher

      Install a Qt message handler, set a breakpoint in there and take a look at the backtrace where it comes from.

    • advm

      Unsolved Why creating QAndroidJniObject from jobject fails without error?
      Mobile and Embedded • android libraries jni java shared library • • advm

      2
      0
      Votes
      2
      Posts
      296
      Views

      advm

      I don't understand this well:

      From looking at the documentation, it seems that the QAndroidJniObject constructor and methods have to be attaching and detaching the current thread to and from the JVM, which isn't going to work in a JNI thread that's already attached to the JVM.

      Does this mean that, if I call C++ function(that uses QAndroidJniObject) from java JNI class, it is not going to work?
      Because as I understand, QAndroidJniObject is attaching and detaching the current thread to and from the JVM, and the JNI java object that is calling native functions, is already attached to the JVM.
      Please correct me if I am wrong.

    • S

      Unsolved Mixed C++\QML Plugin Shared Library
      QML and Qt Quick • qmldir plugin shared library • • simone.malvezzi

      1
      1
      Votes
      1
      Posts
      240
      Views

      No one has replied

    • S

      Solved exporting shared DLL class
      General and Desktop • qt 5.14 subdirs shared library • • sDmt

      3
      0
      Votes
      3
      Posts
      255
      Views

      S

      @SGaist Thank you so much for the quick reply.
      I finally managed to do it.

    • A

      Unsolved Unable to link Qt dll
      General and Desktop • msvc2013 shared library linker errors • • Andrea

      6
      0
      Votes
      6
      Posts
      1894
      Views

      SGaist

      Hi,

      Can you show your class definition ?

    • R

      Solved error: undefined reference to
      General and Desktop • shared library linker errors qmake undefined refer • • remizero

      6
      0
      Votes
      6
      Posts
      10275
      Views

      SGaist

      Just use QT += module

      That test is really only useful for code bases that should be built with both Qt 4 and Qt 5 since the widgets have moved to their own module in Qt 5.

    • M

      Signal mechanism for Windows shared library
      General and Desktop • windows 10 event handling signal shared library • • Mark81

      2
      0
      Votes
      2
      Posts
      725
      Views

      ?

      Hi! I don't know if this is the recomended way, but I'd use simple C-style function callback.

    • S

      Unsolved How to access Qt GUI from an library using qt designer form
      General and Desktop • shared library qt designer • • Srujan

      29
      0
      Votes
      29
      Posts
      6169
      Views

      S

      @jsulm Thanks it worked..

    • lindevs

      Solved Required minimum Qt 5.7 shared libraries (.so) for Linux deployment
      Installation and Deployment • qt 5.7 linux deploy shared library • • lindevs

      7
      0
      Votes
      7
      Posts
      2748
      Views

      lindevs

      @lindevs said:

      libqxcb.so

      libqxcb.so depends on these .so files:

      libQt5XcbQpa.so.5 libQt5DBus.so.5

      So in my case project structure looks:

      myapp myapp.sh platforms\libqxcb.so libQt5Core.so.5 libQt5Gui.so.5 libQt5Widgets.so.5 libicudata.so.56 libicui18n.so.56 libicuuc.so.56 libQt5XcbQpa.so.5 libQt5DBus.so.5
    • AlvaroS

      Unsolved Add shared libraries to my projects.
      General and Desktop • libraries shared shared library • • AlvaroS

      4
      0
      Votes
      4
      Posts
      925
      Views

      jsulm

      @AlvaroS Please post your pro file. Nad is this lib built using the same compiler and for same architecture?

    • J

      Unsolved Access Qt plugin classes from other plugins
      General and Desktop • qtplugin shared library symbol table symbol export • • Joshua195

      4
      0
      Votes
      4
      Posts
      1066
      Views

      SGaist

      That assumption is corrected.

      AFAIK, having linking dependencies between two plugins is not a clean design.

    • M

      Known bug in Qt 5.5 with QProcess signals?
      General and Desktop • qt 5.5 osx yosemite qprocess shared library connect signal & slot signals • • maximo

      2
      0
      Votes
      2
      Posts
      1149
      Views

      M

      I figured it out. I needed to set my QObject and QCore stuff properly. In the .pro file of the shared library, I added:

      QT += core

      In the shared library's .h file, I switched this:

      class CTSCANSHARED_EXPORT ctScan { public: ...blah blah...

      with this:

      class CTSCANSHARED_EXPORT ctScan: public QObject { Q_OBJECT public: ...blah blah...

      And then ensured the shared library's .h file had this:

      #include <QObject>

      And then it compiled properly.

    • P

      How to add external lib (libstatgrab.so) to qtcreator?
      General and Desktop • qtcreator shared library • • PawlosCK

      2
      0
      Votes
      2
      Posts
      978
      Views

      jsulm

      Replace -llibstatgrab with -lstatgrab in your .pro file (lib prefix is added automatically, so you should not use it)

    • T

      Qt Creator Shared Library at runtime
      Tools • qt creator shared library visual studio • • tomkulaga

      1
      0
      Votes
      1
      Posts
      649
      Views

      No one has replied

    • Resurr3ction

      Shared library dependencies in plugins
      General and Desktop • qpluginloader shared library plugins • • Resurr3ction

      4
      0
      Votes
      4
      Posts
      2328
      Views

      SGaist

      ACGuiApplication is a symbol that comes from that other library so it's not provided by libCommon. Have a look at the link_prl and create_prl qmake options. They should provide you with all the dependencies needed automatically.

    • F

      [SOLVED] Loading Shared Library in OS-X: dyld: Library not loaded: [...] Reason: no suitable image found.
      General and Desktop • shared library os x • • Frime

      3
      0
      Votes
      3
      Posts
      5087
      Views

      F

      Thanks a lot! This hint was expedient.

    • Mohammadsm

      [SOLVED] How to use connect in a shared library?
      General and Desktop • library connect dll shared library qobject • • Mohammadsm

      11
      0
      Votes
      11
      Posts
      6412
      Views

      K

      @SGaist said:

      @sierdzio Indeed the back ticks are not mandatory, however it gives the forum engine a good hint of what is following

      in the cheat sheet you can actually find:
      Blocks of code are either fenced by lines with three back-ticks ```, or are indented with four spaces. I recommend only using the fenced code blocks -- they're easier and only they support syntax highlighting.

      The question is what is the syntax highlighting now?

    • A

      Debug external shared library in Qt Creator Android project
      Mobile and Embedded • debug android creator shared library linux • • alexey.petrenko

      2
      0
      Votes
      2
      Posts
      2125
      Views

      A

      See the answer on SO: http://stackoverflow.com/q/31076312/1645784

    • Lays147

      How do i get all the shared libs that my app needs?
      General and Desktop • shared library • • Lays147

      3
      0
      Votes
      3
      Posts
      807
      Views

      Lays147

      @JohanSolo I already did that. My boyfriend create a program in C that copy all the libs. But when i set de rpath and run the app, error segmentation fault happens.
      I'm searching a solution, but i have nothing so far.
      Any tips?