Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building Qt 5 seems to ignore PKG_CONFIG_PATH
Forum Updated to NodeBB v4.3 + New Features

Building Qt 5 seems to ignore PKG_CONFIG_PATH

Scheduled Pinned Locked Moved Solved Installation and Deployment
6 Posts 2 Posters 3.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    poncho524
    wrote on last edited by A Former User
    #1

    I'm trying to build Qt 5 on Linux against some other libraries not in the standard path.

    For example, I build some dependencies and /tmp/xcb. I set PKG_CONFIG_PATH to /tmp/xcb/lib/pkgconfig. But Qt's "configure" always bombs with

    "ERROR: Feature "xcb" was enabled, but the pre-condition 'libs.xcb failed."

    When I look at config.log, it shows that pkg-config did not find xcb. But from the command prompt it finds it just fine when PKG_CONFIG_PATH is set.

    So what gives? Does 'configure' blank out and ignore that env var?

    Any suggestions?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Which version of Qt 5 are you trying to build ?

      In between you can add the library and include path using the -L and -I options to configure. Just one thing to take into account, you need a space between the option and the path in this case.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      -1
      • P Offline
        P Offline
        poncho524
        wrote on last edited by
        #3

        version 5.8.0

        I tried -L and -I with "configure", but still saw the same error in config.log stating that when it tries to compile the xcb.c test it cannot find <xcb/xcb.h>

        I see in config.log that it uses pkg-config to try to find xcb, but according to the log pkg-config doesn't see it.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          poncho524
          wrote on last edited by
          #4

          Found the issue:

          I ran "configure" then fixed some paths, but re-running "configure" didn't pick it up.

          Apparently you have to run "configure" with "-recheck-all" to force it to go thru the config checks again, otherwise it relies on cached results.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Indeed it does.

            So you go it to compile as you wanted ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • P Offline
              P Offline
              poncho524
              wrote on last edited by
              #6

              Yes, thank you.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved