PDA

View Full Version : [SOLVED] QT and pkg-config



StOoZ
April 10th, 2008, 08:03 PM
hello developers!

I've installed the latest QT from source, now all the .pc files are installed in :

/usr/local/Trolltech/Qt-4.3.4/lib/pkgconfig
but thats not good, since whenever I use :

pkg-config --list-all
the QT is not listed, not I can get info for each and individual .pc file from the QT by going to its location, but I want it to be like the rest of the files, which are located :

/usr/lib/pkgconfig
I tough of just copying them to there, but I think there a some variables to change, which I dont know how.

WW
April 10th, 2008, 08:25 PM
You can add to the pkg-config search path with the environment variable PKG_CONFIG_PATH. E.g:


$ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/Trolltech/Qt-4.3.4/lib/pkgconfig

keratos
April 10th, 2008, 08:34 PM
or you could have changed the --prefix when installing!

StOoZ
April 10th, 2008, 09:09 PM
Thank you both!!

keratos
April 12th, 2008, 07:26 AM
did it work. if so how about closing the thread.