Compiling DirectShow library libgstdhowXXX.dll

Orione1974 orione1974 at email.it
Wed Nov 14 07:07:29 PST 2012


Many thanks for your response!

In my case, I compile with the following command line (MSBuild .NET 4.0 and
user=mikol):

/C/Windows/Microsoft.NET/Framework/v4.0.30319/msbuild.exe
win32/vs10/gst-plugins-bad.sln /property:Platform=Win32
/property:Config=Release /property:PlatformToolset=Windows7.1SDK
/property:GSTREAMER_SDK_ROOT_X86=/home/mikol/cerbero/dist /target:build

"strmbase.lib" is correctly generated in
$(HOME)/cerbero/dist/windows_x86/x86/lib

In the project "libgstdshowdecwrapper.vcxproj" I get a error  "error C2229:
struct '_GstBinClass' ha una matrice di dimensioni zero non valida ".
My Visual Studio is in italian. The translation is "error C2229: struct
'_GstBinClass'  has a matrix of size zero is not valid."


\/   \/   \/   \/   \/   \/   \/   \/   \/   \/   \/   \/   \/   \/   \/
  \/   \/   \/   \/   \/   \/   \/   \/   \/   \/   \/   \/   \/

ClCompile:
  c:\Program Files\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c
/I"C:\Program Files\Microsoft
SDKs\Windows\v7.1\\Samples\Multimedia\directshow\baseclasses\\"
/I"C:\MinGW\msys\1.0\home\mikol\cerbero\dist\windows_x86\include\gstreamer-0.10"
/IC:\MinGW\msys\1.0\home\mikol\cerbero\dist\windows_x86\include\libxml2\
/I"C:\MinGW\msys\1.0\home\mikol\cerbero\dist\windows_x86\include\glib-2.0"
/I"C:\MinGW\msys\1.0\home\mikol\cerbero\dist\windows_x86\lib\glib-2.0\include"
/IC:\MinGW\msys\1.0\home\mikol\cerbero\dist\windows_x86\include
/IC:\WinDDK\7600.16385.1\inc\api
/I"/home/mikol/cerbero/dist\include\gstreamer-0.10"
/I/home/mikol/cerbero/dist\include\libxml2
/I"/home/mikol/cerbero/dist\include\glib-2.0"
/I"/home/mikol/cerbero/dist\lib\glib-2.0\include"
/I/home/mikol/cerbero/dist\include /I..\..\win32\common /I"C:\Program
Files\Microsoft
SDKs\Windows\v7.1\\Samples\Multimedia\directshow\baseclasses\\"
/IC:\WinDDK\7600.16385.1\inc\crt\ /IC:\WinDDK\7600.16385.1\inc\atl71\ /Zi
/nologo /W3 /WX- /O2 /Oy- /D _X86_ /D WINVER=0x0501 /D _WINDOWS /D _USRDLL
/D HAVE_WIN32 /D WIN32 /D NDEBUG /D HAVE_CONFIG_H /D WIN32_LEAN_AND_MEAN=1
/D _MBCS=1 /D WHISTLER_DDK=1 /D _DLL=1 /D _MT=1 /D __NO_MINGW_LFS /D
__MSVCRT_VERSION__=0x0601 /D __MSVCRT__ /D _CRT_NONSTDC_FORCE_DEPRECATE /D
_CRT_SECURE_FORCE_DEPRECATE /D _CRT_SECURE_NO_WARNINGS /D
_CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _WINDLL /Gm- /EHsc
/MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Release\\"
/Fd"Release\vcWindows7.1SDK.pdb" /Gd /TP /analyze- /errorReport:queue
..\..\sys\dshowdecwrapper\gstdshowaudiodec.cpp
..\..\sys\dshowdecwrapper\gstdshowdecwrapper.cpp
..\..\sys\dshowdecwrapper\gstdshowfakesrc.cpp
..\..\sys\dshowdecwrapper\gstdshowutil.cpp
..\..\sys\dshowdecwrapper\gstdshowvideodec.cpp
  gstdshowaudiodec.cpp
C:\MinGW\msys\1.0\home\mikol\cerbero\dist\windows_x86\include\gstreamer-0.10\gst/gstelement.h(682):
warning C4200: utilizzata estensione non standard: matrice di dimensioni
zero in struct/union
[C:\MinGW\msys\1.0\home\mikol\cerbero\sources\windows_x86\gst-plugins-bad-0.10.23\win32\vs10\libgstdshowdecwrapper.vcxproj]
          Impossibile generare un operatore di costruttore di copia o di
assegnazione copia se un tipo definito dall'utente contiene una matrice di
dimensioni zero
C:\MinGW\msys\1.0\home\mikol\cerbero\dist\windows_x86\include\gstreamer-0.10\gst/gstbin.h(141):
error C2229: struct '_GstBinClass' ha una matrice di dimensioni zero non
valida
[C:\MinGW\msys\1.0\home\mikol\cerbero\sources\windows_x86\gst-plugins-bad-0.10.23\win32\vs10\libgstdshowdecwrapper.vcxproj]
c:\mingw\msys\1.0\home\mikol\cerbero\sources\windows_x86\gst-plugins-bad-0.10.23\sys\dshowdecwrapper\gstdshowaudiodec.h(126):
error C2229: struct '_GstDshowAudioDecClass' ha una matrice di dimensioni
zero non valida
[C:\MinGW\msys\1.0\home\mikol\cerbero\sources\windows_x86\gst-plugins-bad-0.10.23\win32\vs10\libgstdshowdecwrapper.vcxproj]

