Compiling DirectShow library libgstdhowXXX.dll

Andoni Morales ylatuya at gmail.com
Thu Nov 15 15:59:05 PST 2012


2012/11/15 Orione1974 <orione1974 at email.it>:
> Hello.
> I've updated the source with the command "git pull" and I noticed that the
> file "/cerbero/recipes/gst-plugins-bad.recipe" has been updated.
> I think I have understood the reason for which the variable
> GSTREAMER_SDK_ROOT_x86  was not initialized properly on Windows 7.

Yes, my bad :) I fixed as soon as I read your issue

Andni
>
> The old "gst-plugins-bad-recipe" was
> -------------------------------------begin--------------------------------------------------
> (......omissis........)
>     def post_install(self):
> (......omissis........)
>
>             msbuild  = MSBuild(solution, self.config.target_arch,
>                                GSTREAMER_SDK_ROOT=root)
>             try:
>                 msbuild.build()
> (......omissis........)
> -------------------------------------end--------------------------------------------------
>
>
> The new "gst-plugins-bad-recipe" is
> -------------------------------------begin--------------------------------------------------
> (......omissis........)
>     def post_install(self):
> (......omissis........)
>              if self.config.target_arch == Architecture.X86_64:
>                 msbuild  = MSBuild(solution, self.config.target_arch,
>                                    GSTREAMER_SDK_ROOT_x86_64=root)
>             else:
>                 msbuild  = MSBuild(solution, self.config.target_arch,
>                                    GSTREAMER_SDK_ROOT_x86=root)
>             try:
>                 msbuild.build()
> (......omissis........)
> -------------------------------------end--------------------------------------------------
>
>
> Fabrizio Ciavatta
> ------------------------
>
>
> 2012/11/14 Orione1974 <orione1974 at email.it>
>>
>> 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
>> ------------------------
>>
>>
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>
>
> _______________________________________________
> 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


More information about the gstreamer-devel mailing list