All Questions
Tagged with static-libraries qt
133
questions
0
votes
0
answers
23
views
How to Build libQGLViewer as a Static Library (.lib) for MSVC in a Qt Project
I need help building libQGLViewer as a static library (.lib) instead of a DLL.
Context:
Project Setup: I'm working on a Qt project and we are migrating from MinGW to MSVC.
Qt Version: 5.15.2
Compiler:...
1
vote
1
answer
85
views
Is creating QML component libraries where all of the QML files are in the binary and the engine recognizes it just like QtQuick possible?
Is it possible to create QML component libraries where all of the QML files are in the binary and the engine still recognizes it just like QtQuick? So all of the QML files are bundled into the binary ...
0
votes
0
answers
133
views
How to use an external static library in a Qt project in Qt Creator?
I am trying to import an external static library in my project. I have added .h files in my Qt Project and added the static library via the import external library option.
test.h:
#ifndef TEST_LIB_H
#...
1
vote
2
answers
387
views
Static Go executable using Qt binding
Basically, I wrote a program using Go and the binding for the Qt gui library (github.com/bluszcz/cutego). I moved over to the cutego fork because the original binding (github.com/therecipe/qt) isn't ...
0
votes
0
answers
59
views
Strange behaviour of including Qt static library
I'm using Qt 5.15.2 mingw 64 bit.
I compile a very simple static library and then include it to another qt app.
The strange thing is while compiling the app qt call MOC for every included header from ...
0
votes
0
answers
230
views
Qt 6.2.2 static Don't detect printers in windows
I have been having an issue since upgrading to Qt6 my Qt static app don't detect printers on Qt 6 static on windows.
on mingw it complains that multimedia is not available.
on msvc2019 it compiles ...
2
votes
3
answers
1k
views
Runtime errors in trivial static build of Qt hello world application in MSYS2/MinGW
I am trying to build a trivial Qt application, shown below, for Windows using MSYS2/MinGW.
hello.cpp:
#include <QApplication>
#include <QWidget>
int main(int argc, char **argv)
{
...
0
votes
0
answers
339
views
Warning: QObject::startTimer: Timers can only be used with threads started with QThread
I am seeing this warning message when attempting to run timers inside of my shared library:
Warning: QObject::startTimer: Timers can only be used with threads started with QThread
This behavior was ...
0
votes
0
answers
259
views
Why the same C++ library has much smaller size in static build than shared build, and static is not working while shared works?
I have problem when I try to use C++ library in Android studio project.
I am using statically built Qt 5.14.2 for Android.
I have Qt library project which has only 1 class with this 2 functions:
...
0
votes
1
answer
2k
views
how to use a shared library which includes another shared library in c++
I have a c++ program, which contains two classes. one of them is using libssh and some of its functions and another one is for calculating cpu usage. there is a link of how I a built and added libssh:...
0
votes
0
answers
145
views
Does compiler make a difference between static and dynamic libraries (unix, C++,Qt creator)?
this is my first post on stack overflow!
I have a problem I am using Qt creator and my program uses libcpprest and I currently have (dynamic) one on my system.
i checked that with ldconfig -p | grep ...
1
vote
1
answer
2k
views
Qt static libraries undefined reference
I have this situation:
libA.a that has no dependencies
libB.a that depends on libA.a
libC.a that depends on libA.a
in B.pro i have
LIBS += -lA
in C.pro i have
LIBS += -lA
in app.pro i have
LIBS ...
0
votes
2
answers
774
views
Static libraries in Qt 5.14 MinGW toolchain? (default Qt installation)
Just now I noted that the MinGW Toolchain that comes with the default Qt installation, at least Qt 5.14, comes with a lib directory with libQt5*.a files. Are those files static libraries?
I think so ...
0
votes
0
answers
234
views
application "crashes" after statically linking library
I try to statically link a library to my application in Qt.
Unfortunately, it does not work on Windows but only on Linux.
I want to add the IAU_SOFA libraries.
Therefore, I first use the Qt ...