Navigation

    Qt Forum

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

    • UNSOLVED Duplicate symbol: blake2b when linking with libsodium
      Qt for WebAssembly • static wasm link error libsodium • • Mesrine  

      2
      0
      Votes
      2
      Posts
      80
      Views

      I noticed that ed25519 do not need blake2b. A temporal solution was to remove the object "libsodium_la-blake2b-ref.o" from libsodium.a by using ar dv libsodium.a libsodium_la-blake2b-ref.o I can not remove "qcryptographichash.cpp.o" from libQt6Core.a because I use that on other libraries.
    • SOLVED building static Qt6 results in ABI "unknown"
      General and Desktop • qt6 build static • • mzimmers  

      9
      0
      Votes
      9
      Posts
      222
      Views

      This has been fixed in a development release of Creator 8.0.0 beta 2, and can be found here. Marking as solved. Thanks for the help.
    • UNSOLVED Mac, Static lib, Dynamic lib Lost signals!
      General and Desktop • mac static dynamic dynamiclibrary staticlibrary • • Dariusz  

      13
      0
      Votes
      13
      Posts
      375
      Views

      Libraries that are shared between plugins and executable shall be shared and not static. Otherwise you will end up with multiple definition of the static meta object of your QObject based classes which is not good.
    • UNSOLVED QT Problem -Can i make my ui pointer static ?, because i want to use it in a static function
      General and Desktop • c++ qt 5.4 static static method • • learnist  

      4
      0
      Votes
      4
      Posts
      351
      Views

      @learnist No, you can't change over something to do with instances to become static. You might create some static/global pointer for yourself and set it to point to a particular instance of a window or a widget or your textbox or something. Or, you might "walk" your windows to find what you are looking for, starting from, say, static QWidgetList QApplication::topLevelWidgets().
    • SOLVED Resetting Plots in QCustomPlot
      General and Desktop • static qcustomplot qelapsedtimer • • SpaceToon  

      6
      0
      Votes
      6
      Posts
      888
      Views

      Okay, I could fix the issue. The problem was my statement for resetting the plot. I used the following: for( int g=0; g<3; g++ ) { ui->plot_acceleration->graph(g)->data().clear(); } ui->plot_acceleration->replot(); Then I tried the following like it is mentioned here: pq_plot->graph(g)->data().data().clear(); But then the error occurs: error: member reference type 'QCPDataContainer<QCPGraphData> *' is a pointer; did you mean to use '->'? Then I used the autocorrection of Qt creator ('->' instead of ' . ') for( int g=0; g<3; g++ ) { ui->plot_acceleration->graph(g)->data().data()->clear(); } ui->plot_acceleration->replot(); And it is working now. Still don't know what exactly happens with the plot, when I use the first statement... When I use the first statement the plots are also gone after clicking on reset...
    • SOLVED Difficulties connecting signals with slots (static members)
      General and Desktop • static slots signals lua • • SnuggleKat  

      9
      0
      Votes
      9
      Posts
      953
      Views

      @SnuggleKat said in Difficulties connecting signals with slots (static members): Just didn't know signals mustn't be defined... If you mean "implemented" by "defined", then I wrote this in my first reply :) Yes, you dont implement signals. You just set the signal signature in your header file. After that, you can emit your signal to notify connected classes (-> slots)
    • SOLVED Storing QString constants without global static non-pod values
      General and Desktop • qstring static string global non-pod • • Linus Jahn  

      5
      0
      Votes
      5
      Posts
      5306
      Views

      Thanks for your replies. It probably doesn't matter at all, because the only result will be that the library is a few micro seconds faster at runtime / at load time. The reason is probably rather a psychological one than a real performance issue. -- I'd like to write clean code, use the ideal way and don't want to see warnings when running i.e. clazy on my code. When looking at performance there are probably other issues that have a greater impact on the performance. I actually tested it now: Test 1: Runtime usage #include <QString> const char *xmlns = "urn:ietf:xml:ns:xmpp-sasl"; // OR: const QString xmlns = QStringLiteral("urn:ietf:xml:ns:xmpp-sasl"); int main() { for (int i = 0; i < 1e9; i++) { // Option A: QString text(xmlns); // Option B: appending 'a' QString xmlnsPlusA = QString(xmlns) + 'a'; } } QStringLiteral char* A: QString( ), QStringLiteral is implicitly-shared 0.5 s 52 s B: appending 'a' 27 s 91 s -> The relative difference is high, but the absolute numbers are not relevant: You need to convert about 500 kB (about 20k comparable strings), so that this takes more than 1 ms and gets a performance problem in a GUI application. Test 2: Start-up time I also created a test binary with 10k global static constants (all with the same content): QString (cast from char *) QStringLiteral char * compile time 3 s 3.5 min < 1 s binary size (stripped) 410 kB 1270 kB 320 kB time to run (10k times) 33 s 23 s 19 s I guess the QStringLiteral binary takes longer to run, because it is larger and only partially, because of the non-POD CTORs. -> Using QStringLiteral has a slightly larger impact on the execution time than I've expected, but this is still not relevant since you usually have less than 10k global static strings and you only load the binary once instead of 10000 times. As long as you're not developing for an arduino this has probably no relevance. As expected the usage of QStringLiteral makes the binary a bit larger, the start-up time a little little bit larger, but is faster compared to casting from ascii everytime at runtime. I'll see if I can do anything with QArrayData, not because it's important, just for fun.
    • UNSOLVED couldnt build static Qt 5.13.1
      Installation and Deployment • linux error build static ubuntu 16.04 • • AngryD  

      1
      0
      Votes
      1
      Posts
      354
      Views

      No one has replied

    • UNSOLVED how to compile qt static with open ssl
      General and Desktop • openssl static compiler error • • SherifOmran  

      22
      0
      Votes
      22
      Posts
      9198
      Views

      @SherifOmran said in how to compile qt static with open ssl: PATH If you really need to change that variable, then do it only in the terminal you use to build your stuff. It's never a good idea to add the path to such sensitive libraries system wide as you might break unrelated applications.
    • UNSOLVED undefined reference to qt_static _plugin
      General and Desktop • plugin qt 5.5 static • • NIXIN  

      14
      0
      Votes
      14
      Posts
      3067
      Views

      If it's solved, Please set it to "Solved" from unsolved.
    • SOLVED Qt Static Build Configuration
      General and Desktop • static static build msvc2015 nmake 5.10.1 • • ed-wright  

      4
      0
      Votes
      4
      Posts
      677
      Views

      @ed-wright Not sure, but probably you have to do a "nmake distclean" in between or it finds your license information. However, this is the opensource forum. You would need to approach the commercial, they have to able to give the proper answer.
    • SOLVED Static Builds not Working
      General and Desktop • static static build msvc2015 nmake 5.10.1 • • ed-wright  

      19
      0
      Votes
      19
      Posts
      5935
      Views

      Super good work. Thanks for updating on the way. will be helpful for others.
    • UNSOLVED Qt 5.9.1 static build Linux
      General and Desktop • static qt5.9.1 • • Tikani  

      11
      0
      Votes
      11
      Posts
      12417
      Views

      @SGaist you save me , thanks man
    • 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
      7715
      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
    • Qt 5.7.0 Static + QtCrypto = compile error
      General and Desktop • windows static qt5.7.0 vc2013 qtcrypto • • qDebug  

      2
      0
      Votes
      2
      Posts
      975
      Views

      Hi, I haven't done any static compilation of QCA but there's a QT_IS_STATIC in the src CMakeLists.txt. Might be worth playing with it. Hope it helps
    • UNSOLVED Import Header Files in the .pro file
      General and Desktop • static header data dllimport c2491 • • Michael.R.LegakoL-3com.com  

      2
      0
      Votes
      2
      Posts
      1462
      Views

      Hi @Michael-R-LegakoL-3com-com, I think a better approach, is to use a macro to apply the dllimport/export, and then enable that macro in the library only. For example, if you look at qmake's simple_dll test example, the simple.h header contains: #ifdef SIMPLEDLL_MAKEDLL # define SIMPLEDLL_EXPORT Q_DECL_EXPORT #else # define SIMPLEDLL_EXPORT Q_DECL_IMPORT #endif class SIMPLEDLL_EXPORT Simple { ... } Then the simple_dll.pro file contains: DEFINES += SIMPLEDLL_MAKEDLL So, this way, when the library is being built (via simple_dll.pro), then class is dllexport'ed. But when other code uses that same header (in doesn't define SIMPLEDLL_MAKEDLL) then that same class is dllimport'ed instead. Typically, you end up doing this sort of thing to many classes in a single library, so rather than having the #ifdef ... #define ... etc in each header file, it often ends up being written once in a "global" project header of some kind. For example, Q_CORE_EXPORT gets defined in qglobal.h, then used throughout all of the exported core Qt class headers. Also see: When creating a library with Qt/Windows and using it in an application, then there is a link error regarding symbols which are in the library Cheers.
    • UNSOLVED generate an exe on QT5.2 and OpenCV 3.1 in static mod.
      General and Desktop • opencv static qt5.2 libwebp • • ammarmoez  

      6
      0
      Votes
      6
      Posts
      2507
      Views

      @SGaist yes all opencv files is included in the path. After some research in log file, i think I have a problème with the génération of libopencv_imgcodecs310 and libopencv_imgproc310 files. I'll keep you posted.
    • SOLVED Entering Turkish character from keyboard..
      General and Desktop • static keyboard • • zeroptr  

      9
      0
      Votes
      9
      Posts
      2151
      Views

      I think problem coused from dependent dev libraries... sudo apt-get build-dep qt5-default solved the problem..
    • UNSOLVED Building/Running static plugin?
      Installation and Deployment • plugin static static build • • RyanB  

      2
      0
      Votes
      2
      Posts
      1790
      Views

      use macro: Q_IMPORT_PLUGIN(QLinuxFbIntegrationPlugin);
    • Error linking under Windows
      General and Desktop • static compile link • • jocala  

      10
      0
      Votes
      10
      Posts
      2580
      Views

      What does adbshield_plugin_import.cpp contain ?
    • UNSOLVED Warning message when making static build
      Installation and Deployment • static warning • • gabor53  

      1
      0
      Votes
      1
      Posts
      704
      Views

      No one has replied

    • UNSOLVED Qt 5.5.0 static build fail on command mingw32-make install
      General and Desktop • error build static mingw32 x64 • • 0x1337  

      3
      0
      Votes
      3
      Posts
      1918
      Views

      Hi, Do you mean that if you build with MinGW-32 it's all working fine but not with MinGW-64 ?
    • SOLVED Problems with shadow builds and static release linkage
      General and Desktop • static release linker shadow build • • qtacc32  

      3
      0
      Votes
      3
      Posts
      1320
      Views

      Whew! I think I got it... The mistake was to use the includes of shared \build_dev when building in release. There is only one little difference which made everything work: qconfig.h! It defines QT_STATIC in the static \build_app1 ... The debug config of the project created by the Qt Add-in has to be adjusted a little though: Include directory $(QTDIR$)\include =>...\build_dev\qtbase\include. Lib directory $(QTDIR$)\lib =>...\build_dev\qtbase\lib. The project still uses \build_app1\qtbase as Qt Version. That way, the Debug build looks for includes and libs in \build_dev while the Release build looks in \build_app1. And the .lib symlinks are not necessary anymore, I just kept the bin directory symlink. Just in case someone else wants to do something like this...
    • ANGLE with static 5.5 build
      General and Desktop • qt 5.5 static static build opengl es angle • • dbrunner  

      2
      0
      Votes
      2
      Posts
      1611
      Views

      Another interesting development: I tried running on another machine with the Qt toolchain installed, and the program worked. So it appears it is still reading something from the filesystem that is not on a regular Windows machine, but I don't know what that might be. I did package all the qmldir files needed for Qt Quick to work.
    • Link my Qt static library in to non Qt linux application
      General and Desktop • library static static linking static library 4.8 non-qt • • kumararajas  

      3
      0
      Votes
      3
      Posts
      1731
      Views

      But this time, I have a different error: /home/kumararajas/ti-sdk-am335x-evm-07.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: /home/kumararajas/Integrate_UI/G-CPU/lib/libuicorelib.a(uicontroller.o): undefined reference to symbol '__cxa_begin_catch@@CXXABI_1.3' /home/kumararajas/ti-sdk-am335x-evm-07.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: note: '__cxa_begin_catch@@CXXABI_1.3' is defined in DSO /home/kumararajas/ti-sdk-am335x-evm-07.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/../arm-linux-gnueabihf/libc/lib/arm-linux-gnueabihf/libstdc++.so.6 so try adding it to the linker command line /home/kumararajas/ti-sdk-am335x-evm-07.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/../arm-linux-gnueabihf/libc/lib/arm-linux-gnueabihf/libstdc++.so.6: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[4]: *** [bin/FireApp] Error 1 make[3]: *** [libraries] Error 2 make[2]: *** [libraries] Error 2 make[1]: *** [libraries] Error 2 This looks like standard library compatibility issue. Any thoughts on this?
    • Static Qt5.5 for MAC - qmake missing
      General and Desktop • qmake mac static • • metaDom  

      2
      0
      Votes
      2
      Posts
      1074
      Views

      Found it in /qtbase Nevertheless some modules were not compiled. I'm missing qtwebsockets, the Makefile is also missing. It worked just fine for Win32 platform. Any ideas?
    • QT build Static - Segmentation fault
      General and Desktop • qt5.5 deployment static • • Lays147  

      2
      0
      Votes
      2
      Posts
      1037
      Views

      @Lays147 Hey! How does your app looks like?
    • Aplicativo Windows com Quick.2 aparecendo tela branca em outros computadores.
      Portuguese • qml static resources static qt msys • • Dan Rosen  

      1
      0
      Votes
      1
      Posts
      627
      Views

      No one has replied

    • Mac OSX QT-Creator Static Library *.a (clang-Compiler) in Eclipse CDT (JNI) *.jnilib (cpp-Compiler) einbinden (Download Projekte)
      German • static cpp mac os x clang static library jni java jni eclipse cdt eclipse jnilib cdt llvm • • moozoom  

      1
      0
      Votes
      1
      Posts
      1056
      Views

      No one has replied

    • [solved] Trying to link my own static libarry
      General and Desktop • library static linking • • Tapsa  

      23
      0
      Votes
      23
      Posts
      5765
      Views

      Thank you. I'll be subclassing text/combo/check boxes as well.
    • Environment setup for building static qt
      Installation and Deployment • static windows 7 building qt msvc13 • • chebhou  

      3
      0
      Votes
      3
      Posts
      1244
      Views

      @SGaist thanks , I have actually compiled without the script no errors thought while compiling, but I'm not sure if the errors will popup when i start using the build, but it would be really useful for future builds also I'm compiling OpenCV , so here is my installation paths : DirectX SDK : C:\Program Files\Microsoft DirectX SDK (June 2010) Microsoft SDK : C:\Program Files\Microsoft SDKs MSVC : C:\Program Files\Microsoft Visual Studio 12.0 .NET : C:\Program Files\Microsoft.NET OpenSSL : C:\OpenSSL-Win32 Qt source : C:\Qt\5.4.1 thanks again for your time
    • [Solved] How can I compile my app statically?
      General and Desktop • static compile qt4.8.5 • • roseicollis  

      3
      0
      Votes
      3
      Posts
      956
      Views

      @SGaist Ok, thank you so much!
    • Linux: Linking with static Qt fails
      Installation and Deployment • linux static • • Chuck R  

      2
      0
      Votes
      2
      Posts
      1984
      Views

      I suppose I got it sorted by adding an -ldl flag in the FlightGear compile. Strangely enough, the first time I tried it it didn't work at all. I tried it again and it magically worked. Now I'm going to be building/rebuilding for the next several hours just to figure out how exactly I fixed it...
    • QT 5.4 Static not support Mouse , Kayboard , touchscreen !
      Mobile and Embedded • qt5 plugin arm static tslib mini210s • • lamp  

      2
      0
      Votes
      2
      Posts
      1202
      Views

      Solved add to .pro : CONFIG += plugin static QTPLUGIN += qtslib qevdevkeyboard qevdevmouse qevdevtablet qevdevtouch Run (active all input device): $./test -plugin tslib -plugin evdevmouse -plugin evdevkeyboard :-) Static Plugin
    • QT 5.4 - Mouse , Kayboard , touch not work on arm device
      Mobile and Embedded • qt 5.4 static qt 5 touchscreen tslib linuxfb mini210s • • lamp  

      3
      0
      Votes
      3
      Posts
      1912
      Views

      add -tslib and recompile qt and chart example but not solved ! ./configure -prefix /opt/installed/arm/QtEmbededd-5.4-static-tiny210/ -opensource -confirm-license -no-xcb -xplatform linux-arm-gnueabi-g++ -nomake examples -feature-THREAD -feature-CONCURRENT -feature-SOUND -feature-EFFECTS -no-openssl -lpthread -optimized-qmake -no-cups -qt-zlib -static -qt-libjpeg -qt-libpng -qt-sql-sqlite -qpa linuxfb -linuxfb -tslib export TSLIB_FBDEVICE='/dev/fb0' export TSLIB_TSDEVICE=/dev/touchscreen-1wire export TSLIB_PLUGINDIR='/usr/lib/ts' export TSLIB_CONFFILE='/etc/ts.conf' export TSLIB_CALIBFILE='/etc/pointercal' export TSLIB_CONSOLEDEVICE='none' export TSLIB_TSEVENTTYPE='INPUT' export QT_DEBUG_PLUGINS=1 cat /dev/touchscreen-1wire | hexdump 0000000 0fff 0fff 07c6 8629 07c5 8626 07c5 8626 0000010 0fff 0fff 0966 85bb 096c 85b9 0968 85a8 0000020 0968 85a8 0fff 0fff 0964 85ba 0938 85a9 0000030 08ba 8571 085d 8559 07a1 8573 0736 8599 $chartthemes -platform linuxfb -plugin tslib QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed QFactoryLoader::QFactoryLoader() ignoring "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.2" since plugins are disabled in static buils QFactoryLoader::QFactoryLoader() ignoring "org.qt-project.Qt.QPlatformInputContextFactoryInterface" since plugins are disabled in static builds QFactoryLoader::QFactoryLoader() ignoring "org.qt-project.Qt.QGenericPluginFactoryInterface" since plugins are disabled in static builds QFactoryLoader::QFactoryLoader() ignoring "org.qt-project.Qt.QStyleFactoryInterface" since plugins are disabled in static builds
    • [SOLVED] Monitoring an object changed asynchronously by a Callback function
      General and Desktop • signal static slot callback • • sirop  

      11
      0
      Votes
      11
      Posts
      4349
      Views

      @SGaist Thanks. Now I have a more clear picture about signals.
    • [Solved] MinGW can't find libraries when compiling static build.
      General and Desktop • build library mingw static libraries compile-errors libs • • LittleCat  

      7
      0
      Votes
      7
      Posts
      6755
      Views

      Well, I tried compiling the source from scratch with a fresh source, and it works like a charm for some reason. Problem Solved.
    • [Solved] Static Build doesn't run on other PCs (Windows)
      General and Desktop • qml windows build static • • Armalyte  

      2
      0
      Votes
      2
      Posts
      1226
      Views

      As it turns out, I needed to add the "QtQuick" and "QtQuick.2" folders in the same directory as my *.exe file. This wiki page brought me on the right path.