Results 1 to 3 of 3

Thread: does qt support pkg-config

  1. #1
    Join Date
    Nov 2008
    Posts
    33
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question does qt support pkg-config

    Hi
    I'm starting to work on a package that uses qt (I'd like to handle both qt3 and qt4); I need to use autotools, and didn't find any good qt detection macros around...
    On my systems I found qt-mt.pc installed (and some other for Qt4), that can be used with pkg-config and autoconf;
    however, I read on some forums that these files are not part of the standard qt installations... is that true?
    Does qt support .pc files for pkg-config?

    thanks in advance
    Lorenzo

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: does qt support pkg-config

    Qt itself doesn't produce pkg-config files, as far as I know, so you can't assume they will be present on all systems where Qt is deployed. Generally it is better to check for qmake (or qmake-qt4). There is a switch (-v) that will return you the version information.

  3. #3
    Join Date
    Nov 2008
    Posts
    33
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: does qt support pkg-config

    Quote Originally Posted by wysota View Post
    Qt itself doesn't produce pkg-config files, as far as I know, so you can't assume they will be present on all systems where Qt is deployed. Generally it is better to check for qmake (or qmake-qt4). There is a switch (-v) that will return you the version information.
    I've installed the qt 4 version from sources under linux and it installs also pkg-config file;
    however, the binary version for windows does not...

Similar Threads

  1. Installation Problem
    By QbelcorT in forum Installation and Deployment
    Replies: 4
    Last Post: 22nd April 2010, 09:04
  2. Cannot configure -platform win32-msvc2008, no nmake.exe
    By Jason Hamilton in forum Installation and Deployment
    Replies: 3
    Last Post: 1st September 2008, 10:05
  3. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  4. Qt-4.4.0 installation error in linux
    By babu198649 in forum Installation and Deployment
    Replies: 4
    Last Post: 27th May 2008, 14:35
  5. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 09:02

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.