PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/arun/Documents/Subha/OCT_LIB_WORK/MCPTT_LIB_BUILD_OCT/PJSIP_LIB/lib/pkgconfig/
CONFIG += link_pkgconfig
PKGCONFIG += libpjproject
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/arun/Documents/Subha/OCT_LIB_WORK/MCPTT_LIB_BUILD_OCT/PJSIP_LIB/lib/pkgconfig/
CONFIG += link_pkgconfig
PKGCONFIG += libpjproject
To copy to clipboard, switch view to plain text mode
Problem 1.
You are asking Qt to run pkg-config and extract the compiler and linker options for a package called "libpjproject". That should be a come from a file called "libpjproject.pc" not "pkgconfig.pc".
Does this work outside qmake?
$ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/arun/Documents/Subha/OCT_LIB_WORK/MCPTT_LIB_BUILD_OCT/PJSIP_LIB/lib/pkgconfig/
$ pkg-config --libs libpjproject
$ pkg-config --cflags libpjproject
$ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/arun/Documents/Subha/OCT_LIB_WORK/MCPTT_LIB_BUILD_OCT/PJSIP_LIB/lib/pkgconfig/
$ pkg-config --libs libpjproject
$ pkg-config --cflags libpjproject
To copy to clipboard, switch view to plain text mode
Problem 2.
PKG_CONFIG_PATH is not an qmake variable, it is an environment variable that pkg-config might use, This needs to set outside qmake.
Bookmarks