Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. dll
    Log in to post

    • UNSOLVED Dll with Qt UI Form to inject in third-party process - Is it possible?
      General and Desktop • dll ui form • • PoisonXD  

      7
      0
      Votes
      7
      Posts
      73
      Views

      Are DLL(s) that are meant to be "optional plugins" that the EXE is designed to open with dlopen or (on windows) GetModuleHandle or LoadLibrary.... are those sorts of plugins suitable for use in injectors? Nop But that supposes the that executable in question is a Qt-dependent executable in the first place. I guess you didn't explicitly mention that yet.... The process into which you attempt the injection... is that process any kind of Qt executable? Nop, it was not made with Qt. If not, then your injected code would (I believe) need to run a Qt event loop. Normally that would be done in the application's main. Im really really dumb with Qt, but i will try to do something with this information. It's just sad because i can't find any example of what i want :( Thanks
    • UNSOLVED Aplikacja SQL
      Polish • sql dll deploy • • Piotrek102  

      1
      0
      Votes
      1
      Posts
      60
      Views

      No one has replied

    • SOLVED Segmentation fault using .dll compiled with Qt
      General and Desktop • dll seg fault • • magartor  

      5
      0
      Votes
      5
      Posts
      73
      Views

      Hi, It works thanks :)
    • UNSOLVED Deploying shared libraries and set PATH without interfering with other applications
      Installation and Deployment • dll path conflict • • gde23  

      2
      0
      Votes
      2
      Posts
      36
      Views

      Hi, This stack overflow thread might be of interest to avoid having to play with the PATH environment variable.
    • SOLVED Deploying a QApplication inside a DLL == platform plugin not found even if here
      General and Desktop • deployment dll qapplication windeployqt platform • • Aria-dvp  

      3
      0
      Votes
      3
      Posts
      100
      Views

      Thank you @hskoglund for this option, it worked! This is the perfect solution for me, it's simple, and now I can use C++ variables for the install path of my DLL if needed. Thanks again!
    • SOLVED QT dll names
      General and Desktop • debug dll lib release • • normvcr  

      5
      0
      Votes
      5
      Posts
      62
      Views

      @sierdzio I think you're second option is correct. I did dumpbin /dependents on both the debug and release versions of my util, and they have the same release QT dlls. I guess I never had to step into the QT code :-) . Usually, I get link errors when mixing debug with release, stemming from different array instrumentations. Sounds like QT was careful about this, to allow the mixing of debug with release -- unix-like.
    • why definition is talking from .cpp file?
      General and Desktop • c++ dll virtual qt 5.11.0 • • Yash001  

      7
      0
      Votes
      7
      Posts
      346
      Views

      @Yash001 said in why definition is talking from .cpp file?: why it is working if I will define the definition inside the class Because then the compiler sees the definition when you compile your executable. just now I try Q_DECL_EXPORT virtual QString GetExpParamTxt(QWidget*)const;. I got same error. You did not read the link carefully... you have to export it when compiling the lib, import it when linking against as explained.
    • SOLVED DLL issue even with all Qt DLL in the directory
      Installation and Deployment • error dll deployment • • Tapto  

      6
      0
      Votes
      6
      Posts
      801
      Views

      Hello, Sorry, it took me a bit of time to make the tests: A simple "Hello world" project runs correctly in Qt Creator? When using the external lib, the program crashes. I suspect an incompatibility of this old lib with Windows 10. I need to further investigated this issue... Many thanks for your help!
    • UNSOLVED MediaInfo library
      3rd Party Software • dll data media • • UnitScan  

      2
      0
      Votes
      2
      Posts
      562
      Views

      @UnitScan seen on the official website (linked in the post you referring to): https://mediaarea.net/de/MediaInfo/Download https://mediaarea.net/de/MediaInfo/Download/Source https://mediaarea.net/de/MediaInfo/Download/Windows ...
    • UNSOLVED How can I transfer the Qt Signal Data to 3rd party Software Such as Labview?
      Mobile and Embedded • c++ dll signals & slots qt 5.6.3 labview • • Yash001  

      17
      0
      Votes
      17
      Posts
      1771
      Views

      @SGaist I am not using Labview's serial port directly because of my code contain many background functionalities. It will take time to implement all in Labview. We want to just give readable data and few User interface to Labview. So user can directly use readable value and interface in Labview.
    • UNSOLVED Create Qt DLL usable from VB
      General and Desktop • dll qt 5.12 vba • • Bastien  

      6
      0
      Votes
      6
      Posts
      702
      Views

      @Bastien I build with MinGW on Qt Creator. And when I use DLL, I've the error. I didn't ask you that. I know that. That's why I asked you: And when you build it in Visual Studio you are using the MinGW compiler, not the MSVC one, just like you show you are using from Qt Creator, right? So I asked you what compiler you are using from Visual Studio, not Qt Creator. Having to make a guess and assuming you use MinGW from Qt Creator but MSVC from VS, I imagine that is precisely the answer to your: This code works fine in Visual Studio but not in QtCreator... Why ?
    • SOLVED Run in release crash
      Installation and Deployment • qt creator dll release mode • • Sillimon  

      5
      0
      Votes
      5
      Posts
      3475
      Views

      After few researches and some help from internal, it appears that my links to libraries ain't clean enough wich leads to those random behaviours. So i'm working on making it cleaner for x32/x64 debug and release. Thanks a lot for your help ! You made my mind way sharper !
    • UNSOLVED Can't launch application. dll is missing
      General and Desktop • windows visual studio dll • • za83  

      18
      0
      Votes
      18
      Posts
      10027
      Views

      Hi, One small correction: you can use Visual Studio 2017 with libraries built for VS2015, these two compilers are compatible (which is the first time two Microsoft Compilers are compatible).
    • UNSOLVED Runtime error: “must construct a QApplication before a QWidget” when launching a QDialog from a dll built with static Qt
      General and Desktop • qwidget dll static build qapplication static linking • • awyarbr  

      2
      0
      Votes
      2
      Posts
      870
      Views

      Hi and welcome to devnet, Do you have any static QWidget based class in your library/application ?
    • SOLVED Issues with dynamically loading and "undefined symbol," errors
      General and Desktop • plugin dll qlibrary dllexport dllimport • • define-private-public  

      3
      0
      Votes
      3
      Posts
      1806
      Views

      I figured out my problem... I forgot to include the widget in the .lib.pro file...
    • UNSOLVED QCameraInfo
      General and Desktop • dll camera qcamerainfo viewfinder • • mlathrop  

      2
      0
      Votes
      2
      Posts
      764
      Views

      Hi, Are you running them from Qt Creator ? If not did you deploy the QtMultimedia plugins for your second application ?
    • UNSOLVED Building DLL in Visual Studio with Static Linking to QT
      Installation and Deployment • visual studio dll static static linking visual c++ • • mlathrop  

      17
      0
      Votes
      17
      Posts
      6854
      Views

      @koahnig SetName takes in a char* because it is a part of an API. @kshegunov Here are the relevant linker calls. I don't know how to get the .pro file from a VS project. Here is the linker call in the project that makes the dll: /OUT:"E:\Users\misappsci\Documents\Projects\yyy\x64\bin\yyy3D.dll" /MANIFEST /LTCG:incremental /NXCOMPAT /PDB:"E:\Users\misappsci\Documents\Projects\yyy\x64\bin\yyy3D.pdb" /DYNAMICBASE "sl_zed64.lib" "opencv_world310.lib" "cudart.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" "qtmain.lib" "Qt5Core.lib" "Qt5Multimedia.lib" "Qt5Gui.lib" "winmm.lib" /IMPLIB:"E:\Users\misappsci\Documents\Projects\yyy\x64\bin\yyy3D.lib" /DEBUG /DLL /MACHINE:X64 /OPT:REF /PGD:"E:\Users\misappsci\Documents\Projects\yyy\x64\bin\yyy3D.pgd" /SUBSYSTEM:CONSOLE /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /ManifestFile:"x64\3DRelease\yyy3D.dll.intermediate.manifest" /OPT:ICF /ERRORREPORT:PROMPT /NOLOGO /LIBPATH:"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\lib\x64" /LIBPATH:"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0/lib/x64" /LIBPATH:"C:\Program Files (x86)\ZED SDK\dependencies\opencv_3.1.0/x64/vc14/lib" /LIBPATH:"C:\Program Files (x86)\ZED SDK\lib" /LIBPATH:"C:\Program Files\boost\boost_1_63_0/lib/x64" /LIBPATH:"C:\Qt\5.7\msvc2015_64\lib" /TLBID:1 Here is the linker call for the project that uses the dll and has the run time error: /OUT:"E:\Users\misappsci\Documents\Projects\Aerie\host_x64\x64\Release\AerieLib.dll" /MANIFEST /LTCG:incremental /NXCOMPAT /PDB:"E:\Users\misappsci\Documents\Projects\Aerie\host_x64\x64\Release\AerieLib.pdb" /DYNAMICBASE "Qt5Core.lib" "Qt5Gui.lib" "Qt5Multimedia.lib" "yyy3D.lib" "sl_zed64.lib" "opencv_world310.lib" "cudart.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" /IMPLIB:"E:\Users\misappsci\Documents\Projects\Aerie\host_x64\x64\Release\AerieLib.lib" /DEBUG /DLL /MACHINE:X64 /OPT:REF /PGD:"E:\Users\misappsci\Documents\Projects\Aerie\host_x64\x64\Release\AerieLib.pgd" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /ManifestFile:"x64\Release\AerieLib.dll.intermediate.manifest" /OPT:ICF /ERRORREPORT:PROMPT /NOLOGO /LIBPATH:"C:\Qt\5.7\msvc2015_64\lib" /LIBPATH:"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0/lib/x64" /LIBPATH:"C:\Program Files (x86)\ZED SDK\dependencies\opencv_3.1.0/x64/vc14/lib" /LIBPATH:"C:\Program Files (x86)\ZED SDK\lib" /LIBPATH:"E:\Users\misappsci\Documents\Projects\yyy\x64\bin" /LIBPATH:"C:\Program Files\boost\boost_1_63_0/lib/x64/" /TLBID:1
    • UNSOLVED qwindows.dll, Qt5Gui.dll, Qt5Core.dll not unloaded anymore, a Qt bug?
      General and Desktop • qt5 windows dll bug loadlibrary • • Niels Dekker  

      10
      0
      Votes
      10
      Posts
      5480
      Views

      Please have a look at the bug report I just submitted on this issue: https://bugreports.qt.io/browse/QTBUG-61059
    • UNSOLVED Include CR95HF dll in Qt Quick
      QML and Qt Quick • dll library usb • • Salydan  

      11
      0
      Votes
      11
      Posts
      2945
      Views

      You're welcome ! Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)
    • UNSOLVED About how to use the API correctly
      General and Desktop • dll lib • • MartinChan  

      4
      0
      Votes
      4
      Posts
      993
      Views

      @MartinChan You need to find out what compiler was used to build the library
    • SOLVED How to correctly deploy a modular Qt-Application on windows? (Contains: can not display svg-files in qml)
      Installation and Deployment • windows dll deployment svg windeployqt • • fer-rum  

      3
      0
      Votes
      3
      Posts
      1874
      Views

      @hskoglund said in How to correctly deploy a modular Qt-Application on windows? (Contains: can not display svg-files in qml): You could check the list of directories from where Qt tries to load its plugins by calling QCoreApplication::libraryPaths() That looks like a cunning plan :) <insert Blackadder reference here> I played around with this information a bit and made the following observations: Dumping the library paths in the constructor of my module indeed lists only the module directory, but not the application directory. So I guess you mean the relative path when you say Your module_ui.dll inherits the search path from the .exe for .dlls Adding the application folder to the library search path within the module constructor solves the issue without the need for double-deployment Thanks a lot, you brought me on the right track.
    • UNSOLVED How To Use Dll Files in Program
      General and Desktop • dll files program • • M4RZB4Ni  

      5
      0
      Votes
      5
      Posts
      1640
      Views

      Ignoring the Qt specific aspects of integrating a 3rd party library for just a moment, I would like to ask - are you implicitly or explicitly linking these DLLs into your application? Implicitly linking means (in case you don't know) means your code links with a *.lib that makes yours application need the DLL in order to run but also means you don't have to locate the functions you want to use in the DLL when your code runs. This is most likely the way you plan to use these DLLs. Explicitly linking means you don't do anything with the DLL until your application starts up - at that point your application code manually loads the DLL into its process space and your application code looks up the actual functions you want to use in the DLL. This is a very flexible way to use DLLs but you're probably not doing this.
    • UNSOLVED Using taglib on Windows
      General and Desktop • dll lib taglib tags • • DrageFabeldyr  

      3
      0
      Votes
      3
      Posts
      3130
      Views

      @raven-worx said: Once the compilation is finished it should at least have created a library linker file (.lib for MSVC) and a dll file (if you chose the "shared" option) ok, after command mingw32-make install i get this structure of files: C:\taglib\bin\ libtag.dll C:\taglib\bin\libtag_c.dll C:\taglib\bin\taglib-config.cmd C:\taglib\include\ taglib\ .h files C:\taglib\lib\pkgconfig\taglib.pc C:\taglib\lib\pkgconfig\taglib_c.pc C:\taglib\lib\ libtag.dll.a C:\taglib\lib\libtag_c.dll.a copy these files (maybe also the header files from the include folder) somewhere to your projects folder and add it to your project: QtCreator / manually so i copied libtag.dll, libtag.dll.a and taglib folder to D:\qtproject\myprojectfolder then added win32: LIBS += -L$$PWD/ -llibtag INCLUDEPATH += $$PWD/ DEPENDPATH += $$PWD/ to .pro file and #include "taglib/fileref.h" #include "taglib/taglib.h" #include "taglib/tag.h" to .cpp file and it works!! great!! thanx =))
    • SOLVED dll using static const char*
      C++ Gurus • dll static const • • koahnig  

      19
      0
      Votes
      19
      Posts
      6367
      Views

      @koahnig said: Thanks for your patience and continued support. I have found the problem. That's great. I'm glad I was able to contribute. :) Unfortunately implementation files slipped into the compilation of the application. Ah, sneaky .cpps :) The warning text is misleading though, but it was actually showing the cause, duplicated declarations or better duplicated implementations. Sadly that's always the case with the linker. A linker is dumb as a shoe, it doesn't have any context or semantics to the code, it just reorders symbols and puts addresses, that's why linker error are so cryptic. :) I myself get into a hateful depression when I get the notorious "undefined vtable for ..." :D In any case, I'm glad it worked out. Cheers!
    • SOLVED How to use static link library in a new program?
      General and Desktop • dll static linking • • MartinChan  

      3
      0
      Votes
      3
      Posts
      1127
      Views

      Thx,and it is really simple to use add library guide to add in the .dll and .lib that I want. And what I found is that maybe most of situations didn't have a .dll file for debug mode(which you can simply tell from it if has a -d suffix),but you can use the given ones in a release mode. thx again.
    • SOLVED Deploying Qt 5.6 on Windows problem
      General and Desktop • windows deployment dll • • Joel Bodenmann  

      8
      0
      Votes
      8
      Posts
      7485
      Views

      @Joel-Bodenmann Just an FYI for people that may stumble upon this topic. windeployqt picks the DLLs based on the PATH environment variable. That means putting $QT_INSTALL_DIR\Tools\mingw810_64\bin\ instead of C:\MinGW\bin will lead to windeployqt picking the DLLs that come with Qt. This approach requires removing the C:\MinGW\bin path from the environment variable. If you need to keep it there, maybe just put them both there and play with the order.
    • SOLVED Creating a shared library for both managed and unmanaged environment
      General and Desktop • dll activeqt net c++cli • • MuratUrsavas  

      4
      0
      Votes
      4
      Posts
      1490
      Views

      I'd like to include some final information to make this thread history. I had to use different classes (structs) for managed and native sides since they were not the same for the C++/CLI compiler. But I used a simple trick to define ingredients of these structs. This way I was able to sync the information between the managed and native world. Of course I had to use some wrapper code since the managed and native structs were living on different worlds.
    • UNSOLVED Inject .dll into Qt and call functions
      General and Desktop • dll • • Johannes S  

      31
      0
      Votes
      31
      Posts
      10266
      Views

      @patxi Its quite ok but the poster has not been online for 10 month so you might have better luck just posting a new question regarding GammaRay and see what happens :)
    • UNSOLVED App deployment error
      Installation and Deployment • c++ error qt 5.4 deployment dll • • Djolas2001  

      19
      0
      Votes
      19
      Posts
      5324
      Views

      @hskoglund Thank you very much, now it works. :)
    • SOLVED Using DLL in Qt project
      General and Desktop • dll • • Joel Bodenmann  

      7
      0
      Votes
      7
      Posts
      5299
      Views

      @kshegunov Thank you very much for your reply! That actually worked out. @asanka424 Thank you for your suggestion. When I started trying to get this working that was the first thing I tried and I didn't succeed, sadly. However, I started a new project completely from scratch and now it works just fine using the method your described. Thank you for your help guys, highly appreciated!
    • UNSOLVED Communication between a QObject and imported functions
      General and Desktop • dll qobject • • Suji  

      11
      0
      Votes
      11
      Posts
      2568
      Views

      @jsulm Thanks ! It's clear ! Yes, sorry for the lack of clarity, but it's as hard to explain for me as it's hard to understand for you :) By the way, thank you for your help, and your patience ! Have a nice day
    • UNSOLVED Acting on a QCamera object with an external function
      General and Desktop • dll qcamera • • Suji  

      15
      0
      Votes
      15
      Posts
      3236
      Views

      Well, the first goal is not resolved, I still have to connect my extern functions with my QCamera object. I'll try to change the approach, throwing the QCamera object, and use QMediaService (tanks for the idea @kshegunov). If someone has an idea for me, dont hesitate. Have a nice day !
    • SOLVED Loading function from a DLL
      General and Desktop • dll libraries loadlibrary • • Suji  

      16
      0
      Votes
      16
      Posts
      9669
      Views

      @Ni.Sumi It's no hassle at all. I've corrected a grammar mistake in the post, but the meaning should remain the same. :) Kind regards.
    • SOLVED OpenCV project from Linux to .exe
      General and Desktop • dll opencv mingw build error • • Edwin  

      11
      0
      Votes
      11
      Posts
      3026
      Views

      Use the "Topic Tool" button :)
    • SOLVED COM object + dll
      General and Desktop • c++ dll com • • Psy_Duck  

      6
      0
      Votes
      6
      Posts
      2614
      Views

      the problem is solved or not?