Build.bat works, but not VS

Asked by attaboy

Newbie question here...

I've been able to build the modules using the build.bat file, but not in VS using the *.sln files (e.g. GStreamer.sln). It looks like the GObject Enum Generation Tools isn't happily configured (see below.) I could start tweaking env variables, but the command-line build works so I'm thinking env variables are not the problem. Thoughts?

1>------ Build started: Project: libgstreamer, Configuration: Debug Win32 ------
1>Generating parser from grammar.y
1>grammar.y: conflicts: 37 shift/reduce, 5 reduce/reduce
1>Generating GObject enum code from template gstenumtypes.c.template
1>Package glib-2.0 was not found in the pkg-config search path.
1>Perhaps you should add the directory containing `glib-2.0.pc'
1>to the PKG_CONFIG_PATH environment variable
1>No package 'glib-2.0' found
1>Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'.
1>libgstreamer - 1 error(s), 0 warning(s)

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

Yes, you are building Debug configuration. By default build.bat builds Release.

So you need to manually build all GStreamer dependencies first. GLib is obvious. So open glib.sln, build it (Debug|Win32). Then go back and try building gstreamer.sln.

The alternative is to build Debug with build.bat. This should build GStreamer and its dependencies in the correct order!
see build.bat --help for cmd line options.

Can you help with this problem?

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

To post a message you must log in.