Errors building gstreamer

Asked by preetammn

i was trying to build gstreamer after pulling it from the bzr.

initially i got xml files to be included to be missing. i have pulled the libxml2 and built it.

then i added the libxml2 inclusion paths in the "libgstreamer" subproject of gstreamer.

i get these below build logs where it says to not able to build config.h.

========================================
Creating temporary file "D:\personal\dreamreality-LABS\mediaplayer\GStreamerWin\gstreamer\win32\oah\Win32\Debug\obj\libgstreamer\BAT00015912402324.bat" with contents
[
@echo off

mkdir "D:\personal\dreamreality-LABS\mediaplayer\GStreamerWin\gstreamer\win32\oah\Win32\Debug\obj\libgstreamer\." 2>NUL

"%OAH_INSTALLED_PATH%\bin\sed.exe" -e "s/@VERSION@/0.10.22.0/g" -e "s/@GST_MAJORMINOR@/0.10/g" -e "s/@GST_PACKAGE_NAME@/GStreamer source release/g" -e "s/@GST_PACKAGE_ORIGIN@/Unknown package origin/g" -e "s/@GST_LEVEL_DEFAULT@/GST_LEVEL_NONE/g" -e "s/@GST_LICENSE@/LGPL/g" -e "s/@GETTEXT_PACKAGE@/gstreamer-0.10/g" -e "s/@PACKAGE@/gstreamer/g" -e "s/@PACKAGE_BUGREPORT@/http:\/\/bugzilla.gnome.org\/enter_bug.cgi?product=GStreamer/g" -e "s/@PACKAGE_NAME@/GStreamer/g" -e "s/@PACKAGE_STRING@/GStreamer 0.10.22.0/g" -e "s/@PACKAGE_TARNAME@/gstreamer/g" -e "s/@PACKAGE_VERSION@/0.10.22.0/g" -e "s/@PACKAGE_VERSION_MAJOR@/0/g" -e "s/@PACKAGE_VERSION_MINOR@/10/g" -e "s/@PACKAGE_VERSION_MICRO@/22/g" -e "s/@PACKAGE_VERSION_NANO@/0/g" -e "s/@GST_PKG_DEPS@/glib-2.0 gobject-2.0 gmodule-no-export-2.0 gthread-2.0/g" -e "s/@LIBXML_PKG@//g" -e "s/@prefix@/\$\(OutDir\)/g" -e "s/@exec_prefix@/${prefix}/g" -e "s/@libdir@/${prefix}\/lib/g" -e "s/@includedir@/${prefix}\/include/g" "d:\personal\dreamreality-LABS\mediaplayer\GStreamerWin\gstreamer\win32\common\config.h.in" > "D:\personal\dreamreality-LABS\mediaplayer\GStreamerWin\gstreamer\win32\oah\Win32\Debug\obj\libgstreamer\.\config.h"

if errorlevel 1 goto VCReportError

goto VCEnd

:VCReportError

echo Project : error PRJ0019: A tool returned an error code from "Generating config.h"

exit 1

:VCEnd
]

========================================

Can i know what is wrong?

the additional include paths that i added are as in order below:

..\..\win32\common
..\..\..\libxml2\include
..\..\..\libxml2\win32\oah\Win32\Debug\obj\libxml2\

Question information

Language:
English Edit question
Status:
Answered
For:
OAH Build Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Haakon Sporsheim (ieei) said :
#1

> -e "s/@LIBXML_PKG@//g"
I don't think we build GStreamer with XML support. You'll have to figure out how to this, by setting up config.h.

Then, second.. you should not add include paths, as this is solved by using pkg-config. You could right click the .pc file and add additional pkg-config dependencies (or what it is called). You should enter xml2 I think. Anyway, you should have a look at how the GStreamer maintainers use autotools to setup xml support and then how this is reflected in config.h.

We didn't include XML support because we wanted to keep dependencies to a minimum.

Revision history for this message
preetammn (preetammn) said :
#2

I did remove out all the xml instances in the code to check if the sub-project actually build.

after some fight and check on files it some how miraculously libgstreamer.exe started producing libgstreamer.lib, then i tried building "libgstnet" sub project, its has a dependency on "libgstreamer".

so when i built the "libgstnet" , i got error saying

1>LINK : fatal error LNK1104: cannot open file 'libgstreamer-0.10.lib'

i renamed the file to be generated name in "libgstreamer" to 'libgstreamer-0.10.lib'. so now this file is generated with required name.

but still the "libgstnet" is throwing error as below.

1>LINK : fatal error LNK1104: cannot open file 'libgstreamer-0.10

the linker command line arguments are as below for "libgstnet":

==================================================
/OUT:"H:\Documents and Settings\preetam\FOSS\\Debug\bin\libgstnet.exe" /INCREMENTAL /NOLOGO /DLL /MANIFEST /MANIFESTFILE:"D:\personal\dreamreality-LABS\mediaplayer\GStreamerWin\gstreamer\win32\oah\Win32\Debug\obj\libgstnet\libgstnet.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEF:"..\common\libgstnet.def" /DEBUG /PDB:"H:\Documents and Settings\preetam\FOSS\\Debug\pdb\libgstnet.pdb" /SUBSYSTEM:WINDOWS /DYNAMICBASE:NO /IMPLIB:"H:\Documents and Settings\preetam\FOSS\Debug\bin\libgstnet.lib" /MACHINE:X86 /ERRORREPORT:PROMPT ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "h:\documents and settings\preetam\foss\debug\bin\libgstreamer-0.10.lib" $(OAH_DEPS_LIBS_RSP_FILE)
==================================================

h:\documents and settings\preetam\foss\debug\bin\libgstreamer-0.10.lib is available.

when i check the linker settings, i see that "h:\documents and settings\preetam\foss\debug\bin\libgstreamer-0.10.lib" requirement is from some inherited file as i dont see this option from any settings.

Any idea what could be worng?

Revision history for this message
Haakon Sporsheim (ieei) said :
#3

As for your last question: you are using OAH Build 0.3, and have pulled code from HEAD which are only compatible if you also have OAH Build from HEAD (which will be released as 0.4 soon)

Please also check whether or not you have any other modifications to GStreamer module.
If you are not familiar with bazaar, I would recommend you using bzr log and/or bzr st, bzr diff or the qt gui versions: bzr qlog, bzr qdiff.

You see libgstreamer-0.10.lib beacuse it is set up as a native reference. Right click libgstnet and select References...

Can you help with this problem?

Provide an answer of your own, or ask preetammn for more information if necessary.

To post a message you must log in.