mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Static GStreamer plugins aren't loaded


From: Mark Brand
Subject: Re: [Mingw-cross-env-list] Static GStreamer plugins aren't loaded
Date: Wed, 05 Jun 2013 21:11:58 +0200
User-agent: KMail/4.10.3 (Linux/3.8.0-23-generic; KDE/4.10.3; x86_64; ; )

On Wednesday 05 June 2013 21:30:45 Nikos Chantziaras wrote:
> On 05/06/13 21:24, Mark Brand wrote:
> >> There is no automation for this (pkg-config will not help with getting
> >> the plugin paths and libraries to link against).  I don't know if MXE
> >> could possibly help with this.  Like getting the plugin path would be
> >> helpful so people won't have to hard-code the path into their build
> >> system.  Is there a variable exported that least gives build systems a
> >> chance to get to the "lib" directory?
> > 
> > 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]