(...omissis....)

Build FAILED

(...omissis....)

    5 Warning(s)
    16 Error(s)

Time Elapsed 00:00:33.68
/\  /\  /\  /\  /\  /\  /\  /\  /\  /\  /\  /\  /\  /\  /\  /\  /\  /\  /\
 /\  /\  /\  /\  /\  /\


Fabrizio Ciavatta
------------------------



2012/11/14 Andoni Morales <ylatuya at gmail.com>

> 2012/11/14 Orione1974 <orione1974 at email.it>:
> > Hello.
> >
> > I'm compiling gstreamer on my development machine Windows 7, 32 bit, with
> > MinGW, with the build system "cerbero", for some time.
> > I have created is "gstreamer-0.10" and "gstreamer-1.0" and the plugins
> > "base", "good", "bad", "ugly". Inside the folder "cerbero/dist" I have
> all
> > the components.
> > But I miss a final step. When I launch the command "./cerbero-uninstalled
> > package gstreamer-sdk" I get an error:
> >
> >> (........omissis.........)
> >> -----> Creating Merge Module for gstreamer-python
> >> Running command ' C:/Program\ Files\ \(x86\)/Windows\ Installer\ XML\
> >> v3.5/bin/candle.exe
> >> C:/MinGW/msys/1.0/home/mikol/cerbero/gstreamer-python-2012.10-x86.wsx'
> >> Microsoft (R) Windows Installer Xml Compiler version 3.5.2519.0
> >> Copyright (C) Microsoft Corporation. All rights reserved.
> >> gstreamer-python-2012.10-x86.wsx
> >> Running command ' C:/Program\ Files\ \(x86\)/Windows\ Installer\ XML\
> >> v3.5/bin/light.exe
> >>
> C:/MinGW/msys/1.0/home/mikol/cerbero/gstreamer-python-2012.10-x86.wixobj -o
> >> gstreamer-python-2012.10-x86.msm -sval '
> >> Microsoft (R) Windows Installer Xml Linker version 3.5.2519.0
> >> Copyright (C) Microsoft Corporation. All rights reserved.
> >> -----> Creating Merge Module for gstreamer-system
> >> ***** Error running 'package' command:
> >> The following files required by this package are missing:
> >>  lib/gstreamer-0.10/libgstdshowdecwrapper.dll
> >> lib/gstreamer-0.10/libgstdshowsrcwrapper.dll
> >> lib/gstreamer-0.10/libgstdshowvideosink.dll
> >
> >
> > I understand that for some reason has not been made to compile the
> sources
> > in
> "$(HOME)/cerbero/sources/windows_x86/gst-plugins-bad-0.10.23/win32/vs10",
> > so I opened the solution "gst-plugins-bad.sln" in my Visual Studio 2010
> and
> > tried to compile.
> > DirectShow "strmbase" are compiled correctly, but when I try to compile
> > "libgstdshowdecwrapper", I get various errors.
> >
> > I noticed "$(GstSdkPrefix)" is null. Where can I set the value of the
> > environment variable? I tried the settings of the environment variables
> in
> > Windows, but without success.
> > Some include path are missing. For example, "gstdshowaudiodec.cpp"
> include
> > "mmreg.h", "dmoreg.h", "wmcodecdsp.h".
> > "mmreg.h" is present in folder "C:\WinDDK\7600.16385.1\inc\api" and
> > "$(HOME)/.mingw/w32/mingw/include". Which is the correct include folder?
> > "wmcodecdsp.h" in which folder is present?
>
> Hi Fabrizzio,
>
> The DirectShow plugins can't be built with MinGW, so we have VS
> project files for them. They should be built in gst-plugins-bad
> post-install step but for some it failed on your system. You can debug
> it in cerbero/utils/msbuid.py:
>
> To build these plugins, you can either use VS, or  MSBuild from the
> command line. With VS you only need to set the environment variable
> GSTREAMER_SDK_ROOT_X86 or GSTREAMER_SDK_ROOT_X86_64, which is used to
> set GstSdkPrefix.
>
> With msbuild the command looks like:
> msbuild win32/vs10/gst-plugins-bad.sln /property:Platform=Win32
> /property:Config=Release /property:PlatformToolset=Windows7.1SDK
> /property:GSTREAMER_SDK_ROOT_X86=/home/user/cerbero/dist /target:build
>
> Andoni
> >
> >
> >
> > Fabrizio Ciavatta
> > ------------------------
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
>
>
>
> --
> Andoni Morales Alastruey
>
> LongoMatch:The Digital Coach
> http://www.longomatch.ylatuya.es
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20121114/fe2dadc6/attachment-0001.html>


More information about the gstreamer-devel mailing list