Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8032599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:26:09+00:00 2026-06-05T01:26:09+00:00

I am trying to build a Gstreamer program using waf.I am having some trouble

  • 0

I am trying to build a Gstreamer program using waf.I am having some trouble including gstream files with waf.

I am getting an error.

[ 4/37] qxx: test/Playback/GSTEngine.cpp ->
build/test/Playback/GSTEngine.cpp.4.o
../test/Playback/GSTEngine.cpp:1:21: fatal error: gst/gst.h: No such
file or directory

my wscript(waf) file

    top = '.'
    out = 'build'

    def options(opt): 
        opt.load('compiler_cxx qt4 compiler_c')
        #opt.recurse(subdirs)

    def configure(conf):
        conf.load('compiler_cxx qt4 compiler_c boost')
        conf.check_cfg(atleast_pkgconfig_version='0.0.0') 
        gstreamer_version = conf.check_cfg(modversion='gstreamer-0.10', mandatory=True) 
        conf.check_cfg(package='gstreamer-0.10') 
        conf.check_cfg(package='gstreamer-0.10', uselib_store='MYGSTREAMER', mandatory=True) 
program_options')
        conf.env.append_value('CXXFLAGS', ['-DWAF=1']) # test


    def build(bld):
        cxxflags = bld.env.commonCxxFlags
        uselibcommon = 'QTMAIN QTCORE QTGUI QTOPENGL QTSVG QWIDGET QTSQL QTUITOOLS QTSCRIPT gstreamer-0.10'

        bld(features = 'qt4 cxx',  includes = '.', source = 'Util.cpp' , target = 'Util.o', uselib = uselibcommon, cxxflags=cxxflags)

        bld(features = 'qt4 cxx',  includes = '.', source = 'MetaData.cpp' , target = 'MetaData.o', uselib = uselibcommon, cxxflags=cxxflags)

        bld(features = 'qt4 cxx',  includes = '.', source = 'id3.cpp' , target = 'id3.o', uselib = uselibcommon, cxxflags=cxxflags)

        use = [ 'MetaData.o', 'Util.o' , 'id3.o']
        bld(features = 'qt4 cxx',  includes = '.' , source = 'GSTEngine.cpp' , target = 'GSTEngine.o', uselib = uselibcommon, use = use,  lib = ['gstreamer-0.10'], libpath = ['/usr/lib'], cxxflags=cxxflags)



    from waflib.TaskGen import feature, before_method, after_method
    @feature('cxx')
    @after_method('.')
    @before_method('apply_incpaths')
    def add_includes_paths(self):
            incs = set(self.to_list(getattr(self, 'includes', '')))
            for x in self.compiled_tasks:
                    incs.add(x.inputs[0].parent.path_from(self.path))
            self.includes = list(incs)

If i try include this list into the include parameter in GSTEngine.cpp bld statement.It works and goes for the next file.

[‘/usr/include/gstreamer-0.10′,’/usr/include/glib-2.0’,
‘/usr/lib/x86_64-linux-gnu/glib-2.0/include/’,
‘/usr/include/libxml2/’]

I am new to waf and like to know how can i tell waf to take all gstreamer dependent include files.

hope you can help me,Thankz.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:26:10+00:00Added an answer on June 5, 2026 at 1:26 am

    Well i got the solution

    I added this line in conf part of waf

    conf.check_cfg(atleast_pkgconfig_version='0.0.0') 
    conf.check_cfg(package='gstreamer-0.10', uselib_store='GSTREAMER', args='--cflags --libs', mandatory=True)
    conf.check_cfg(package='taglib', uselib_store='TAGLIB', args='--cflags --libs', mandatory=True) 
    

    well pkg-config finds the lib and stores it in the uselib variable(uselib_store='TAGLIB'). so just add the variable to uselib in build part of waf

    bld(features = ‘qt4 cxx cxxprogram’, includes = include, source =
    ‘main.cpp MasterDetail.qrc’, target = ‘app’, uselib = ‘TAGLIB GSTREAMER’ ,
    cxxflags=cxxflags, use = use, subsystem=’windows’, linkflags=linkflags)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying build an App Engine connected Android application and am having some problems
Trying to build a Metro app using Javascript and having issues with IndexedDb. I
I'm trying build my application using REST and Spring MVC. For some entities I
I am trying build a DataTable one row at a time using the following
Trying to build dynamic output from json and using jq/template tmpl display rows/columns. Somehow
Trying to build the following simple example #include <boost/python.hpp> using namespace boost::python; tuple head_and_tail(object
Trying to build a marquee control with smooth text animation. Current efforts include: Using
Trying to build a plugin effect that will some what look better than this
I`m trying to build a application using the Fragment/Tabs and Pager from the android
Im trying to build a feeds application in php in which im using a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.