Navigation

    Qt Forum

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

    • UNSOLVED how to pass pkg-config static option with .pro file
      General and Desktop • static linking pkg-config • • PhysicsX  

      2
      0
      Votes
      2
      Posts
      29
      Views

      Hi, I am not aware of an equivalent. One thing you can do is to manually call pkg-config and add the output to LIB.
    • UNSOLVED Qmake cannot find libraries
      Installation and Deployment • linux qt creator libraries pkg-config • • dhaus  

      4
      0
      Votes
      4
      Posts
      934
      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 Qt 5.15.1 for Raspberry Pi 4 (cross)
      Mobile and Embedded • cross-compiling raspberry pi 4 pkg-config • • mneg  

      5
      0
      Votes
      5
      Posts
      1919
      Views

      FYI: the issues vanished with the previous version Qt 5.14.2 and the 7.5.0 Linaro toolchain (but not the others!). Suddenly the tests are being run. My cross development toolchain now is up and running, however, I still find it odd that there are no error messages in Qt's build system.
    • UNSOLVED How to solve a missing pkg-config command
      Tools • pkg-config mac-os • • a.burks  

      14
      0
      Votes
      14
      Posts
      20163
      Views

      I posted the issue in GitHib. Unfortunately I can't understand the answer. Can someone help? Building a Mer/Sailfish OS project within Qt Creator relies on the definition and use of qtc_* macros inside the .spec file, which is not the case of lipstick library. Opened #122 to let mb2 issue warning when qtc_* macros are not used in the .spec file.
    • UNSOLVED How to use qmakes packagesExists function
      Tools • qmake pkg-config • • kDohmen  

      2
      0
      Votes
      2
      Posts
      716
      Views

      Hi, What version of Qt are you using ? On what platform ? By the way, is it just a typo or are you using packagesExists ? (additional s)
    • qt + android + pkg-config: can not find gstreamer-android library
      Mobile and Embedded • qt5.5 gstreamer pkg-config • • tools  

      5
      0
      Votes
      5
      Posts
      3593
      Views

      @Huulivoide With that set I get this output: [tools@steinwurf-124 build-qtandroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug]$ /home/tools/Qt/5.5/android_armv7/bin/qmake -spec android-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -o Makefile ../qtandroid/qtandroid.pro Project ERROR: gstreamer-1.0 development package not found
    • UNSOLVED PKCONFIG does not work with Qt - Trying to link QtGStreamer-1.0
      General and Desktop • pkg-config qtgstreamer • • tools  

      9
      0
      Votes
      9
      Posts
      5269
      Views

      I was having the same issue. I found that using the "LIBS" variable, instead of using: "CONFIG += link_pkgconfig PKGCONFIG += ..." worked for me. So you put "LIBS += -lQt5GStreamer-1.0 -lQt5GStreamerUi-1.0" and whatever other libraries you need. If the library files are in an unusual place, you can use "LIBS += -L" followed by the directory. I'm not sure if it matters, but I'm using QMake version 3.0 and Qt Creator 4.0.0.
    • Where does Qt-Creator get the "System Environment" from?
      Installation and Deployment • path pkg-config • • hackdev  

      1
      1
      Votes
      1
      Posts
      1015
      Views

      No one has replied