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: Nikos Chantziaras
Subject: Re: [Mingw-cross-env-list] Static GStreamer plugins aren't loaded
Date: Wed, 05 Jun 2013 23:31:47 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

On 05/06/13 22:11, Mark Brand wrote:
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

Yep, there's a $$system function that's suitable for this. Many thanks for the pointer.

Btw, are you guys interested in having gstreamer-0.10 in MXE? I could provide a patch (after I've done more tests with it) that adds these packages and makes sure it's usable with static linking.

Note that the current gstreamer-1.0 (and the gst-plugins-* packages) are not suitable, because they all lack the "--enable-static-plugins" configure option. "--disable-shared" is not enough for this.




reply via email to

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