Navigation

    Qt Forum

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

    • UNSOLVED Qmake cannot find libraries
      Installation and Deployment • linux qt creator libraries pkg-config • • dhaus  

      4
      0
      Votes
      4
      Posts
      158
      Views

      The PKG_CONFIG_PATH is an environment variable so you need to add it before running qmake. So set it through Projects > Build Settings > Build Environment in QtCreator or set it through terminal before running qmake manually in terminal. Then add following lines in your .pro file: mac { #if you need to specify PKG_CONFIG = /usr/local/bin/pkg-config } #someone says this need in some Qt versions but not need in my Qt 5.12.12 QT_CONFIG -= no-pkg-config CONFIG += link_pkgconfig PKGCONFIG += protobuf \ grpc \ grpc++ I can't find a way to set environment variable in .pro file. Can you do it?
    • UNSOLVED Why creating QAndroidJniObject from jobject fails without error?
      Mobile and Embedded • android libraries java shared library jni • • advm  

      2
      0
      Votes
      2
      Posts
      225
      Views

      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.
    • UNSOLVED Adding github web URL of libraries to Qt Creator
      3rd Party Software • libraries github curl include path curlpp • • JCSB  

      2
      0
      Votes
      2
      Posts
      602
      Views

      Hi, Did you just clone the curl sources ? If so the you have to build it before you can use it.
    • UNSOLVED How to set a link to a library in the “Link Binary With Libraries” list from a .pro file
      General and Desktop • qt creator ios libraries xcode link • • Wargos  

      4
      0
      Votes
      4
      Posts
      274
      Views

      It does not work with qmake and I would rather search the bug in the lib you link against.
    • SOLVED Implementing plugin dependencies
      General and Desktop • linux plugins libraries dependencies linuxdeployqt • • Martyn McFarquhar  

      13
      0
      Votes
      13
      Posts
      633
      Views

      The only drawback is that 3rd-party modules cannot depend on one another unless they are submitted for inclusion in the core pool of modules. But it seems like this is just the price to pay for this kind of system? Sorry for the long delay, I was traveling and had no time to actually look at the forum. Yes, I would say that your summary is correct, and in that light I'd say what @VRonin had suggested as a way to build up the dependencies is probably best. That is - you have a set of core libraries that provide whatever they provide (which was what @SGaist mentioned in passing) and you stick to runtime loaded plugins being self-contained units that can't and/or won't depend on one another.
    • SOLVED Importing libraries and including them still gives undefined references
      General and Desktop • libraries • • RekTekk249  

      6
      0
      Votes
      6
      Posts
      309
      Views

      @RekTekk249 said in Importing libraries and including them still gives undefined references: Also, I heard of Qt::mkdir, but apparently it's doesn't have good performances micro-optimization - you call it once... it's just not worth the trouble.
    • UNSOLVED How to Cross Compile QT5 Libraries
      Mobile and Embedded • arm libraries cross-compile cross-compiling crosscompile • • closx  

      4
      0
      Votes
      4
      Posts
      483
      Views

      Hi, If you copy the files over your target respecting the same folders as your desktop machine, then you won't have anything special to do.
    • SOLVED Cannot mix incompatible Qt library
      General and Desktop • linux sql libraries console incompatible • • Maikie130  

      13
      0
      Votes
      13
      Posts
      3833
      Views

      @Maikie130 If you have many tools, you can toss them all in the bin dir of one big AppDir made by linuxdeploy. For example, /opt/maiki/usr/bin and everything in that bin dir will get set with rpath by linuxdeploy to look for libraries in /opt/maikie/usr/lib, but nothing else on the system will get impacted by those libraries, so you don't have to duplicate but you can easily accumulate stuff in that appdir that is easy to move to your server. The qt plugin has binarties published, so you can just use that rather than building it from source. They use the same appdir style of bundling everything into an image, so you can just grab the binary, chmod it +x and use it.
    • UNSOLVED Adding default classes/files to QT Creator projects
      3rd Party Software • c++ libraries files default clases • • wilke18  

      2
      0
      Votes
      2
      Posts
      696
      Views

      @wilke18 please see here: http://doc.qt.io/qtcreator/creator-project-wizards.html
    • SOLVED HOW TO Read exceptions
      Installation and Deployment • qtcreator libraries linking exceptions • • Sillimon  

      9
      0
      Votes
      9
      Posts
      2385
      Views

      @JonB I think i won't be able to understand something more detailled and that answer the whole questions =) Thanks a lot, you ma real expert ! ;D
    • UNSOLVED Weird linking errors using Qt,ROS and cmake
      General and Desktop • cmake libraries link error ros • • wicked88  

      3
      0
      Votes
      3
      Posts
      2206
      Views

      Thanks ! Yes, i have some stuff that doesnt quite need to be there, but it doesnt hurt. I removed all possible linkings and made them "hardcoded". If i add blackflycam.cpp to the sources, therefore it is compiled, i get those errors. If i dont, all runs smooth. The thing is, the code that i replaced with that file, has the exact same includes and non of them are qt-related, so i dont know what the hell is going on here !
    • UNSOLVED How to use Mozilla NSS in QTt-Project (on Windows)?
      General and Desktop • windows libraries headerfile nss mozilla • • Opa114  

      12
      0
      Votes
      12
      Posts
      3156
      Views

      thanks :)
    • SOLVED LNK1104 after adding custom libaries
      Installation and Deployment • libraries lnk1104 • • TKowalski  

      3
      0
      Votes
      3
      Posts
      1160
      Views

      I guess I'll just use the Qt's implementations then. Thanks for the explanation though.
    • UNSOLVED Add shared libraries to my projects.
      General and Desktop • libraries shared library shared • • AlvaroS  

      4
      0
      Votes
      4
      Posts
      865
      Views

      @AlvaroS Please post your pro file. Nad is this lib built using the same compiler and for same architecture?
    • UNSOLVED Qt app with both Console and GUI components
      General and Desktop • gui libraries console • • tendim  

      5
      0
      Votes
      5
      Posts
      2960
      Views

      By the way, in QApplication's detailed documentation, you have an example of how start an application in "no-gui" mode.
    • UNSOLVED Failing to load VRPN Library
      General and Desktop • libraries lnk1104 vrpn virtual reality • • Turmolt  

      20
      0
      Votes
      20
      Posts
      5221
      Views

      This blog article might be of interest. Basically, you'll have to add the missing include path to the universal CRT.
    • SOLVED Loading function from a DLL
      General and Desktop • dll libraries loadlibrary • • Suji  

      16
      0
      Votes
      16
      Posts
      11155
      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 error: cannot find -lGL
      General and Desktop • ubuntu 14.04 debugging libraries qt5.5.1 error 1 • • fady_lahiru  

      3
      0
      Votes
      3
      Posts
      1144
      Views

      @SGaist thank you so much.I solved problem by changing setup file
    • Problem with QTimer and QtCore
      General and Desktop • qtimer libraries qtcore • • axel_av  

      3
      0
      Votes
      3
      Posts
      1171
      Views

      Hi and welcome to devnet, In addition to @mrjj, can you show the exact error you have ?
    • can't link ffmpeg 2.7 dev lib and Include folder inside Qt Development
      General and Desktop • libraries lib link licence libc++ • • Atdhe  

      11
      0
      Votes
      11
      Posts
      4188
      Views

      Solved -> i adde the avcodec_56.dll and other ffmpeg .dll to my .exe folder and that worked. Thanks a lot for help.
    • Qt executables run without error, but nothing displays
      Mobile and Embedded • cross compile arm ubuntu 14.04 libraries vmware zynq hello world zedboard qt 4.7.3 xilinx • • jkern  

      12
      0
      Votes
      12
      Posts
      5448
      Views

      Looks good. Then, you should use gdb to debug your application
    • Error accessing GStreamer Library - Program excited with code 0xc0000135 when Debugging
      General and Desktop • gstreamer debugger libraries external • • dionis.  

      3
      0
      Votes
      3
      Posts
      2200
      Views

      Hi, You are probably missing the path to your GStreamer dlls in your PATH (the one in Qt Creator not for your system) You can modify it in the Run part of the Projects Panel
    • Linking to external libraries
      General and Desktop • libraries external • • 7voltcrayon  

      3
      0
      Votes
      3
      Posts
      736
      Views

      @SGaist Yes, I did
    • how to make QML shared Libraries and use it
      QML and Qt Quick • qml libraries • • Navaneeth  

      5
      0
      Votes
      5
      Posts
      3463
      Views

      @greenhouse , Thank you for your post, it was informative. I have made a lib using the following .pro file. TEMPLATE = lib TARGET = QMLLibrary # Input RESOURCES += qml.qrc CONFIG += qtquickcompiler #CONFIG += lib there are two QML files in qrc file. ClickButton.qml CustomButton.qml And i have .dll file QMLLibrary.dll in my release folder. Now how can i use the those qml components using the lib i generated. ?
    • Mac OS X, Qt Creator. Library not loaded. Need to set the path to find out *.dylibs
      Installation and Deployment • libraries mac os x runtime qt creator 3.3 • • mezmay  

      4
      0
      Votes
      4
      Posts
      4969
      Views

      That's normal, the PATH you modify in your terminal in not used by Finder. Take a look at this thread Might help. In any case, you should rather go to the Run part of the Project panel, there you can add these variables for your project so you won't be interfering with others.
    • How to install a external library in QT? I'm using Ubuntu, the library is NTL for big numbers
      The Lounge • linux ubuntu libraries ntl • • Nash  

      6
      0
      Votes
      6
      Posts
      2698
      Views

      See in the documentation here
    • Linking Error using WINAPI-Function "DisableProcessWindowsGhosting()" from User32.dll
      General and Desktop • qtcreator mingw libraries win32 • • JanGeorgi  

      2
      0
      Votes
      2
      Posts
      1820
      Views

      This function is only for desktop applications. It may not exist for embedded systems. I would check if the function exist before doing anything else. If you list the exported functions from USER32 and don't see it then this explains the linker error.
    • Problems using QT library with QT application
      General and Desktop • dll libraries • • helgur  

      9
      0
      Votes
      9
      Posts
      2909
      Views

      Hi, could you also pastebin the licensevalidator.cpp file? Would help to spot the problem...
    • Setting up lldb debugger in qt 5-4 on macos-x darwin-kernel-version-14-3-0
      Installation and Deployment • mac qt 5.4.1 debugging libraries • • shailesh83  

      3
      0
      Votes
      3
      Posts
      1883
      Views

      Thanks for replying to my Questions. Sorry for replying so late. Also regarding my question of using lldb as debugger it is not hitting the break point which i had set in QtCreator project. Now i tried installing gdb debugger it works,But for Non-Qt Project it fails to load the debugging symbols. But using LLDB debugger issue is still persists. Second Question of resolving the issue of Library not loaded by executable. I tried using : otool -L ABC.exe and it showed me the dependent .dylib and there path where missing But i tried changing it via install_name_tool -change <old> <new> <exe> But i got same error.Then i set the DYLD_LIBRARY_PATH inside my Qt Project under Project > Run>Run Environment > I hardcoded the path for Debug external Libraries.But how it work for Release external Library. I need to again amend that for Release Build ? I am currently using Xcode 6.3.
    • How to add qt libraries to embedded board.
      Mobile and Embedded • embedded linux libraries qt embedded librarypath • • Vijaykumar Ponugoti  

      15
      1
      Votes
      15
      Posts
      9416
      Views

      Cross-compiling is one thing, how did you install Qt on your board ?
    • Project in 64 bits including 32 bits library
      General and Desktop • libraries 64 bits 32 bits • • Franckynos  

      3
      0
      Votes
      3
      Posts
      1119
      Views

      Windows 8.1 Qt : 5.4.1 Compiler : MinGW 4.8 64 bits And My error : [ C:/Qt/qt-5.4.1-x64-mingw492r1-seh-rev1/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lApiUsb collect2.exe: error: ld returned 1 exit status ] 1 Problème : :-1: erreur : skipping incompatible C:/Users/franck/Documents/Qt/ULD_64/lib/ApiUsb.dll when searching for -lApiUsb Proble de link because this lib is 32bits
    • Building Qt Android app with an external lib (Assimp)
      Mobile and Embedded • android libraries libs • • Sergobot  

      7
      0
      Votes
      7
      Posts
      2801
      Views

      Almost yes. Now I use $$PWD/../3rdparty/assimp-3.1.1/include(2x '$') for all platforms, including Android, but I still can't build my .pro for it. For using $PWD I should set it to the right value in Projects->Build Environment, for each kit separately, right?
    • [Solved] MinGW can't find libraries when compiling static build.
      General and Desktop • build mingw library static libraries compile-errors libs • • LittleCat  

      7
      0
      Votes
      7
      Posts
      6556
      Views

      Well, I tried compiling the source from scratch with a fresh source, and it works like a charm for some reason. Problem Solved.