[Qt-interest] qmake using PKGCONFIG on mac OS

Samuel Gaist samuel.gaist at edeltech.ch
Thu Oct 21 12:36:36 CEST 2010


Sorry, I replied in private...
On 21 oct. 10, at 11:56, Paulo Silva wrote:

> Hi,
>
> I was trying to compile projected that I created on my GNU/Linux box  
> on my mac box.
> I was hopping that pkg-config would also work on mac so I kept the  
> line:
> PKGCONFIG += opencv
>
> in my .pro file.
> Unfortunately while building the build command is not populated with  
> the pkg-config output, like include path and libs.
> However if I run pkg-config opencv --cflags --libs on the command  
> line, I do get the expected output.
>
> Am I doing something wrong here? I'm using qtsdk based on qt 4.7  
> with qt-creator rev b06f25f265, that I downloaded this week from qt  
> site.
>
> Thank you.
> Paulo
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
Hi,
Did you installed opencv from macport ?
If so you should update PKG_CONFIG_PATH to also go look in macport  
pkconfig directories

Hope this helps
Samuel



More information about the Qt-interest-old mailing list