On Wednesday 05 June 2013 21:30:45 Nikos Chantziaras wrote:
[...]
How about using pkg-config --variable=prefix to get the prefix of the
gstreamer installation, and then using a relative path from there to the
plugin path?
Good idea. Thanks. Need to figure out how to do than with qmake.
I did something similar to find gsoap. It should give you some ideas:
GSOAP_PC = gsoapssl++
!packagesExist($$GSOAP_PC):GSOAP_PC = gsoap++
!packagesExist($$GSOAP_PC):error("Package gsoap not not found")
# Use pkg-config for gsoap the hard way.
isEmpty(PKG_CONFIG):PKG_CONFIG = pkg-config
QMAKE_CXXFLAGS += $$system($$PKG_CONFIG --cflags $$GSOAP_PC)
QMAKE_CFLAGS += $$system($$PKG_CONFIG --cflags $$GSOAP_PC)
# GSOAP_PREFIX needed to find configuration files
GSOAP_PREFIX = $$system($$PKG_CONFIG --variable=prefix $$GSOAP_PC)
message(Using $$GSOAP_PC from $$GSOAP_PREFIX)
<snip>
$${CROSS_COMPILE}soapcpp2 -I $${GSOAP_PREFIX}/share/gsoap/import -i -w -x -t -s
-C a.h
$${CROSS_COMPILE}wsdl2h -d -I $${GSOAP_PREFIX}/share/gsoap/import -t
typemap.dat -o a.h $$WSDL_SOURCES